Skip to content
Snippets Groups Projects
Commit cd6e22cc authored by Cheng Shao's avatar Cheng Shao :beach:
Browse files

testsuite: skip objc-hi/objcxx-hi when cross compiling

objc-hi/objcxx-hi should be skipped when cross compiling. The existing
opsys('darwin') predicate only asserts the host system is darwin but
tells us nothing about the target, hence the oversight.

(cherry picked from commit 595c0894)
parent 2ccf9acd
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,14 @@ skip_if_not_osx = if_not_platform(['i386-apple-darwin','x86_64-apple-darwin'], s
test('objc-hi',
[ skip_if_not_osx,
when(config.target_wrapper is not None, skip),
objc_src,
expect_fail_for(['ghci']) ],
compile_and_run, ['-framework Foundation'])
test('objcxx-hi',
[ skip_if_not_osx,
when(config.target_wrapper is not None, skip),
objcxx_src,
expect_fail_for(['ghci']) ],
compile_and_run, ['-framework Foundation -lc++'])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment