From 5fdea1e21bb71f0a8c9b0a60f8dbf8bb7e57da23 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 25 Sep 2024 13:39:58 -0700 Subject: [PATCH] fixup! unit tests: make the test_c_cpp_stds test more robust --- unittests/allplatformstests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 01ae64c02f2f..d05f8ee93a7e 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -5024,7 +5024,7 @@ def __test_multi_stds(self, extra_args: T.List[str]) -> None: # The first supported std should be selected self.setconf('-Dcpp_std=gnu++11,vc++11,c++11') self.assertEqual(self.getconf('cpp_std'), 'vc++11') - elif cc.get_id() in {'gcc', 'clang'}: + elif cc.get_id() == 'gcc' or (cc.get_id() == 'clang' and not is_windows()): # default_option should have selected those self.assertEqual(self.getconf('c_std'), 'gnu89') self.assertEqual(self.getconf('cpp_std'), 'gnu++98')