Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordragon-archer2026-01-11 18:54:12 +0800
committerMartin Hořeňovský2026-01-12 09:29:19 +0100
commitfcbf006c7835fe766c5a21bfecce9f4f6dfc13a6 (patch)
treed98390aa87d07463bb15e230f3886e84fd37e213
parent2580eadc4230eedf1b66841bdd27a8aacc2412a5 (diff)
downloadcatch3-fcbf006c7835fe766c5a21bfecce9f4f6dfc13a6.tar.gz
Fix _NullFile for MinGW
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/ExtraTests/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 5bac7090..c4168e3a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -483,7 +483,7 @@ set_tests_properties("ErrorHandling::InvalidTestSpecExitsEarly"
FAIL_REGULAR_EXPRESSION "No tests ran"
)
-if(MSVC)
+if(WIN32)
set(_NullFile "NUL")
else()
set(_NullFile "/dev/null")
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt
index efa83750..7e761931 100644
--- a/tests/ExtraTests/CMakeLists.txt
+++ b/tests/ExtraTests/CMakeLists.txt
@@ -273,7 +273,7 @@ set_tests_properties(Reporters::CapturedStdOutInEvents
FAIL_REGULAR_EXPRESSION "X27 ERROR"
)
-if(MSVC)
+if(WIN32)
set(_NullFile "NUL")
else()
set(_NullFile "/dev/null")