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

0 commit comments

Comments
 (0)