Skip to content

Commit 6b2ccc7

Browse files
authored
Rollup merge of #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: #70740 (review)
2 parents 7d4e6c0 + 6b9b2d9 commit 6b2ccc7

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)