WebAssembly / wasi-testsuite

WASI Testsuite
Apache License 2.0
53 stars 21 forks source link

Port `interesting_paths.rs` from Wasmtime's testsuite. #67

Closed sunfishcode closed 1 year ago

sunfishcode commented 1 year ago

Following up on ac32f57400cdcdd0425d3085c24fc7fc40011d1c, this ports another test from Wasmtime's testsuite.

codefromthecrypt commented 1 year ago

Is this missing a config file? When we run our runner it fails like this:

 Test interesting_paths failed
  [exit_code] 0 == 1
STDOUT:

STDERR:
usage: interesting_paths.wasm <scratch directory>
codefromthecrypt commented 1 year ago

yeah I think maybe it meant to have tests/rust/testsuite/interesting_paths.json with this inside?

{
    "dirs": ["fs-tests.dir"],
    "args": ["fs-tests.dir"]
}
loganek commented 1 year ago

Thanks for spotting that; the fix is already merged: https://github.com/WebAssembly/wasi-testsuite/pull/70

codefromthecrypt commented 1 year ago

Thanks I just verified it works, though I have some work to do to get it to fail the intended way on windows