mirror of
https://github.com/fluencelabs/wasmer
synced 2025-07-02 18:11:34 +00:00
Merge branch 'master' into freebsd
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "wasmer-spectests"
|
||||
version = "0.14.1"
|
||||
version = "0.16.2"
|
||||
description = "Wasmer spectests library"
|
||||
license = "MIT"
|
||||
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
|
||||
@ -9,10 +9,10 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
glob = "0.3"
|
||||
wasmer-runtime = { path = "../runtime", version = "0.14.1", default-features = false}
|
||||
wasmer-clif-backend = { path = "../clif-backend", version = "0.14.1", optional = true}
|
||||
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.14.1", features = ["test"], optional = true }
|
||||
wasmer-singlepass-backend = { path = "../singlepass-backend", version = "0.14.1", optional = true }
|
||||
wasmer-runtime = { path = "../runtime", version = "0.16.2", default-features = false}
|
||||
wasmer-clif-backend = { path = "../clif-backend", version = "0.16.2", optional = true}
|
||||
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.16.2", features = ["test"], optional = true }
|
||||
wasmer-singlepass-backend = { path = "../singlepass-backend", version = "0.16.2", optional = true }
|
||||
|
||||
[build-dependencies]
|
||||
wabt = "0.9.1"
|
||||
|
@ -256,6 +256,16 @@ mod tests {
|
||||
Memory, Table,
|
||||
};
|
||||
|
||||
fn format_panic(e: &dyn std::any::Any) -> String {
|
||||
if let Some(s) = e.downcast_ref::<&str>() {
|
||||
format!("{}", s)
|
||||
} else if let Some(s) = e.downcast_ref::<String>() {
|
||||
format!("{}", s)
|
||||
} else {
|
||||
"(unknown)".into()
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_and_run(
|
||||
path: &PathBuf,
|
||||
file_excludes: &HashSet<String>,
|
||||
@ -342,7 +352,7 @@ mod tests {
|
||||
file: filename.to_string(),
|
||||
line: line,
|
||||
kind: format!("{}", "Module"),
|
||||
message: format!("caught panic {:?}", e),
|
||||
message: format!("caught panic {}", format_panic(&e)),
|
||||
},
|
||||
&test_key,
|
||||
excludes,
|
||||
@ -798,7 +808,7 @@ mod tests {
|
||||
file: filename.to_string(),
|
||||
line: line,
|
||||
kind: format!("{}", "AssertInvalid"),
|
||||
message: format!("caught panic {:?}", p),
|
||||
message: format!("caught panic {}", format_panic(&p)),
|
||||
},
|
||||
&test_key,
|
||||
excludes,
|
||||
@ -851,7 +861,7 @@ mod tests {
|
||||
file: filename.to_string(),
|
||||
line: line,
|
||||
kind: format!("{}", "AssertMalformed"),
|
||||
message: format!("caught panic {:?}", p),
|
||||
message: format!("caught panic {}", format_panic(&p)),
|
||||
},
|
||||
&test_key,
|
||||
excludes,
|
||||
@ -975,7 +985,7 @@ mod tests {
|
||||
file: filename.to_string(),
|
||||
line: line,
|
||||
kind: format!("{}", "AssertUnlinkable"),
|
||||
message: format!("caught panic {:?}", e),
|
||||
message: format!("caught panic {}", format_panic(&e)),
|
||||
},
|
||||
&test_key,
|
||||
excludes,
|
||||
|
Reference in New Issue
Block a user