[Git][ghc/ghc][master] testsuite: skip objc-hi/objcxx-hi when cross compiling

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Jun 7 18:47:00 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
595c0894 by Cheng Shao at 2024-06-07T14:45:58-04:00
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.

- - - - -


1 changed file:

- testsuite/tests/driver/objc/all.T


Changes:

=====================================
testsuite/tests/driver/objc/all.T
=====================================
@@ -1,11 +1,13 @@
 test('objc-hi',
      [ unless(opsys('darwin'), skip),
+       when(config.target_wrapper is not None, skip),
        objc_src,
        expect_fail_for(['ghci']) ],
      compile_and_run, ['-framework Foundation'])
 
 test('objcxx-hi',
      [ unless(opsys('darwin'), skip),
+       when(config.target_wrapper is not None, skip),
        objcxx_src,
        expect_fail_for(['ghci']) ],
      compile_and_run, ['-framework Foundation -lc++'])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/595c0894f630f4fc377c6bf14a5fb88ca0f1398c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/595c0894f630f4fc377c6bf14a5fb88ca0f1398c
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240607/6d6c65b6/attachment.html>


More information about the ghc-commits mailing list