Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit 268b937

Browse files
committed
lucet-wasi-sdk: test fixes
1 parent 12b20bb commit 268b937

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lucet-wasi-sdk/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ thiserror = "1.0.4"
1818
[dev-dependencies]
1919
anyhow = "1"
2020
lucet-validate = { path = "../lucet-validate", version = "=0.6.2-dev" }
21+
lucet-wasi = { path = "../lucet-wasi", version = "=0.6.2-dev" }
2122
target-lexicon = "0.10"

lucet-wasi-sdk/tests/lucetc.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,8 @@ mod lucetc_tests {
150150
wasm_contents
151151
};
152152

153-
let b =
154-
Bindings::from_file("../lucet-wasi/bindings.json").expect("load lucet-wasi bindings");
155-
let v = Validator::load(&["../wasi/phases/old/snapshot_0/witx/wasi_unstable.witx"])
156-
.expect("wasi spec validation")
157-
.with_wasi_exe(true);
153+
let b = lucet_wasi::bindings();
154+
let v = Validator::new(lucet_wasi::document(), true);
158155
// Compiler will only unwrap if the Validator defined above accepts the module
159156
let builder = Compiler::builder().with_validator(Some(v));
160157
let c = builder.create(&m, &b).expect("compile empty");

0 commit comments

Comments
 (0)