From d8164fe3981001992da0626d463b0ec7d25077d5 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 16 Sep 2023 16:43:32 +0300 Subject: [PATCH] Removed async test when using std format due to invalid runtime format string --- tests/test_errors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_errors.cpp b/tests/test_errors.cpp index 5062e2b7..0f6ee348 100644 --- a/tests/test_errors.cpp +++ b/tests/test_errors.cpp @@ -24,7 +24,7 @@ protected: struct custom_ex {}; -#if !defined(SPDLOG_USE_STD_FORMAT) // std formt doesn't fully support tuntime strings +#if !defined(SPDLOG_USE_STD_FORMAT) // std formt doesn't fully support runtime format strings TEST_CASE("default_error_handler", "[errors]") { prepare_logdir(); @@ -71,7 +71,7 @@ TEST_CASE("flush_error_handler", "[errors]") REQUIRE_THROWS_AS(logger->flush(), custom_ex); } - +#if !defined(SPDLOG_USE_STD_FORMAT) // std formt doesn't fully support runtime format strings TEST_CASE("async_error_handler", "[errors]") { prepare_logdir(); @@ -98,7 +98,7 @@ TEST_CASE("async_error_handler", "[errors]") require_message_count(SIMPLE_ASYNC_LOG, 2); REQUIRE(file_contents("test_logs/custom_err.txt") == err_msg); } - +#endif // Make sure async error handler is executed TEST_CASE("async_error_handler2", "[errors]")