]> git.lizzy.rs Git - rust.git/commitdiff
Fix src/test/run-make/static-pie/test-aslr.rs
authorHarald Hoyer <harald@redhat.com>
Mon, 13 Jul 2020 09:26:08 +0000 (11:26 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 13 Jul 2020 09:33:03 +0000 (11:33 +0200)
Might be subject to the birthday paradox occasionally, causing spurious failures.

Addresses: https://github.com/rust-lang/rust/pull/70740#pullrequestreview-430981320

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

index f28e00f7f4cf93825df45defa08944b1fee17251..96b17af46dfe9179a2474f957856966628d70ae0 100644 (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);
             }