Skip to content
Snippets Groups Projects
Commit ab6990e6 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)
(cherry picked from commit 5273d3d0)
(cherry picked from commit 6babf56f)
parent 677c2c55
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('objcpp-hi',
[ skip_if_not_osx,
when(config.target_wrapper is not None, skip),
objcpp_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