1
Fork 0

trivial cfg(bootstrap) changes

This commit is contained in:
Pietro Albini 2022-04-05 22:42:23 +02:00
parent e96538aeeb
commit 181d28bb61
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C
42 changed files with 176 additions and 314 deletions

View file

@ -103,12 +103,7 @@ impl ConsoleTestState {
exec_time: Option<&TestExecTime>,
) -> io::Result<()> {
self.write_log(|| {
let TestDesc {
name,
#[cfg(not(bootstrap))]
ignore_message,
..
} = test;
let TestDesc { name, ignore_message, .. } = test;
format!(
"{} {}",
match *result {
@ -116,14 +111,11 @@ impl ConsoleTestState {
TestResult::TrFailed => "failed".to_owned(),
TestResult::TrFailedMsg(ref msg) => format!("failed: {msg}"),
TestResult::TrIgnored => {
#[cfg(not(bootstrap))]
if let Some(msg) = ignore_message {
format!("ignored: {msg}")
} else {
"ignored".to_owned()
}
#[cfg(bootstrap)]
"ignored".to_owned()
}
TestResult::TrBench(ref bs) => fmt_bench_samples(bs),
TestResult::TrTimedFail => "failed (time limit exceeded)".to_owned(),