Define CATCH_CONFIG_NO_COUNTER across tests to disable Catch2's counter feature for broader compiler support.

This commit is contained in:
Steffen Schümann 2026-07-10 17:19:17 +02:00
parent 8741115872
commit 79ce44f0a6
4 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,7 @@ using fstream = ghc::filesystem::fstream;
#ifndef GHC_FILESYSTEM_FWD_TEST #ifndef GHC_FILESYSTEM_FWD_TEST
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN
#endif #endif
#define CATCH_CONFIG_NO_COUNTER
#include "catch.hpp" #include "catch.hpp"
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -5,4 +5,5 @@
// are included here, signaling they should only include the fs_fwd.hpp) // are included here, signaling they should only include the fs_fwd.hpp)
#include <ghc/fs_impl.hpp> #include <ghc/fs_impl.hpp>
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN
#define CATCH_CONFIG_NO_COUNTER
#include "catch.hpp" #include "catch.hpp"

View File

@ -22,6 +22,7 @@
// //
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN
#define CATCH_CONFIG_NO_COUNTER
#include "catch.hpp" #include "catch.hpp"
#include <ghc/filesystem.hpp> #include <ghc/filesystem.hpp>

View File

@ -21,6 +21,7 @@
// SOFTWARE. // SOFTWARE.
// //
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
#define CATCH_CONFIG_NO_COUNTER
#include "catch.hpp" #include "catch.hpp"
#include <ghc/filesystem.hpp> #include <ghc/filesystem.hpp>
namespace fs = ghc::filesystem; namespace fs = ghc::filesystem;