Skip to content

Commit 154e566

Browse files
authored
Merge pull request swiftlang#33285 from compnerd/asi-rev-engines
test: permit running executable tests on macOS on ASi
2 parents d67d7eb + b0b1a9c commit 154e566

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/lit.cfg

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,10 +825,12 @@ if run_vendor == 'apple':
825825
target_options_for_mock_sdk_after = sdk_overlay_dir_opt
826826
target_future_version = ''
827827

828-
if 'arm' in run_cpu and swift_test_mode != 'only_non_executable':
829-
raise RuntimeError('Device tests are currently only supported when '
830-
'the swift_test_mode is "only_non_executable". Current '
831-
'swift_test_mode is {}.'.format(swift_test_mode))
828+
# Only permit non-executable tests for ARM on Darwin unless you are on macOS
829+
if 'arm' in run_cpu and run_os not in ('macosx',):
830+
if swift_test_mode != 'only_non_executable':
831+
raise RuntimeError('Device tests are currently only supported when '
832+
'the swift_test_mode is "only_non_executable". Current '
833+
'swift_test_mode is {}.'.format(swift_test_mode))
832834

833835
if 'arm' in run_cpu and not (run_os == 'macosx' or run_os == 'maccatalyst'):
834836
# iOS/tvOS/watchOS device

0 commit comments

Comments
 (0)