Skip to content

Commit 7b431b4

Browse files
committed
[test] Mark XFAIL tests for OpenBSD.
These tests are marked XFAIL or UNSUPPORTED because either the tests: require libc annotation, require Mach-O support, don't recognize calls to swift-autolink-extract, requires porting alongside Linux, or rely on simd which is not present. Additionally, explicit REQUIRES for tsan/asan/fuzzer are added to some tests, since OpenBSD does not support these sanitizers or fuzzers, since it's nicer to mark that with REQUIRES rather than XFAIL.
1 parent 41758c0 commit 7b431b4

19 files changed

+20
-10
lines changed

test/ClangImporter/availability_returns_twice.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// In Android jmp_buf is int[16], which doesn't convert to &Int (SR-9136)
44
// XFAIL: OS=linux-androideabi
55
// XFAIL: OS=linux-android
6+
// XFAIL: OS=openbsd
67

78
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
89
import Darwin

test/Driver/Dependencies/only-skip-once.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: linux
1+
// XFAIL: linux, openbsd
22

33
// RUN: %empty-directory(%t)
44
// RUN: cp -r %S/Inputs/only-skip-once/* %t

test/Driver/PrivateDependencies/only-skip-once.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: linux
1+
// XFAIL: linux, openbsd
22

33
// RUN: %empty-directory(%t)
44
// RUN: cp -r %S/Inputs/only-skip-once/* %t

test/Driver/parseable_output.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 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
22

3-
// XFAIL: freebsd, linux
3+
// XFAIL: freebsd, openbsd, linux
44

55
// CHECK: {{[1-9][0-9]*}}
66
// CHECK-NEXT: {

test/Driver/parseable_output_unicode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: cat "%S/Inputs/unicode.txt" >> %t.rsp
33
// 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
44

5-
// XFAIL: freebsd, linux
5+
// XFAIL: freebsd, openbsd, linux
66

77
// CHECK: {{[1-9][0-9]*}}
88
// CHECK-NEXT: {

test/Driver/sdk-apple.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: freebsd, linux, windows
1+
// XFAIL: freebsd, openbsd, linux, windows
22

33
// Test SDK detection for immediate mode.
44
// RUN: %empty-directory(%t)

test/Frontend/embed-bitcode.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// UNSUPPORTED: OS=linux-gnu
99
// UNSUPPORTED: OS=linux-gnueabihf
1010
// UNSUPPORTED: OS=freebsd
11+
// UNSUPPORTED: OS=openbsd
1112
// UNSUPPORTED: OS=windows-msvc
1213

1314
// MARKER: Contents of (__LLVM,__bitcode) section

test/IRGen/abitypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// 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 %s
22

33
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
4-
// XFAIL: linux, windows
4+
// XFAIL: linux, windows, openbsd
55

66
import gadget
77
import Foundation

test/IRGen/address_sanitizer_recover.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: asan_runtime
12
// RUN: %target-swift-frontend -emit-ir -sanitize=address -sanitize-recover=address %s | %FileCheck %s -check-prefix=ASAN_RECOVER
23
// RUN: %target-swift-frontend -emit-ir -sanitize=address %s | %FileCheck %s -check-prefix=ASAN_NO_RECOVER
34
// RUN: %target-swift-frontend -emit-ir -sanitize-recover=address %s | %FileCheck %s -check-prefix=NO_ASAN_RECOVER

test/IRGen/asan-attributes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: asan_runtime
12
// This test verifies that we add the function attributes used by ASan.
23

34
// RUN: %target-swift-frontend -emit-ir -sanitize=address %s | %FileCheck %s -check-prefix=ASAN

0 commit comments

Comments
 (0)