diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index d4b728392f..e01c543718 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -13,6 +13,11 @@ edition = "2021" name = "clif-util" path = "src/clif-util.rs" +[[test]] +name = "filetests" +path = "tests/filetests.rs" +harness = false + [dependencies] cfg-if = "1.0" cranelift-codegen = { path = "codegen", version = "0.88.0" } diff --git a/cranelift/tests/filetests.rs b/cranelift/tests/filetests.rs index a633461109..72fbe7494c 100644 --- a/cranelift/tests/filetests.rs +++ b/cranelift/tests/filetests.rs @@ -1,6 +1,5 @@ -#[test] -fn filetests() { +fn main() -> anyhow::Result<()> { // Run all the filetests in the following directories. - cranelift_filetests::run(false, false, &["filetests".into(), "docs".into()]) - .expect("test harness"); + cranelift_filetests::run(false, false, &["filetests".into(), "docs".into()])?; + Ok(()) }