Skip to content

Commit d8c0c25

Browse files
committed
[embedded] Centralize the OS/target requirements on (most) Embedded Swift tests
1 parent 600dcd0 commit d8c0c25

File tree

82 files changed

+11
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+11
-81
lines changed

test/embedded/array-builtins-exec.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
88
// REQUIRES: optimized_stdlib
9-
// REQUIRES: OS=macosx || OS=linux-gnu
109
// REQUIRES: swift_feature_Embedded
1110

1211
import Builtin

test/embedded/array-zero-size-struct.swift

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// REQUIRES: swift_in_compiler
44
// REQUIRES: optimized_stdlib
5-
// REQUIRES: OS=macosx || OS=linux-gnu
65
// REQUIRES: swift_feature_Embedded
76

87
public struct MyStruct {

test/embedded/arrays-enums.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
enum Node {

test/embedded/class-func.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
@main

test/embedded/classes-arrays.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
88
// REQUIRES: optimized_stdlib
9-
// REQUIRES: OS=macosx || OS=linux-gnu
109
// REQUIRES: swift_feature_Embedded
1110

1211
class MyClass {

test/embedded/classes-indirect-return.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-swift-emit-sil %s -enable-experimental-feature Embedded -wmo | %FileCheck %s
22

33
// REQUIRES: swift_in_compiler
4-
// REQUIRES: OS=macosx || OS=linux-gnu
54
// REQUIRES: swift_feature_Embedded
65

76
// CHECK: sil @$e4main1XC3fooxyFSi_Tg5 : $@convention(method) (@guaranteed X<Int>) -> Int {

test/embedded/classes-optional.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
88
// REQUIRES: optimized_stdlib
9-
// REQUIRES: OS=macosx || OS=linux-gnu
109
// REQUIRES: swift_feature_Embedded
1110

1211
class Foo {

test/embedded/classes-stack-promotion.swift

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// REQUIRES: swift_in_compiler
88
// REQUIRES: executable_test
99
// REQUIRES: optimized_stdlib
10-
// REQUIRES: OS=macosx || OS=linux-gnu
1110
// REQUIRES: swift_feature_Embedded
1211

1312
public class MyClass {

test/embedded/classes.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
88
// REQUIRES: optimized_stdlib
9-
// REQUIRES: OS=macosx || OS=linux-gnu
109
// REQUIRES: swift_feature_Embedded
1110

1211
class MyClass {

test/embedded/closures-heap.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
88
// REQUIRES: optimized_stdlib
9-
// REQUIRES: OS=macosx || OS=linux-gnu
109
// REQUIRES: swift_feature_Embedded
1110

1211
public class MyClass {

test/embedded/custom-print.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109
// REQUIRES: swift_feature_Extern
1110

test/embedded/cxx-no-metadata.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading
55

66
// REQUIRES: swift_in_compiler
7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98

109
// BEGIN header.h

test/embedded/cxxshim.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading
55

66
// REQUIRES: swift_in_compiler
7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98

109
// BEGIN header.h

test/embedded/debuginfo-dwarf-types.swift

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// REQUIRES: swift_in_compiler
1212
// REQUIRES: optimized_stdlib
13-
// REQUIRES: OS=macosx || OS=linux-gnu
1413
// REQUIRES: swift_feature_Embedded
1514

1615
public struct MyType {

test/embedded/debuginfo.swift

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
// REQUIRES: swift_in_compiler
99
// REQUIRES: optimized_stdlib
10-
// REQUIRES: OS=macosx || OS=linux-gnu
1110
// REQUIRES: swift_feature_Embedded
1211

1312
public func foo<T>(_ array: inout [T]) {

test/embedded/deinit-release.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109

1110
class C {}

test/embedded/deinit-release2.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109

1110
public var global_c: C? = nil

test/embedded/dependencies-random.swift

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
// REQUIRES: swift_in_compiler
2929
// REQUIRES: executable_test
3030
// REQUIRES: optimized_stdlib
31-
// REQUIRES: OS=macosx || OS=linux-gnu
3231
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64
3332

3433
// REQUIRES: rdar121923818

test/embedded/deserialize-vtables.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// REQUIRES: swift_in_compiler
66
// REQUIRES: executable_test
77
// REQUIRES: optimized_stdlib
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109
// REQUIRES: swift_feature_Extern
1110

test/embedded/duration.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded -wmo
44

55
// REQUIRES: swift_in_compiler
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
@available(SwiftStdlib 5.7, *)

test/embedded/dynamic-self.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -parse-as-library -module-name main | %FileCheck %s
22

33
// REQUIRES: swift_in_compiler
4-
// REQUIRES: OS=macosx || OS=linux-gnu
54
// REQUIRES: swift_feature_Embedded
65

76
class MyClass {

test/embedded/existential-class-bound1.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// REQUIRES: swift_in_compiler
66
// REQUIRES: executable_test
77
// REQUIRES: optimized_stdlib
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109

1110
protocol ClassBound: AnyObject {

test/embedded/existential-class-bound2.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
protocol ClassBound: AnyObject {

test/embedded/existential-class-bound3.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
protocol ClassBound: AnyObject {

test/embedded/existential-class-bound5.swift

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// REQUIRES: swift_in_compiler
44
// REQUIRES: optimized_stdlib
5-
// REQUIRES: OS=macosx || OS=linux-gnu
65
// REQUIRES: swift_feature_Embedded
76

87
protocol ClassBound: AnyObject {

test/embedded/existential-class-bound6.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// REQUIRES: swift_in_compiler
66
// REQUIRES: executable_test
77
// REQUIRES: optimized_stdlib
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109

1110
public var global: AnyObject? = nil

test/embedded/existential-class-bound7.swift

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// REQUIRES: swift_in_compiler
44
// REQUIRES: optimized_stdlib
5-
// REQUIRES: OS=macosx || OS=linux-gnu
65
// REQUIRES: swift_feature_Embedded
76

87
public protocol P: AnyObject {

test/embedded/existential-class-bound8.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// RUN: %target-swift-frontend -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
66

77
// REQUIRES: swift_in_compiler
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109

1110
// BEGIN MyModule.swift

test/embedded/existential-class-bound9.swift

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// REQUIRES: swift_in_compiler
66
// REQUIRES: executable_test
77
// REQUIRES: optimized_stdlib
8-
// REQUIRES: OS=macosx || OS=linux-gnu
98
// REQUIRES: swift_feature_Embedded
109

1110
protocol ClassBound: AnyObject {

test/embedded/existential-composition.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-swift-emit-ir -parse-as-library -module-name main -verify %s -enable-experimental-feature Embedded -wmo
22

3-
// REQUIRES: OS=macosx || OS=linux-gnu
43
// REQUIRES: swift_feature_Embedded
54

65
protocol ClassBound: AnyObject {

test/embedded/failable-crash.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
22

33
// REQUIRES: swift_in_compiler
4-
// REQUIRES: OS=macosx || OS=linux-gnu
54
// REQUIRES: swift_feature_Embedded
65

76
public func test() {

test/embedded/float-abi-hard.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
// REQUIRES: swift_in_compiler
88
// REQUIRES: optimized_stdlib
9-
// REQUIRES: OS=macosx || OS=linux-gnu
109
// REQUIRES: CODEGENERATOR=ARM
1110
// REQUIRES: embedded_stdlib_cross_compiling
1211
// REQUIRES: swift_feature_Embedded

test/embedded/fno-builtin.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
// REQUIRES: swift_in_compiler
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
public func foo() -> [Int] {

test/embedded/fragile-reference.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
22
// RUN: %target-swift-frontend -target arm64-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
33
// REQUIRES: swift_in_compiler
4-
// REQUIRES: OS=macosx || OS=linux-gnu
54
// REQUIRES: CODEGENERATOR=ARM
65
// REQUIRES: embedded_stdlib_cross_compiling
76
// REQUIRES: swift_feature_Embedded

test/embedded/generic-class-multi-module.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// RUN: %target-swift-frontend -enable-experimental-feature Extern -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
55
// RUN: %target-swift-frontend -enable-experimental-feature Extern -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
66

7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98
// REQUIRES: swift_feature_Extern
109

test/embedded/generic-classes.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// REQUIRES: swift_in_compiler
55
// REQUIRES: executable_test
66
// REQUIRES: optimized_stdlib
7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98

109
protocol Fooable {

test/embedded/generic-classes2.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// REQUIRES: swift_in_compiler
55
// REQUIRES: executable_test
66
// REQUIRES: optimized_stdlib
7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98

109
class B<T> {

test/embedded/generic-modules.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// RUN: %target-swift-frontend -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
77
// RUN: %target-swift-frontend -c -o %t/Main.o -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library
88

9-
// REQUIRES: OS=macosx || OS=linux-gnu
109
// REQUIRES: swift_feature_Embedded
1110

1211
// BEGIN MyModule.swift

test/embedded/init-failable-generic.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
public struct FooError: Error {}

test/embedded/init-failable.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
public struct FooError: Error {}

test/embedded/init-throwing.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
public struct FooError: Error {}

test/embedded/keypath-crash.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
22

33
// REQUIRES: swift_in_compiler
4-
// REQUIRES: OS=macosx || OS=linux-gnu
54
// REQUIRES: swift_feature_Embedded
65

76
@propertyWrapper

test/embedded/keypaths.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// REQUIRES: swift_in_compiler
55
// REQUIRES: executable_test
66
// REQUIRES: optimized_stdlib
7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98

109
struct MyStruct {

test/embedded/keypaths2.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// REQUIRES: swift_in_compiler
55
// REQUIRES: executable_test
66
// REQUIRES: optimized_stdlib
7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98

109
@dynamicMemberLookup

test/embedded/keypaths3.swift

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// REQUIRES: swift_in_compiler
55
// REQUIRES: executable_test
66
// REQUIRES: optimized_stdlib
7-
// REQUIRES: OS=macosx || OS=linux-gnu
87
// REQUIRES: swift_feature_Embedded
98

109
@dynamicMemberLookup

test/embedded/keypaths4.swift

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// REQUIRES: swift_in_compiler
44
// REQUIRES: optimized_stdlib
5-
// REQUIRES: OS=macosx || OS=linux-gnu
65
// REQUIRES: swift_feature_Embedded
76

87
public func foo() {

test/embedded/lazy-collections.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// REQUIRES: swift_in_compiler
44
// REQUIRES: executable_test
55
// REQUIRES: optimized_stdlib
6-
// REQUIRES: OS=macosx || OS=linux-gnu
76
// REQUIRES: swift_feature_Embedded
87

98
@main

0 commit comments

Comments
 (0)