From 79ce44f0a63efcf21f3ef0379c5e5650e14de7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schu=CC=88mann?= Date: Fri, 10 Jul 2026 17:19:17 +0200 Subject: [PATCH] Define `CATCH_CONFIG_NO_COUNTER` across tests to disable Catch2's counter feature for broader compiler support. --- test/filesystem_test.cpp | 1 + test/impl_test.cpp | 1 + test/multi1.cpp | 1 + test/multi2.cpp | 1 + 4 files changed, 4 insertions(+) diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index 0be179f..7fe5b33 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -82,6 +82,7 @@ using fstream = ghc::filesystem::fstream; #ifndef GHC_FILESYSTEM_FWD_TEST #define CATCH_CONFIG_MAIN #endif +#define CATCH_CONFIG_NO_COUNTER #include "catch.hpp" //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/test/impl_test.cpp b/test/impl_test.cpp index 092be63..d54718c 100644 --- a/test/impl_test.cpp +++ b/test/impl_test.cpp @@ -5,4 +5,5 @@ // are included here, signaling they should only include the fs_fwd.hpp) #include #define CATCH_CONFIG_MAIN +#define CATCH_CONFIG_NO_COUNTER #include "catch.hpp" diff --git a/test/multi1.cpp b/test/multi1.cpp index 2394ff7..547acb7 100644 --- a/test/multi1.cpp +++ b/test/multi1.cpp @@ -22,6 +22,7 @@ // //--------------------------------------------------------------------------------------- #define CATCH_CONFIG_MAIN +#define CATCH_CONFIG_NO_COUNTER #include "catch.hpp" #include diff --git a/test/multi2.cpp b/test/multi2.cpp index 6bf3250..a348e19 100644 --- a/test/multi2.cpp +++ b/test/multi2.cpp @@ -21,6 +21,7 @@ // SOFTWARE. // //--------------------------------------------------------------------------------------- +#define CATCH_CONFIG_NO_COUNTER #include "catch.hpp" #include namespace fs = ghc::filesystem;