From 595c0894f630f4fc377c6bf14a5fb88ca0f1398c Mon Sep 17 00:00:00 2001 From: Cheng Shao <terrorjack@type.dance> Date: Thu, 6 Jun 2024 16:17:26 +0000 Subject: [PATCH] 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. --- testsuite/tests/driver/objc/all.T | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/tests/driver/objc/all.T b/testsuite/tests/driver/objc/all.T index 8587e510feb..b55b9c9202a 100644 --- a/testsuite/tests/driver/objc/all.T +++ b/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++']) -- GitLab