Skip to content

Commit

Permalink
fixup! unit tests: make the test_c_cpp_stds test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Sep 25, 2024
1 parent acb45fe commit 5fdea1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/allplatformstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 5fdea1e

Please sign in to comment.