From e73494c2342ef83c35c404a5bab306aac828770c Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Wed, 15 Mar 2023 13:02:35 +0100 Subject: catch2: bump to version 3.3.2 tests have been updated accordingly --- test/buildtool/logging/log_sink_file.test.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/buildtool/logging/log_sink_file.test.cpp') diff --git a/test/buildtool/logging/log_sink_file.test.cpp b/test/buildtool/logging/log_sink_file.test.cpp index 5fda1680..f2c7095e 100644 --- a/test/buildtool/logging/log_sink_file.test.cpp +++ b/test/buildtool/logging/log_sink_file.test.cpp @@ -13,9 +13,12 @@ // limitations under the License. #include +#include #include -#include "catch2/catch.hpp" +#include "catch2/catch_test_macros.hpp" +#include "catch2/generators/catch_generators_all.hpp" +#include "catch2/matchers/catch_matchers_all.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/logging/log_config.hpp" #include "src/buildtool/logging/log_sink_cmdline.hpp" @@ -104,10 +107,11 @@ TEST_CASE("LogSinkFile", "[logging]") { CHECK(lines.size() == num_threads + 1); // check for corrupted content - using Catch::Matchers::Contains; for (auto const& line : lines) { - CHECK_THAT(line, - Contains("somecontent") or Contains("this is thread ")); + CHECK_THAT( + line, + Catch::Matchers::ContainsSubstring("somecontent") || + Catch::Matchers::ContainsSubstring("this is thread")); } } } -- cgit v1.2.3