Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 20, 2024
1 parent 8dad5d0 commit d89ee24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ http://github.com/langston-barrett/tree-splicer code mutator which icemaker can

Trophy case (1030+):

https://github.com/rust-lang/rust/issues/122782
https://github.com/rust-lang/rust/issues/122738
https://github.com/rust-lang/rust/issues/122736
https://github.com/rust-lang/rust/issues/122705
Expand Down
13 changes: 13 additions & 0 deletions src/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5174,6 +5174,14 @@ mod tests {

const DUMMY_FILE_CONTENT: &str = "pub fn main() {}\n";

fn sleep_half_a_second() {
use std::{thread, time};

let sleep_time = time::Duration::from_millis(500); // half a second

thread::sleep(sleep_time);
}

#[test]
#[allow(non_snake_case)]
fn RUSTC_ALLOW_BY_DEFAULT_LINTS_are_valid() {
Expand Down Expand Up @@ -5227,6 +5235,7 @@ mod tests {
}

assert!(output.status.success());
sleep_half_a_second()
}
}

Expand Down Expand Up @@ -5271,6 +5280,7 @@ mod tests {
panic!("bad exit status!")
}
assert!(output.as_ref().unwrap().status.success());
sleep_half_a_second()
}
}

Expand Down Expand Up @@ -5315,6 +5325,7 @@ mod tests {
panic!("bad exit status!")
}
assert!(output.as_ref().unwrap().status.success());
sleep_half_a_second()
}
}
#[test]
Expand Down Expand Up @@ -5358,6 +5369,7 @@ mod tests {
panic!("bad exit status!")
}
assert!(output.as_ref().unwrap().status.success());
sleep_half_a_second()
}
}

Expand Down Expand Up @@ -5429,6 +5441,7 @@ mod tests {
output.status.success(),
"miri flags bad: '{batch_of_flags:?}'\n\noutput. {output:?}"
);
sleep_half_a_second()
}
}
}

0 comments on commit d89ee24

Please sign in to comment.