Skip to content

Commit

Permalink
Add proper nightly check
Browse files Browse the repository at this point in the history
  • Loading branch information
louismerlin committed Nov 4, 2024
1 parent 3cd012c commit 90c0fa4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/asan_fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ fn kill_subprocesses_recursively(pid: &str) {
}

#[test]
#[cfg_attr(not(nightly), ignore)]
fn asan_crashes() {
// Not optimal but seems to work fine
if !env!("CARGO").contains("nightly") {
println!("Not running nightly, skipping");
return;
}
let unix_time = format!(
"{}",
SystemTime::now()
Expand Down Expand Up @@ -68,7 +72,7 @@ fn asan_crashes() {
.current_dir(&fuzzer_directory)
.spawn()
.expect("failed to run `cargo ziggy fuzz`");
thread::sleep(Duration::from_secs(10));
thread::sleep(Duration::from_secs(20));
kill_subprocesses_recursively(&format!("{}", fuzzer.id()));

assert!(temp_dir_path
Expand Down

0 comments on commit 90c0fa4

Please sign in to comment.