Skip to content

Commit

Permalink
Rollup merge of rust-lang#74288 - haraldh:test_aslr, r=petrochenkov
Browse files Browse the repository at this point in the history
Fix src/test/run-make/static-pie/test-aslr.rs

Might be subject to the birthday paradox occasionally, causing spurious failures.

Addresses: rust-lang#70740 (review)
  • Loading branch information
Manishearth committed Jul 17, 2020
2 parents 0f655ee + 6b9b2d9 commit d94f164
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 d94f164

Please sign in to comment.