Skip to content

Commit

Permalink
Fix src/test/run-make/static-pie/test-aslr.rs
Browse files Browse the repository at this point in the history
Might be subject to the birthday paradox occasionally, causing spurious failures.

Addresses: #70740 (review)
  • Loading branch information
haraldh committed Jul 13, 2020
1 parent 9d09331 commit 6b9b2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-make/static-pie/test-aslr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() {
}
Some(s) if s.eq("--test-aslr") => {
let cnt = run_self(&arg0);
if cnt != NUM_RUNS {
if cnt == 1 {
eprintln!("FAIL: {} most likely no ASLR", arg0);
std::process::exit(1);
}
Expand Down

0 comments on commit 6b9b2d9

Please sign in to comment.