Skip to content

[Testing] Eliminate REQUIRES-ANY usage #29194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/Driver/autolink-force-load-no-comdat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: not %swiftc_driver -autolink-force-load -incremental %s 2>&1 | %FileCheck -check-prefix=AUTOLINK_FORCE_LOAD %s

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

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

2 changes: 1 addition & 1 deletion test/SourceKit/CursorInfo/cursor_rename.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ _ = Foo.init(2)
// CHECK1: Rename
// CHECK2-NOT: Rename

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
2 changes: 1 addition & 1 deletion test/SourceKit/DocSupport/doc_clang_module.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// REQUIRES: objc_interop

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

// RUN: %empty-directory(%t)
// RUN: %build-clang-importer-objc-overlays
Expand Down
2 changes: 1 addition & 1 deletion test/SourceKit/InterfaceGen/gen_clang_module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var x: FooClassBase
// REQUIRES: objc_interop

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

// RUN: %empty-directory(%t.overlays)
// RUN: %empty-directory(%t)
Expand Down
2 changes: 1 addition & 1 deletion test/SourceKit/InterfaceGen/gen_mixed_module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var x = 10
// REQUIRES: objc_interop

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

// RUN: %empty-directory(%t.overlays)
// RUN: %empty-directory(%t)
Expand Down
2 changes: 1 addition & 1 deletion test/SourceKit/Refactoring/basic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ func foo7() -> String {

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

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
2 changes: 1 addition & 1 deletion test/SourceKit/Refactoring/rename-objc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ func foo1() {
// CHECK2: ACTIONS BEGIN
// CHECK2-NEXT: ACTIONS END

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ func foo(e : E) {
// RUN: %sourcekitd-test -req=expand-default -pos=7:7 %s -- %s > %t.result/expand-default.swift.expected
// RUN: diff -u %S/expand-default.swift.expected %t.result/expand-default.swift.expected

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ func foo() -> Int {
// RUN: diff -u %S/extract-func-default.swift.expected %t.result/extract-func-default.swift.expected

// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
// REQUIRES-ANY: OS=macosx
// REQUIRES: OS=macosx
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ func foo() -> Int {
// RUN: diff -u %S/extract-func-with-args.swift.expected %t.result/extract-func-with-args.swift.expected

// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
// REQUIRES-ANY: OS=macosx
// REQUIRES: OS=macosx
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ func foo() -> Int {
// RUN: diff -u %S/extract-func.swift.expected %t.result/extract-func.swift.expected

// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
// REQUIRES-ANY: OS=macosx
// REQUIRES: OS=macosx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ func foo() -> Int {
// RUN: %sourcekitd-test -req=extract-repeated -pos=3:11 -end-pos 3:12 -name new_name %s -- %s > %t.result/extract-repeated-expression.swift.expected
// RUN: diff -u %S/extract-repeated-expression.swift.expected %t.result/extract-repeated-expression.swift.expected

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class C1 : P {}
// RUN: %sourcekitd-test -req=fill-stub -pos=5:8 %s -- %s > %t.result/fill-stub.swift.expected
// RUN: diff -u %S/fill-stub.swift.expected %t.result/fill-stub.swift.expected

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ func foo() {
// RUN: %sourcekitd-test -req=find-local-rename-ranges -pos=7:11 %s -- %s > %t.result/local-rename-lazy.swift.expected
// RUN: diff -u %S/local-rename-lazy.swift.expected %t.result/local-rename-lazy.swift.expected

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ func foo() -> String {
// RUN: %sourcekitd-test -req=localize-string -pos=2:10 %s -- %s > %t.result/localize-string.swift.expected
// RUN: diff -u %S/localize-string.swift.expected %t.result/localize-string.swift.expected

// REQUIRES-ANY: OS=macosx, OS=linux-gnu
// REQUIRES: OS=macosx || OS=linux-gnu
2 changes: 1 addition & 1 deletion validation-test/stdlib/Glibc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// UNSUPPORTED: OS=tvos
// UNSUPPORTED: OS=watchos

// REQUIRES-ANY: OS=linux-gnu, OS=linux-androideabi, OS=linux-android
// REQUIRES: OS=linux-gnu || OS=linux-androideabi || OS=linux-android

import Swift
import StdlibUnittest
Expand Down
2 changes: 1 addition & 1 deletion validation-test/stdlib/POSIXErrorCode.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
//
// REQUIRES-ANY: OS=macosx, OS=ios, OS=tvos, OS=watchos, OS=linux-androideabi, OS=linux-android, OS=linux-gnu
// REQUIRES: OS=macosx || OS=ios || OS=tvos || OS=watchos || OS=linux-androideabi || OS=linux-android || OS=linux-gnu

import Swift
import StdlibUnittest
Expand Down
2 changes: 1 addition & 1 deletion validation-test/stdlib/StringLowercasedUppercased.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// directly. It is not specific to Linux, it is just that on
// Apple platforms we are using the NSString bridge right now.

// REQUIRES-ANY: OS=linux-gnu, OS=linux-android, OS=linux-androideabi
// REQUIRES: OS=linux-gnu || OS=linux-android || OS=linux-androideabi

import StdlibUnittest

Expand Down