cranelift: move wasmtests in cranelift-wasm

Move test data used by cranelift-wasm's tests in
the crate directory, to make the tests autonomous.

Fixes #2910
This commit is contained in:
Olivier Lemasle
2021-05-18 22:48:52 +02:00
parent 18c61cdfa4
commit 954f7d3876
54 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ use target_lexicon::triple;
#[test]
fn testsuite() {
let mut paths: Vec<_> = fs::read_dir("../wasmtests")
let mut paths: Vec<_> = fs::read_dir("./wasmtests")
.unwrap()
.map(|r| r.unwrap())
.filter(|p| {
@@ -36,7 +36,7 @@ fn testsuite() {
#[test]
fn use_fallthrough_return() {
let flags = Flags::new(settings::builder());
let path = Path::new("../wasmtests/use_fallthrough_return.wat");
let path = Path::new("./wasmtests/use_fallthrough_return.wat");
let data = read_module(&path);
handle_module(data, &flags, ReturnMode::FallthroughReturn);
}