Skip to content

[Tests] Make OS features consistent #58975

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
May 25, 2022
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %target-build-swift -O %s

// FIXME(rdar://89055298)
// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu

// rdar://71191415

Expand Down
2 changes: 1 addition & 1 deletion test/Concurrency/Reflection/reflect_task.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// UNSUPPORTED: use_os_stdlib
// UNSUPPORTED: back_deployment_runtime
//
// UNSUPPORTED: OS=macosx,ios,watchos,tvos
// UNSUPPORTED: OS=macosx, OS=ios, OS=watchos, OS=tvos

import Swift
import _Concurrency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// REQUIRES: concurrency
// REQUIRES: concurrency_runtime
// UNSUPPORTED: back_deployment_runtime
// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu

// REQUIRES: rdar86028226

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// REQUIRES: concurrency_runtime
// UNSUPPORTED: back_deployment_runtime

// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu

@available(SwiftStdlib 5.1, *)
func test_taskGroup_is_asyncSequence() async {
Expand Down
2 changes: 1 addition & 1 deletion test/Concurrency/Runtime/executor_deinit1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// UNSUPPORTED: back_deployment_runtime

// https://bugs.swift.org/browse/SR-14461
// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu

// REQUIRES: rdar78325660

Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/local-vars.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// all. There are other tests testing liveness and representation.

// rdar://problem/57611302
// XFAIL: windows
// XFAIL: OS=windows-msvc

// RUN: %gyb %s -o %t.swift
// RUN: %target-swift-frontend %t.swift -g -emit-ir -o - | %FileCheck %t.swift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
2 changes: 1 addition & 1 deletion test/Distributed/Runtime/distributed_actor_deinit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
2 changes: 1 addition & 1 deletion test/Distributed/Runtime/distributed_actor_hop_to.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc


import Distributed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

// REQUIRES: rdar92277324

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed
import FakeDistributedActorSystems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// UNSUPPORTED: back_deployment_runtime

// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

import Distributed

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Windows doesn't support parallel execution yet
// XFAIL: windows
// XFAIL: OS=windows-msvc
// RUN: %empty-directory(%t)
// RUN: cp -r %S/Inputs/one-way-fine/* %t
// RUN: touch -t 201401240005 %t/*
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/Dependencies/one-way-parallel-fine.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Windows doesn't support parallel execution yet
// XFAIL: windows
// XFAIL: OS=windows-msvc
// RUN: %empty-directory(%t)
// RUN: cp -r %S/Inputs/one-way-fine/* %t
// RUN: touch -t 201401240005 %t/*
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/Dependencies/only-skip-once.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// XFAIL: linux, openbsd, windows
// XFAIL: OS=linux-gnu, OS=openbsd, OS=windows-msvc

// RUN: %empty-directory(%t)
// RUN: cp -r %S/Inputs/only-skip-once/* %t
Expand Down
1 change: 0 additions & 1 deletion test/Driver/batch_mode_bridging_pch.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// XFAIL: win32
// RUN: %empty-directory(%t)
// RUN: touch %t/file-01.swift %t/file-02.swift %t/file-03.swift
// RUN: echo 'public func main() {}' >%t/main.swift
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/environment.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: objc_interop
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc
// Apple's "System Integrity Protection" makes this test fail on OS X.

// RUN: %swift_driver_plain -sdk "" -target x86_64-unknown-gnu-linux -L/foo/ -driver-use-frontend-path %S/Inputs/print-var.sh %s LD_LIBRARY_PATH | %FileCheck -check-prefix=CHECK${LD_LIBRARY_PATH+_LAX} %s
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/filelists.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc
// RUN: %empty-directory(%t)
// RUN: touch %t/a.swift %t/b.swift %t/c.swift

Expand Down
2 changes: 1 addition & 1 deletion test/Driver/frontend.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %swiftc_driver %s -### 2>&1 | %FileCheck %s

// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc
// CHECK: swift-frontend

2 changes: 1 addition & 1 deletion test/Driver/fuzzer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc
// UNSUPPORTED: CPU=powerpc64le
// RUN: %swiftc_driver -driver-print-jobs -sanitize=fuzzer,address -target x86_64-apple-macosx10.9 -resource-dir %S/Inputs/fake-resource-dir/lib/swift/ %s | %FileCheck -check-prefix=LIBFUZZER_OSX %s
// RUN: %swiftc_driver -driver-print-jobs -sanitize=fuzzer,address -target x86_64-unknown-linux-gnu -resource-dir %S/Inputs/fake-resource-dir/lib/swift/ %s | %FileCheck -check-prefix=LIBFUZZER_LINUX %s
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/loaded_module_trace_nocrash.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: -windows-msvc
// UNSUPPORTED: OS=windows-msvc

// RUN: %empty-directory(%t)
// RUN: mkdir -p %t/Mods/Foo.swiftmodule
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/loaded_module_trace_swiftinterface.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: -windows-msvc
// UNSUPPORTED: OS=windows-msvc
// REQUIRES: SR13034

// 1) If there is no swiftmodule, use the swiftinterface
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/macabi-environment.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Tests to check that the driver finds standard library in the macabi environment.

// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

// RUN: %swiftc_driver -sdk "" -sdk "" -driver-print-jobs -target x86_64-apple-ios13.1-macabi -sdk %S/../Inputs/clang-importer-sdk %s | %FileCheck -check-prefix=IOS13-MACABI %s
// IOS13-MACABI: bin/swift
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/parseable_output.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %swiftc_driver_plain -emit-executable %s -o %t.out -emit-module -emit-module-path %t.swiftmodule -emit-objc-header-path %t.h -serialize-diagnostics -emit-dependencies -parseable-output -driver-skip-execution 2>&1 | %FileCheck %s

// XFAIL: freebsd, openbsd, linux
// XFAIL: OS=freebsd, OS=openbsd, OS=linux-gnu

// CHECK: {{[1-9][0-9]*}}
// CHECK-NEXT: {
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/parseable_output_unicode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: cat "%S/Inputs/unicode.txt" >> %t.rsp
// RUN: %swiftc_driver_plain -emit-executable @%t.rsp -o %t.out -emit-module -emit-module-path %t.swiftmodule -emit-objc-header-path %t.h -serialize-diagnostics -emit-dependencies -parseable-output -driver-skip-execution 2>&1 | %FileCheck %s

// XFAIL: freebsd, openbsd, linux
// XFAIL: OS=freebsd, OS=openbsd, OS=linux-gnu

// CHECK: {{[1-9][0-9]*}}
// CHECK-NEXT: {
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/pipe_round_robin.swift.gyb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Windows doesn't track/use read() and poll()
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc
// This test is unreliable on busy machines.
// ALLOW_RETRIES: 5
// RUN: %empty-directory(%t/manyfuncs)
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/sdk-apple.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// XFAIL: freebsd, openbsd, linux, windows
// XFAIL: OS=freebsd, OS=openbsd, OS=linux-gnu, OS=windows-msvc

// Test SDK detection for immediate mode.
// RUN: %empty-directory(%t)
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/print_clang_header_i386.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// REQUIRES: OS=macosx
// REQUIRES: CPU=x86_64
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux, freebsd
// XFAIL: OS=linux-gnu, OS=freebsd

// RUN: echo '#include "header-to-print.h"' > %t.i386.m
// RUN: %empty-directory(%t)
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/abitypes.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/abi %s -emit-ir -enable-objc-interop | %FileCheck -check-prefix=%target-cpu-%target-os-abi %s

// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux, windows, openbsd
// XFAIL: OS=linux-gnu, OS=windows-msvc, OS=openbsd

import gadget
import Foundation
Expand Down
2 changes: 1 addition & 1 deletion test/Interpreter/shebang-direct.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
// RUN: %t.shebang.swift a b c | %FileCheck -check-prefix=THREE-ARGS %S/shebang-env.swift

// REQUIRES: swift_interpreter
// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu
2 changes: 1 addition & 1 deletion test/ModuleInterface/BadStdlib.swiftinterface
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ import ClangMod
public func useHasPointer(_: HasPointer)

// FIXME: SR-14489
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# For its Windows counterpart, see compiler-crash-windows.test-sh
UNSUPPORTED: windows
UNSUPPORTED: OS=windows-msvc

RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/mock-sdk/ -o %t/output -debug-crash-compiler 2>&1 | %FileCheck %s

Expand Down
2 changes: 1 addition & 1 deletion test/Prototypes/CollectionTransformers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ import Darwin
import Dispatch

// FIXME: port to Linux.
// XFAIL: linux, windows, openbsd
// XFAIL: OS=linux-gnu, OS=windows-msvc, OS=openbsd

// A wrapper for pthread_t with platform-independent interface.
public struct _stdlib_pthread_t : Equatable, Hashable {
Expand Down
4 changes: 2 additions & 2 deletions test/Reflection/box_descriptors.sil
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// RUN: %target-swift-reflection-dump -binary-filename %t/capture_descriptors%{target-shared-library-suffix} | %FileCheck %s

// SR-10758
// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu

// SR-12893
// XFAIL: openbsd
// XFAIL: OS=openbsd

sil_stage canonical

Expand Down
2 changes: 1 addition & 1 deletion test/Reflection/capture_descriptors.sil
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// REQUIRES: no_asan

// SR-12893
// XFAIL: openbsd
// XFAIL: OS=openbsd
// UNSUPPORTED: OS=linux-android, OS=linux-androideabi

// RUN: %empty-directory(%t)
Expand Down
2 changes: 1 addition & 1 deletion test/Reflection/conformance_descriptors.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: windows
// UNSUPPORTED: OS=windows-msvc

// Temporarily disable on AArch64 Linux (rdar://88451721)
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64
Expand Down
2 changes: 1 addition & 1 deletion test/Reflection/typeref_decoding_imported.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// XFAIL: OS=windows-msvc

// SR-12893
// XFAIL: openbsd
// XFAIL: OS=openbsd

// RUN: %empty-directory(%t)

Expand Down
2 changes: 1 addition & 1 deletion test/SILOptimizer/addr_escape_info.sil
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// REQUIRES: swift_in_compiler

// rdar92963081
// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu

sil_stage canonical

Expand Down
2 changes: 1 addition & 1 deletion test/SILOptimizer/escape_info.sil
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// REQUIRES: swift_in_compiler

// rdar92963081
// UNSUPPORTED: linux
// UNSUPPORTED: OS=linux-gnu


sil_stage canonical
Expand Down
Loading