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")