Skip to content

Commit cf6d605

Browse files
committed
Update test directives for wasm32-wasip1
* The WASI targets deal with the `main` symbol a bit differently than native so some `codegen` and `assembly` tests have been ignored. * All `ignore-emscripten` directives have been updated to `ignore-wasm32` to be more clear that all wasm targets are ignored and it's not just Emscripten. * Most `ignore-wasm32-bare` directives are now gone. * Some ignore directives for wasm were switched to `needs-unwind` instead. * Many `ignore-wasm32*` directives are removed as the tests work with WASI as opposed to `wasm32-unknown-unknown`.
1 parent 4a5aa1a commit cf6d605

File tree

195 files changed

+210
-332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+210
-332
lines changed

tests/assembly/wasm_exceptions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ only-wasm32-bare
1+
//@ only-wasm32
22
//@ assembly-output: emit-asm
33
//@ compile-flags: -C target-feature=+exception-handling
44
//@ compile-flags: -C panic=unwind

tests/codegen/abi-main-signature-32bit-c-int.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// This test is for targets with 32bit c_int only.
55
//@ ignore-msp430
66
//@ ignore-avr
7+
//@ ignore-wasi wasi codegens the main symbol differently
78

89
fn main() {
910
}

tests/codegen/drop.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//@ ignore-wasm32-bare compiled with panic=abort by default
21
//@ needs-unwind - this test verifies the amount of drop calls when unwinding is used
32
//@ compile-flags: -C no-prepopulate-passes
43

tests/codegen/enum/enum-debug-clike.rs

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

44
//
55
//@ ignore-msvc
6+
//@ ignore-wasi wasi codegens the main symbol differently
67

78
//@ compile-flags: -g -C no-prepopulate-passes
89

tests/codegen/enum/enum-debug-niche.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// This is ignored for the fallback mode on MSVC due to problems with PDB.
33

44
//@ ignore-msvc
5+
//@ ignore-wasi wasi codegens the main symbol differently
56

67
//@ compile-flags: -g -C no-prepopulate-passes
78

tests/codegen/enum/enum-debug-tagged.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// This is ignored for the fallback mode on MSVC due to problems with PDB.
33

44
//@ ignore-msvc
5+
//@ ignore-wasi wasi codegens the main symbol differently
56

67
//@ compile-flags: -g -C no-prepopulate-passes
78

tests/codegen/enum/enum-u128.rs

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

44
//
55
//@ ignore-msvc
6+
//@ ignore-wasi wasi codegens the main symbol differently
67

78
//@ compile-flags: -g -C no-prepopulate-passes
89

tests/codegen/fn-impl-trait-self.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ compile-flags: -g
2+
//@ ignore-wasi wasi codegens the main symbol differently
23
//
34
// CHECK-LABEL: @main
45
// MSVC: {{.*}}DIDerivedType(tag: DW_TAG_pointer_type, name: "recursive_type$ (*)()",{{.*}}

tests/codegen/generic-debug.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ ignore-windows
2+
//@ ignore-wasi wasi codegens the main symbol differently
23

34
//@ compile-flags: -g -C no-prepopulate-passes
45

tests/codegen/link_section.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ ignore-emscripten default visibility is hidden
1+
//@ ignore-wasm32 custom sections work differently on wasm
22
//@ compile-flags: -C no-prepopulate-passes
33

44
#![crate_type = "lib"]

0 commit comments

Comments
 (0)