this *should* reproduce the report at https://github.com/bytecodealliance/wasmtime/issues/2642 but it does not, so the problem has something to do with invoking via wasmtime cli?
This is the test-programs crate, which builds and runs whole programs
compiled to wasm32-wasi.
To actually run these tests, the test-programs feature must be enabled, e.g.:
cargo test --features test-programs/test_programs --package test-programs