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

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

Addresses: https://github.com/rust-lang/rust/pull/70740#pullrequestreview-430981320
This commit is contained in:
Harald Hoyer 2020-07-13 11:26:08 +02:00
parent 9d09331e00
commit 6b9b2d99ca

View File

@ -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);
}