Update abi-checker version

This commit is contained in:
Afonso Bordado 2022-08-12 21:47:36 +01:00
parent 7610be478f
commit 0706df5f8c
2 changed files with 3 additions and 11 deletions

View File

@ -1,6 +1,6 @@
use super::build_sysroot;
use super::config;
use super::utils::spawn_and_wait_with_input;
use super::utils::spawn_and_wait;
use build_system::SysrootKind;
use std::env;
use std::path::Path;
@ -56,13 +56,5 @@ pub(crate) fn run(
cmd.arg("--add-rustc-codegen-backend");
cmd.arg(format!("cgclif:{}", cg_clif_dylib_path.display()));
let output = spawn_and_wait_with_input(cmd, "".to_string());
// TODO: The correct thing to do here is to check the exit code, but abi-checker
// currently doesn't return 0 on success, so check for the test fail count.
// See: https://github.com/Gankra/abi-checker/issues/10
let failed = !(output.contains("0 failed") && output.contains("0 completely failed"));
if failed {
panic!("abi-checker failed!");
}
spawn_and_wait(cmd);
}

View File

@ -18,7 +18,7 @@ pub(crate) fn prepare() {
"abi-checker",
"Gankra",
"abi-checker",
"7c1571da6e43f9a37347623e7d5c7d51be664a7b",
"a2232d45f202846f5c02203c9f27355360f9a2ff",
);
clone_repo_shallow_github(