Skip to content

Commit d795169

Browse files
committed
[Apple Silicon] Mark several tests that require the Swift interpreter accordingly
1 parent 8d74d35 commit d795169

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

test/Driver/options.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// REQUIRES: swift_interpreter
2+
13
// RUN: not %swiftc_driver -emit-silgen -parse-as-library %s -module-name "Swift" 2>&1 | %FileCheck -check-prefix=STDLIB_MODULE %s
24
// RUN: %target-swiftc_driver -emit-silgen -parse-as-library %s -module-name "Swift" -parse-stdlib -###
35
// STDLIB_MODULE: error: module name "Swift" is reserved for the standard library{{$}}

test/Interpreter/SDK/interpret_with_options.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// RUN: cd %S && %swift_driver -sdk %sdk -lInputs/libTestLoad.dylib %s | %FileCheck -check-prefix=WITH-LIB %s
66
// REQUIRES: OS=macosx
77
// REQUIRES: executable_test
8+
// REQUIRES: swift_interpreter
89

910
import ObjectiveC
1011

test/Interpreter/availability_host_os.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// REQUIRES: OS=macosx
1010
// REQUIRES: executable_test
11+
// REQUIRES: swift_interpreter
1112

1213
print(mavericks()) // CHECK: {{^9$}}
1314
print(yosemite()) // CHECK-NEXT: {{^10$}}

validation-test/execution/interpret-with-dependencies.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// REQUIRES: OS=macosx
22
// RUN: %empty-directory(%t)
3+
// REQUIRES: swift_interpreter
34

45
// RUN: echo 'int abc = 42;' | %clang -x c - -dynamiclib -Xlinker -install_name -Xlinker libabc.dylib -o %t/libabc.dylib
56
// RUN: echo 'int test() { extern int abc; return abc; }' | %clang -x c - -L%t -dynamiclib -labc -o %t/libfoo.dylib

0 commit comments

Comments
 (0)