Skip to content

Commit 8d20449

Browse files
committed
test: mark a few tests as unsupported on Wasm/WASI
1 parent 510d66b commit 8d20449

18 files changed

+24
-1
lines changed

test/ClangImporter/availability_returns_twice.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-typecheck-verify-swift
22
// UNSUPPORTED: OS=windows-msvc
3+
// `setjmp` is not available on WebAssembly/WASI
4+
// UNSUPPORTED: OS=wasi
35
// In Android jmp_buf is int[16], which doesn't convert to &Int (SR-9136)
46
// XFAIL: OS=linux-androideabi
57
// XFAIL: OS=linux-android

test/Concurrency/Runtime/exclusivity_custom_executors.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
// UNSUPPORTED: back_deployment_runtime
88
// REQUIRES: concurrency_runtime
99

10+
// Crash expectations can't be implemented on WASI/WebAssembly.
11+
// UNSUPPORTED: OS=wasi
12+
1013
// Disabled until test hang can be looked at.
1114
// UNSUPPORTED: OS=windows-msvc
1215

test/IRGen/sanitize_coverage.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// RUN: %target-swift-frontend -emit-ir -sanitize=address -sanitize-coverage=edge,indirect-calls %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_INDIRECT_CALLS
99
// RUN: %target-swift-frontend -emit-ir -sanitize=address -sanitize-coverage=edge,8bit-counters %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_8BIT_COUNTERS
1010
// RUN: %target-swift-frontend -emit-ir -sanitize=fuzzer %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_TRACE_CMP
11+
// These sanitizers aren't supported when targeting Wasm.
12+
// UNSUPPORTED: wasm
1113

1214
#if canImport(Darwin)
1315
import Darwin

test/Interpreter/dynamicReplacement_property_observer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// REQUIRES: executable_test
99

1010
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
11+
// Dynamic replacement is not supported when targeting Wasm.
12+
// UNSUPPORTED: wasm
1113

1214
@_private(sourceFile: "dynamic_replacement_property_observer_orig.swift") import TestDidWillSet
1315

test/Interpreter/dynamic_replacement.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100

101101

102102
// REQUIRES: executable_test
103+
// UNSUPPORTED: wasm
103104

104105
import Module1
105106

test/Interpreter/dynamic_replacement_chaining.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// This test flips the chaining flag.
2222
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
23+
// UNSUPPORTED: wasm
2324

2425
import A
2526

test/Interpreter/dynamic_replacement_without_previous_calls.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// RUN: %target-run %t/main %t/%target-library-name(Module1) %t/%target-library-name(Module2)
77

88
// REQUIRES: executable_test
9+
// UNSUPPORTED: wasm
910

1011
import Module1
1112

test/stdlib/CharacterTraps.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// RUN: %target-run %t/a.out_Debug
88
// RUN: %target-run %t/a.out_Release
99
// REQUIRES: executable_test
10+
// UNSUPPORTED: OS=wasi
1011

1112
import StdlibUnittest
1213

test/stdlib/DictionaryTraps.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// RUN: %target-run %t/a.out_Debug
88
// RUN: %target-run %t/a.out_Release
99
// REQUIRES: executable_test
10+
// UNSUPPORTED: OS=wasi
1011

1112
import StdlibUnittest
1213

test/stdlib/InputStream.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// RUN: %target-run-simple-swiftgyb
1414
// REQUIRES: executable_test
1515
// UNSUPPORTED: freestanding
16+
// UNSUPPORTED: OS=wasi
1617

1718
import StdlibUnittest
1819

test/stdlib/IntervalTraps.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// RUN: %target-run %t/a.out_Debug
1919
// RUN: %target-run %t/a.out_Release
2020
// REQUIRES: executable_test
21+
// UNSUPPORTED: OS=wasi
2122

2223
import StdlibUnittest
2324

test/stdlib/OptionalTraps.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// RUN: %target-run %t/Assert_Release
1111
// RUN: %target-run %t/Assert_Unchecked
1212
// REQUIRES: executable_test
13+
// UNSUPPORTED: OS=wasi
1314

1415
import StdlibUnittest
1516

@@ -48,7 +49,7 @@ OptionalTraps.test("UnwrapNone/location")
4849
{ _isFastAssertConfiguration() },
4950
reason: "this trap is not guaranteed to happen in -Ounchecked"))
5051
.crashOutputMatches(shouldCheckErrorLocation()
51-
? "OptionalTraps.swift:57:"
52+
? "OptionalTraps.swift:58:"
5253
: "")
5354
.code {
5455
expectCrashLater()

test/stdlib/POSIX.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-run-simple-swift %t
22
// REQUIRES: executable_test
33
// UNSUPPORTED: OS=windows-msvc
4+
// UNSUPPORTED: OS=wasi
45

56
import StdlibUnittest
67
#if canImport(Darwin)

test/stdlib/RangeTraps.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// RUN: %target-run %t/a.out_Debug
1919
// RUN: %target-run %t/a.out_Release
2020
// REQUIRES: executable_test
21+
// UNSUPPORTED: OS=wasi
2122

2223

2324
import StdlibUnittest

test/stdlib/SetTraps.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// RUN: %target-run %t/a.out_Debug
88
// RUN: %target-run %t/a.out_Release
99
// REQUIRES: executable_test
10+
// UNSUPPORTED: OS=wasi
1011

1112
import StdlibUnittest
1213

test/stdlib/StringTraps.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// RUN: %target-run %t/a.out_Debug
88
// RUN: %target-run %t/a.out_Release
99
// REQUIRES: executable_test
10+
// UNSUPPORTED: OS=wasi
1011

1112
import StdlibUnittest
1213

test/stdlib/mmap.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-run-simple-swift %t
22
// REQUIRES: executable_test
33
// UNSUPPORTED: OS=windows-msvc
4+
// UNSUPPORTED: OS=wasi
45

56
import StdlibUnittest
67
#if canImport(Darwin)

test/stdlib/simd_diagnostics.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// FIXME: No simd module on linux rdar://problem/20795411
44
// XFAIL: linux, windows, openbsd
5+
// XFAIL: OS=wasi
56

67
import simd
78

0 commit comments

Comments
 (0)