Skip to content

test: mark a few tests as unsupported on Wasm/WASI #39504

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
Sep 29, 2021
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: 2 additions & 0 deletions test/ClangImporter/availability_returns_twice.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// RUN: %target-typecheck-verify-swift
// UNSUPPORTED: OS=windows-msvc
// `setjmp` is not available on WebAssembly/WASI
// UNSUPPORTED: OS=wasi
// In Android jmp_buf is int[16], which doesn't convert to &Int (SR-9136)
// XFAIL: OS=linux-androideabi
// XFAIL: OS=linux-android
Expand Down
3 changes: 3 additions & 0 deletions test/Concurrency/Runtime/exclusivity_custom_executors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
// UNSUPPORTED: back_deployment_runtime
// REQUIRES: concurrency_runtime

// Crash expectations can't be implemented on WASI/WebAssembly.
// UNSUPPORTED: OS=wasi

// Disabled until test hang can be looked at.
// UNSUPPORTED: OS=windows-msvc

Expand Down
2 changes: 2 additions & 0 deletions test/IRGen/sanitize_coverage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// RUN: %target-swift-frontend -emit-ir -sanitize=address -sanitize-coverage=edge,indirect-calls %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_INDIRECT_CALLS
// RUN: %target-swift-frontend -emit-ir -sanitize=address -sanitize-coverage=edge,8bit-counters %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_8BIT_COUNTERS
// RUN: %target-swift-frontend -emit-ir -sanitize=fuzzer %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_TRACE_CMP
// These sanitizers aren't supported when targeting Wasm.
// UNSUPPORTED: wasm

#if canImport(Darwin)
import Darwin
Expand Down
2 changes: 2 additions & 0 deletions test/Interpreter/dynamicReplacement_property_observer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// REQUIRES: executable_test

// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
// Dynamic replacement is not supported when targeting Wasm.
// UNSUPPORTED: wasm

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

Expand Down
1 change: 1 addition & 0 deletions test/Interpreter/dynamic_replacement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@


// REQUIRES: executable_test
// UNSUPPORTED: wasm

import Module1

Expand Down
1 change: 1 addition & 0 deletions test/Interpreter/dynamic_replacement_chaining.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

// This test flips the chaining flag.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
// UNSUPPORTED: wasm

import A

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// RUN: %target-run %t/main %t/%target-library-name(Module1) %t/%target-library-name(Module2)

// REQUIRES: executable_test
// UNSUPPORTED: wasm

import Module1

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/CharacterTraps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// RUN: %target-run %t/a.out_Debug
// RUN: %target-run %t/a.out_Release
// REQUIRES: executable_test
// UNSUPPORTED: OS=wasi

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/DictionaryTraps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// RUN: %target-run %t/a.out_Debug
// RUN: %target-run %t/a.out_Release
// REQUIRES: executable_test
// UNSUPPORTED: OS=wasi

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/InputStream.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// RUN: %target-run-simple-swiftgyb
// REQUIRES: executable_test
// UNSUPPORTED: freestanding
// UNSUPPORTED: OS=wasi

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/IntervalTraps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// RUN: %target-run %t/a.out_Debug
// RUN: %target-run %t/a.out_Release
// REQUIRES: executable_test
// UNSUPPORTED: OS=wasi

import StdlibUnittest

Expand Down
3 changes: 2 additions & 1 deletion test/stdlib/OptionalTraps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// RUN: %target-run %t/Assert_Release
// RUN: %target-run %t/Assert_Unchecked
// REQUIRES: executable_test
// UNSUPPORTED: OS=wasi

import StdlibUnittest

Expand Down Expand Up @@ -48,7 +49,7 @@ OptionalTraps.test("UnwrapNone/location")
{ _isFastAssertConfiguration() },
reason: "this trap is not guaranteed to happen in -Ounchecked"))
.crashOutputMatches(shouldCheckErrorLocation()
? "OptionalTraps.swift:57:"
? "OptionalTraps.swift:58:"
: "")
.code {
expectCrashLater()
Expand Down
1 change: 1 addition & 0 deletions test/stdlib/POSIX.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %target-run-simple-swift %t
// REQUIRES: executable_test
// UNSUPPORTED: OS=windows-msvc
// UNSUPPORTED: OS=wasi

import StdlibUnittest
#if canImport(Darwin)
Expand Down
1 change: 1 addition & 0 deletions test/stdlib/RangeTraps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// RUN: %target-run %t/a.out_Debug
// RUN: %target-run %t/a.out_Release
// REQUIRES: executable_test
// UNSUPPORTED: OS=wasi


import StdlibUnittest
Expand Down
1 change: 1 addition & 0 deletions test/stdlib/SetTraps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// RUN: %target-run %t/a.out_Debug
// RUN: %target-run %t/a.out_Release
// REQUIRES: executable_test
// UNSUPPORTED: OS=wasi

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/StringTraps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// RUN: %target-run %t/a.out_Debug
// RUN: %target-run %t/a.out_Release
// REQUIRES: executable_test
// UNSUPPORTED: OS=wasi

import StdlibUnittest

Expand Down
1 change: 1 addition & 0 deletions test/stdlib/mmap.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %target-run-simple-swift %t
// REQUIRES: executable_test
// UNSUPPORTED: OS=windows-msvc
// UNSUPPORTED: OS=wasi

import StdlibUnittest
#if canImport(Darwin)
Expand Down
1 change: 1 addition & 0 deletions test/stdlib/simd_diagnostics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// FIXME: No simd module on linux rdar://problem/20795411
// XFAIL: linux, windows, openbsd
// XFAIL: OS=wasi

import simd

Expand Down