From 15e1836dc892cad4778ec228b610d2b309e996ee Mon Sep 17 00:00:00 2001 From: Alisa Sireneva Date: Fri, 1 Nov 2024 00:15:38 +0300 Subject: [PATCH] Only test wasi in debug for now --- .github/workflows/ci.yml | 13 +++++++------ src/api.rs | 2 -- src/backend/mod.rs | 2 -- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72706e5..1ed3a57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,12 +127,13 @@ jobs: run: LITHIUM_BACKEND=itanium ./cargo-wasi test --target wasm32-wasip1 - name: Test without std (debug) run: ./cargo-wasi test --target wasm32-wasip1 --no-default-features - - name: Test with panic backend (release) - run: LITHIUM_BACKEND=panic ./cargo-wasi test --target wasm32-wasip1 --release - - name: Test with Itanium backend (release) - run: LITHIUM_BACKEND=itanium ./cargo-wasi test --target wasm32-wasip1 --release - - name: Test without std (release) - run: ./cargo-wasi test --target wasm32-wasip1 --release --no-default-features + # XXX: Upstream bug at https://github.com/rust-lang/rust/issues/132416 + # - name: Test with panic backend (release) + # run: LITHIUM_BACKEND=panic ./cargo-wasi test --target wasm32-wasip1 --release + # - name: Test with Itanium backend (release) + # run: LITHIUM_BACKEND=itanium ./cargo-wasi test --target wasm32-wasip1 --release + # - name: Test without std (release) + # run: ./cargo-wasi test --target wasm32-wasip1 --release --no-default-features darwin: runs-on: ${{ matrix.os }} diff --git a/src/api.rs b/src/api.rs index f1fdc93..6a48d12 100644 --- a/src/api.rs +++ b/src/api.rs @@ -233,8 +233,6 @@ mod test { assert_eq!(result.unwrap_err(), "Hello, world! You look nice btw."); } - // XXX: Upstream bug at https://github.com/rust-lang/rust/issues/132416 - #[cfg(all(feature = "std", not(target_os = "wasi")))] #[test] fn panic_while_in_flight() { struct Dropper; diff --git a/src/backend/mod.rs b/src/backend/mod.rs index f2abef1..2a2c583 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -270,8 +270,6 @@ mod test { assert!(destructor_was_run); } - // XXX: Upstream bug at https://github.com/rust-lang/rust/issues/132416 - #[cfg(not(target_os = "wasi"))] #[test] fn nested_with_drop() { struct Dropper;