From cf6d6050f7d1ea62c9aae54ddd345106b6e31382 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 6 Mar 2024 12:44:54 -0800 Subject: 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`. --- tests/codegen/abi-main-signature-32bit-c-int.rs | 1 + tests/codegen/drop.rs | 1 - tests/codegen/enum/enum-debug-clike.rs | 1 + tests/codegen/enum/enum-debug-niche.rs | 1 + tests/codegen/enum/enum-debug-tagged.rs | 1 + tests/codegen/enum/enum-u128.rs | 1 + tests/codegen/fn-impl-trait-self.rs | 1 + tests/codegen/generic-debug.rs | 1 + tests/codegen/link_section.rs | 2 +- tests/codegen/mainsubprogram.rs | 1 + tests/codegen/mainsubprogramstart.rs | 1 + tests/codegen/personality_lifetimes.rs | 1 - tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs | 1 - tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs | 1 - tests/codegen/unwind-abis/nounwind.rs | 2 +- tests/codegen/unwind-extern-exports.rs | 1 - tests/codegen/unwind-extern-imports.rs | 1 - tests/codegen/wasm_exceptions.rs | 2 +- 18 files changed, 12 insertions(+), 9 deletions(-) (limited to 'tests/codegen') diff --git a/tests/codegen/abi-main-signature-32bit-c-int.rs b/tests/codegen/abi-main-signature-32bit-c-int.rs index 52db3d893e1..7684024a2e3 100644 --- a/tests/codegen/abi-main-signature-32bit-c-int.rs +++ b/tests/codegen/abi-main-signature-32bit-c-int.rs @@ -4,6 +4,7 @@ // This test is for targets with 32bit c_int only. //@ ignore-msp430 //@ ignore-avr +//@ ignore-wasi wasi codegens the main symbol differently fn main() { } diff --git a/tests/codegen/drop.rs b/tests/codegen/drop.rs index 93e54979a05..1e80247ba8a 100644 --- a/tests/codegen/drop.rs +++ b/tests/codegen/drop.rs @@ -1,4 +1,3 @@ -//@ ignore-wasm32-bare compiled with panic=abort by default //@ needs-unwind - this test verifies the amount of drop calls when unwinding is used //@ compile-flags: -C no-prepopulate-passes diff --git a/tests/codegen/enum/enum-debug-clike.rs b/tests/codegen/enum/enum-debug-clike.rs index 205c57d1456..59ad5878443 100644 --- a/tests/codegen/enum/enum-debug-clike.rs +++ b/tests/codegen/enum/enum-debug-clike.rs @@ -3,6 +3,7 @@ // //@ ignore-msvc +//@ ignore-wasi wasi codegens the main symbol differently //@ compile-flags: -g -C no-prepopulate-passes diff --git a/tests/codegen/enum/enum-debug-niche.rs b/tests/codegen/enum/enum-debug-niche.rs index fc6a73e8472..90de928bced 100644 --- a/tests/codegen/enum/enum-debug-niche.rs +++ b/tests/codegen/enum/enum-debug-niche.rs @@ -2,6 +2,7 @@ // This is ignored for the fallback mode on MSVC due to problems with PDB. //@ ignore-msvc +//@ ignore-wasi wasi codegens the main symbol differently //@ compile-flags: -g -C no-prepopulate-passes diff --git a/tests/codegen/enum/enum-debug-tagged.rs b/tests/codegen/enum/enum-debug-tagged.rs index 87a6ccae291..f13922ee33b 100644 --- a/tests/codegen/enum/enum-debug-tagged.rs +++ b/tests/codegen/enum/enum-debug-tagged.rs @@ -2,6 +2,7 @@ // This is ignored for the fallback mode on MSVC due to problems with PDB. //@ ignore-msvc +//@ ignore-wasi wasi codegens the main symbol differently //@ compile-flags: -g -C no-prepopulate-passes diff --git a/tests/codegen/enum/enum-u128.rs b/tests/codegen/enum/enum-u128.rs index 94e80e34068..ecdff3c5ce3 100644 --- a/tests/codegen/enum/enum-u128.rs +++ b/tests/codegen/enum/enum-u128.rs @@ -3,6 +3,7 @@ // //@ ignore-msvc +//@ ignore-wasi wasi codegens the main symbol differently //@ compile-flags: -g -C no-prepopulate-passes diff --git a/tests/codegen/fn-impl-trait-self.rs b/tests/codegen/fn-impl-trait-self.rs index 9f10762d8fa..5799d23b5a0 100644 --- a/tests/codegen/fn-impl-trait-self.rs +++ b/tests/codegen/fn-impl-trait-self.rs @@ -1,4 +1,5 @@ //@ compile-flags: -g +//@ ignore-wasi wasi codegens the main symbol differently // // CHECK-LABEL: @main // MSVC: {{.*}}DIDerivedType(tag: DW_TAG_pointer_type, name: "recursive_type$ (*)()",{{.*}} diff --git a/tests/codegen/generic-debug.rs b/tests/codegen/generic-debug.rs index 87a0ddfea93..0f289026396 100644 --- a/tests/codegen/generic-debug.rs +++ b/tests/codegen/generic-debug.rs @@ -1,4 +1,5 @@ //@ ignore-windows +//@ ignore-wasi wasi codegens the main symbol differently //@ compile-flags: -g -C no-prepopulate-passes diff --git a/tests/codegen/link_section.rs b/tests/codegen/link_section.rs index 6747feba211..281d3fb99d4 100644 --- a/tests/codegen/link_section.rs +++ b/tests/codegen/link_section.rs @@ -1,4 +1,4 @@ -//@ ignore-emscripten default visibility is hidden +//@ ignore-wasm32 custom sections work differently on wasm //@ compile-flags: -C no-prepopulate-passes #![crate_type = "lib"] diff --git a/tests/codegen/mainsubprogram.rs b/tests/codegen/mainsubprogram.rs index 8e173df0e86..c1933b2b390 100644 --- a/tests/codegen/mainsubprogram.rs +++ b/tests/codegen/mainsubprogram.rs @@ -3,6 +3,7 @@ //@ ignore-windows //@ ignore-macos +//@ ignore-wasi //@ compile-flags: -g -C no-prepopulate-passes diff --git a/tests/codegen/mainsubprogramstart.rs b/tests/codegen/mainsubprogramstart.rs index db2c1466bf5..84d680b9bff 100644 --- a/tests/codegen/mainsubprogramstart.rs +++ b/tests/codegen/mainsubprogramstart.rs @@ -1,5 +1,6 @@ //@ ignore-windows //@ ignore-macos +//@ ignore-wasi wasi codegens the main symbol differently //@ compile-flags: -g -C no-prepopulate-passes diff --git a/tests/codegen/personality_lifetimes.rs b/tests/codegen/personality_lifetimes.rs index 06389688e0e..f2ab9c3bb82 100644 --- a/tests/codegen/personality_lifetimes.rs +++ b/tests/codegen/personality_lifetimes.rs @@ -1,5 +1,4 @@ //@ ignore-msvc -//@ ignore-wasm32-bare compiled with panic=abort by default //@ needs-unwind //@ compile-flags: -O -C no-prepopulate-passes diff --git a/tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs b/tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs index 0b3bfd567aa..d27cbd60437 100644 --- a/tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs +++ b/tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs @@ -1,5 +1,4 @@ //@ compile-flags: -C opt-level=0 -Cpanic=abort -//@ ignore-wasm32-bare compiled with panic=abort by default #![crate_type = "lib"] diff --git a/tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs b/tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs index 1e6f8c9ede9..a7f7f2fb77f 100644 --- a/tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs +++ b/tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs @@ -1,5 +1,4 @@ //@ compile-flags: -C opt-level=0 -//@ ignore-wasm32-bare compiled with panic=abort by default //@ needs-unwind #![crate_type = "lib"] diff --git a/tests/codegen/unwind-abis/nounwind.rs b/tests/codegen/unwind-abis/nounwind.rs index ac53cd7bed3..80bf8d67091 100644 --- a/tests/codegen/unwind-abis/nounwind.rs +++ b/tests/codegen/unwind-abis/nounwind.rs @@ -1,5 +1,5 @@ //@ compile-flags: -C opt-level=0 -Cpanic=abort -//@ ignore-wasm32-bare compiled with panic=abort by default +//@ needs-unwind #![crate_type = "lib"] #![feature(c_unwind)] diff --git a/tests/codegen/unwind-extern-exports.rs b/tests/codegen/unwind-extern-exports.rs index d670a776ac6..ea59748b3bc 100644 --- a/tests/codegen/unwind-extern-exports.rs +++ b/tests/codegen/unwind-extern-exports.rs @@ -1,5 +1,4 @@ //@ compile-flags: -C opt-level=0 -//@ ignore-wasm32-bare compiled with panic=abort by default //@ needs-unwind #![crate_type = "lib"] diff --git a/tests/codegen/unwind-extern-imports.rs b/tests/codegen/unwind-extern-imports.rs index 7386704b430..790e4def8b3 100644 --- a/tests/codegen/unwind-extern-imports.rs +++ b/tests/codegen/unwind-extern-imports.rs @@ -1,5 +1,4 @@ //@ compile-flags: -C no-prepopulate-passes -//@ ignore-wasm32-bare compiled with panic=abort by default //@ needs-unwind #![crate_type = "lib"] diff --git a/tests/codegen/wasm_exceptions.rs b/tests/codegen/wasm_exceptions.rs index 66d2bbed709..a53722f834c 100644 --- a/tests/codegen/wasm_exceptions.rs +++ b/tests/codegen/wasm_exceptions.rs @@ -1,4 +1,4 @@ -//@ only-wasm32-bare +//@ only-wasm32 //@ compile-flags: -C panic=unwind #![crate_type = "lib"] -- cgit 1.4.1-3-g733a5