From 64a013fd163a9d602dc0344a91ff438d61b4ddd2 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 29 Nov 2024 12:59:31 +0200 Subject: [PATCH] Fixed soruce_loc test --- tests/test_source_location.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_source_location.cpp b/tests/test_source_location.cpp index 04b3e6d70..d4aa143af 100644 --- a/tests/test_source_location.cpp +++ b/tests/test_source_location.cpp @@ -14,11 +14,11 @@ TEST_CASE("test_source_location", "[source_location]") { // test with source location with parameters SPDLOG_LOGGER_CALL(logger, spdlog::level::info, "Hello {}", "source location"); REQUIRE(test_sink->lines().size() == 1); - REQUIRE(test_sink->lines()[0] == "test_source_location.cpp:14 Hello source location"); + REQUIRE(test_sink->lines()[0] == "test_source_location.cpp:15 Hello source location"); // test with source location without parameters SPDLOG_LOGGER_CALL(logger, spdlog::level::info, "Hello"); REQUIRE(test_sink->lines().size() == 2); - REQUIRE(test_sink->lines()[1] == "test_source_location.cpp:18 Hello"); + REQUIRE(test_sink->lines()[1] == "test_source_location.cpp:19 Hello"); }