diff options
| author | Harald Hoyer <harald@redhat.com> | 2020-07-13 11:26:08 +0200 |
|---|---|---|
| committer | Harald Hoyer <harald@redhat.com> | 2020-07-13 11:33:03 +0200 |
| commit | 6b9b2d99ca544369393001cd15ff300f48018327 (patch) | |
| tree | 2312be0de2ed298fc63fa08c2fbe6d77720f80fa /src/test/run-make/static-pie | |
| parent | 9d09331e00b02f81c714b0c41ce3a38380dd36a2 (diff) | |
| download | rust-6b9b2d99ca544369393001cd15ff300f48018327.tar.gz rust-6b9b2d99ca544369393001cd15ff300f48018327.zip | |
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
Diffstat (limited to 'src/test/run-make/static-pie')
| -rw-r--r-- | src/test/run-make/static-pie/test-aslr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-make/static-pie/test-aslr.rs b/src/test/run-make/static-pie/test-aslr.rs index f28e00f7f4c..96b17af46df 100644 --- a/src/test/run-make/static-pie/test-aslr.rs +++ b/src/test/run-make/static-pie/test-aslr.rs @@ -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); } |
