Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Nov 19, 2024
1 parent c213119 commit 92b11f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/failuretests.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,17 @@ def test_objc_detection(self) -> None:
env = get_fake_env()
try:
detect_objc_compiler(env, MachineChoice.HOST)
except EnvironmentException:
self.assertMesonRaises("add_languages('objc')", r"(Unknown compiler|GCC was not built with support)")
except EnvironmentException as e:
self.assertRegex(str(e), r"(Unknown compiler|GCC was not built with support)")
else:
raise unittest.SkipTest('Working objective-c Compiler found, cannot test error.')

def test_objcpp_detection(self) -> None:
env = get_fake_env()
try:
detect_objcpp_compiler(env, MachineChoice.HOST)
except EnvironmentException:
self.assertMesonRaises("add_languages('objcpp')", r"(Unknown compiler|GCC was not built with support)")
except EnvironmentException as e:
self.assertRegex(str(e), r"(Unknown compiler|GCC was not built with support)")
else:
raise unittest.SkipTest('Working objective-c++ Compiler found, cannot test error.')

Expand Down

0 comments on commit 92b11f7

Please sign in to comment.