From febc1e233d5bf8437e106a248494344fe8d0b9f1 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 5 Mar 2023 21:34:02 +0200 Subject: [PATCH] Update test_errors.cpp --- tests/test_errors.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_errors.cpp b/tests/test_errors.cpp index 13d45c8e..df0f4197 100644 --- a/tests/test_errors.cpp +++ b/tests/test_errors.cpp @@ -21,7 +21,9 @@ protected: throw std::runtime_error("some error happened during flush"); } }; +struct custom_ex {}; +if !defined(SPDLOG_USE_STD_FORMAT) // std formt doesn't fully support tuntime strings TEST_CASE("default_error_handler", "[errors]") { prepare_logdir(); @@ -32,16 +34,12 @@ TEST_CASE("default_error_handler", "[errors]") logger->info(SPDLOG_FMT_RUNTIME("Test message {} {}"), 1); logger->info("Test message {}", 2); logger->flush(); - using spdlog::details::os::default_eol; REQUIRE(file_contents(SIMPLE_LOG) == spdlog::fmt_lib::format("Test message 2{}", default_eol)); REQUIRE(count_lines(SIMPLE_LOG) == 1); } -struct custom_ex -{}; -#if !defined(SPDLOG_USE_STD_FORMAT) // std formt doesn't fully support tuntime strings TEST_CASE("custom_error_handler", "[errors]") { prepare_logdir();