Skip to content

Commit

Permalink
Only test wasi in debug for now
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Oct 31, 2024
1 parent 91428a5 commit 15e1836
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 0 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15e1836

Please sign in to comment.