BurntSushi / BurntSushi/quickcheck
Tests fail for target wasm32-wasi
- Dominant language
- Rust
- Stars
- 2.8k
- Forks
- 165
- PR merge metrics
- No merged PRs in 30d
Description
Running `cargo build --target wasm32-wasi` succeeds, but `cargo wasi test` fails:
- The `pathbuf` fails since it relies on `env::temp_dir()`, which currently panics when running in wasi (see: https://github.com/WebAssembly/WASI/issues/306 )
- The `prop_oob` and `testable_unit_panic` tests fails: under wasi, this test panics. When decorating with `#[should_panic]`, they fails under normal (non-wasi) tests
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running `cargo wasi test` and compare the failures in `pathbuf`, `prop_oob`, and `testable_unit_panic` with normal Rust tests. Trace the affected test code and the `env::temp_dir()` behavior under wasm32-wasi; done means the suite passes for both wasm32-wasi and the normal target without breaking panic expectations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100