Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Sep 26, 2024
1 parent 5fdea1e commit e4810f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unittests/allplatformstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5024,13 +5024,13 @@ 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() == 'gcc' or (cc.get_id() == 'clang' and not is_windows()):
elif cc.get_id() in {'gcc', 'clang'}:
# default_option should have selected those
self.assertEqual(self.getconf('c_std'), 'gnu89')
self.assertEqual(self.getconf('cpp_std'), 'gnu++98')
# The first supported std should be selected
# self.setconf('-Dcpp_std=c++11,gnu++11,vc++11')
# self.assertEqual(self.getconf('cpp_std'), 'c++11')
self.setconf('-Dcpp_std=c++11,gnu++11,vc++11')
self.assertEqual(self.getconf('cpp_std'), 'c++11')

def test_c_cpp_stds(self) -> None:
self.__test_multi_stds(['-Dwith-c=true'])
Expand Down

0 comments on commit e4810f9

Please sign in to comment.