Skip to content

Commit d94f164

Browse files
authored
Rollup merge of rust-lang#74288 - haraldh:test_aslr, r=petrochenkov
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)
2 parents 0f655ee + 6b9b2d9 commit d94f164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-make/static-pie/test-aslr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn main() {
2929
}
3030
Some(s) if s.eq("--test-aslr") => {
3131
let cnt = run_self(&arg0);
32-
if cnt != NUM_RUNS {
32+
if cnt == 1 {
3333
eprintln!("FAIL: {} most likely no ASLR", arg0);
3434
std::process::exit(1);
3535
}

0 commit comments

Comments
 (0)