Skip to content

Commit 0aa3125

Browse files
committed
[Testing] Eliminate REQUIRES-ANY usage
REQUIRES-ANY is deprecated and being removed. Use boolean expressions. rdar://problem/58549266
1 parent 071bece commit 0aa3125

18 files changed

+18
-18
lines changed

test/Driver/autolink-force-load-no-comdat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: not %swiftc_driver -autolink-force-load -incremental %s 2>&1 | %FileCheck -check-prefix=AUTOLINK_FORCE_LOAD %s
33

44
// MACHO targets do not support COMDAT
5-
// REQUIRES-ANY: OS=macosx, OS=tvos, OS=watchos, OS=ios
5+
// REQUIRES: OS=macosx || OS=tvos || OS=watchos || OS=ios
66

77
// AUTOLINK_FORCE_LOAD: error: '-autolink-force-load' is not supported with '-incremental'
88

test/SourceKit/CursorInfo/cursor_rename.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ _ = Foo.init(2)
1818
// CHECK1: Rename
1919
// CHECK2-NOT: Rename
2020

21-
// REQUIRES-ANY: OS=macosx, OS=linux-gnu
21+
// REQUIRES: OS=macosx || OS=linux-gnu

test/SourceKit/DocSupport/doc_clang_module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: objc_interop
22

33
// FIXME: the test output we're comparing to is specific to macOS.
4-
// REQUIRES-ANY: OS=macosx
4+
// REQUIRES: OS=macosx
55

66
// RUN: %empty-directory(%t)
77
// RUN: %build-clang-importer-objc-overlays

test/SourceKit/InterfaceGen/gen_clang_module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var x: FooClassBase
55
// REQUIRES: objc_interop
66

77
// FIXME: the test output we're comparing to is specific to macOS.
8-
// REQUIRES-ANY: OS=macosx
8+
// REQUIRES: OS=macosx
99

1010
// RUN: %empty-directory(%t.overlays)
1111
// RUN: %empty-directory(%t)

test/SourceKit/InterfaceGen/gen_mixed_module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var x = 10
33
// REQUIRES: objc_interop
44

55
// FIXME: the test output we're comparing to is specific to macOS.
6-
// REQUIRES-ANY: OS=macosx
6+
// REQUIRES: OS=macosx
77

88
// RUN: %empty-directory(%t.overlays)
99
// RUN: %empty-directory(%t)

test/SourceKit/Refactoring/basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ func foo7() -> String {
152152

153153
// CHECK-LOCALIZE-STRING: source.refactoring.kind.localize.string
154154

155-
// REQUIRES-ANY: OS=macosx, OS=linux-gnu
155+
// REQUIRES: OS=macosx || OS=linux-gnu

test/SourceKit/Refactoring/rename-objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ func foo1() {
1818
// CHECK2: ACTIONS BEGIN
1919
// CHECK2-NEXT: ACTIONS END
2020

21-
// REQUIRES-ANY: OS=macosx, OS=linux-gnu
21+
// REQUIRES: OS=macosx || OS=linux-gnu

test/SourceKit/Refactoring/semantic-refactoring/expand-default.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ func foo(e : E) {
1313
// RUN: %sourcekitd-test -req=expand-default -pos=7:7 %s -- %s > %t.result/expand-default.swift.expected
1414
// RUN: diff -u %S/expand-default.swift.expected %t.result/expand-default.swift.expected
1515

16-
// REQUIRES-ANY: OS=macosx, OS=linux-gnu
16+
// REQUIRES: OS=macosx || OS=linux-gnu

test/SourceKit/Refactoring/semantic-refactoring/extract-func-default.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ func foo() -> Int {
99
// RUN: diff -u %S/extract-func-default.swift.expected %t.result/extract-func-default.swift.expected
1010

1111
// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
12-
// REQUIRES-ANY: OS=macosx
12+
// REQUIRES: OS=macosx

test/SourceKit/Refactoring/semantic-refactoring/extract-func-with-args.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ func foo() -> Int {
99
// RUN: diff -u %S/extract-func-with-args.swift.expected %t.result/extract-func-with-args.swift.expected
1010

1111
// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
12-
// REQUIRES-ANY: OS=macosx
12+
// REQUIRES: OS=macosx

0 commit comments

Comments
 (0)