diff options
| author | Peter Smith <peter.smith@linaro.org> | 2019-05-07 09:31:14 +0000 |
|---|---|---|
| committer | Peter Smith <peter.smith@linaro.org> | 2019-05-07 09:31:14 +0000 |
| commit | 3f585ae3ce5fc4c62d7cdca8a52cc8719e08a04f (patch) | |
| tree | f150b18be96298ea2ca3e4fda833c62a42db6767 /compiler-rt/test | |
| parent | 0d0517733713d4ea27629010d2affad70b93dae9 (diff) | |
| download | bcm5719-llvm-3f585ae3ce5fc4c62d7cdca8a52cc8719e08a04f.tar.gz bcm5719-llvm-3f585ae3ce5fc4c62d7cdca8a52cc8719e08a04f.zip | |
[libFuzzer] Increase timeouts on fork tests and skip one on aarch64
The tests fork.text, fork.sigusr.test and fork-ubsan.test intermittently
fail on the aarch64 buildbots. Input gathered from the fork.sigusr.test
implies that when the builder is under load the timeout value is not
sufficient. The fork-ubsan.test doesn't have a timeout and I think is not
always finding the error after 10000 runs so I've marked it as unsupported
for now.
Differential Revision: https://reviews.llvm.org/D61449
llvm-svn: 360126
Diffstat (limited to 'compiler-rt/test')
| -rw-r--r-- | compiler-rt/test/fuzzer/fork-sigusr.test | 4 | ||||
| -rw-r--r-- | compiler-rt/test/fuzzer/fork-ubsan.test | 2 | ||||
| -rw-r--r-- | compiler-rt/test/fuzzer/fork.test | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/compiler-rt/test/fuzzer/fork-sigusr.test b/compiler-rt/test/fuzzer/fork-sigusr.test index bceca712724..5666ae7f4f3 100644 --- a/compiler-rt/test/fuzzer/fork-sigusr.test +++ b/compiler-rt/test/fuzzer/fork-sigusr.test @@ -8,7 +8,7 @@ RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t/ForkSIGUSR RUN: %run %t/ForkSIGUSR -fork=3 -rss_limit_mb=128 -ignore_crashes=1 2> %t/log & export PID=$! RUN: sleep 3 RUN: pkill -SIGUSR2 -f %t/ForkSIGUSR -RUN: sleep 3 -RUN: cat %t/log | FileCheck %s --dump-input-on-failure +RUN: sleep 6 +RUN: cat %t/log | FileCheck %s CHECK: libFuzzer: {{.*}}exiting diff --git a/compiler-rt/test/fuzzer/fork-ubsan.test b/compiler-rt/test/fuzzer/fork-ubsan.test index 7d7ee163699..16be90de292 100644 --- a/compiler-rt/test/fuzzer/fork-ubsan.test +++ b/compiler-rt/test/fuzzer/fork-ubsan.test @@ -1,4 +1,4 @@ -# UNSUPPORTED: darwin, freebsd +# UNSUPPORTED: darwin, freebsd, aarch64 # Tests how the fork mode works together with ubsan. RUN: %cpp_compiler %S/IntegerOverflowTest.cpp -o %t-IntegerOverflowTest -fsanitize=signed-integer-overflow -fno-sanitize-recover=signed-integer-overflow RUN: not %run %t-IntegerOverflowTest -fork=1 -ignore_crashes=1 -runs=10000 2>&1 | FileCheck %s --check-prefix=UBSAN_FORK diff --git a/compiler-rt/test/fuzzer/fork.test b/compiler-rt/test/fuzzer/fork.test index f748ad16775..bcc9b550e70 100644 --- a/compiler-rt/test/fuzzer/fork.test +++ b/compiler-rt/test/fuzzer/fork.test @@ -1,21 +1,21 @@ # UNSUPPORTED: darwin, freebsd BINGO: BINGO RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest -RUN: not %run %t-SimpleTest -fork=1 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=BINGO +RUN: not %run %t-SimpleTest -fork=1 2>&1 | FileCheck %s --check-prefix=BINGO TIMEOUT: ERROR: libFuzzer: timeout RUN: %cpp_compiler %S/TimeoutTest.cpp -o %t-TimeoutTest -RUN: not %run %t-TimeoutTest -fork=1 -timeout=1 -ignore_timeouts=0 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=TIMEOUT +RUN: not %run %t-TimeoutTest -fork=1 -timeout=1 -ignore_timeouts=0 2>&1 | FileCheck %s --check-prefix=TIMEOUT OOM: ERROR: libFuzzer: out-of-memory RUN: %cpp_compiler %S/OutOfMemoryTest.cpp -o %t-OutOfMemoryTest -RUN: not %run %t-OutOfMemoryTest -fork=1 -ignore_ooms=0 -rss_limit_mb=128 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=OOM +RUN: not %run %t-OutOfMemoryTest -fork=1 -ignore_ooms=0 -rss_limit_mb=128 2>&1 | FileCheck %s --check-prefix=OOM # access-violation is the error thrown on Windows. Address will be smaller on i386. CRASH: {{SEGV|access-violation}} on unknown address 0x00000000 RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t-ShallowOOMDeepCrash -RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -rss_limit_mb=128 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=CRASH +RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -rss_limit_mb=128 2>&1 | FileCheck %s --check-prefix=CRASH MAX_TOTAL_TIME: INFO: fuzzed for {{.*}} seconds, wrapping up soon MAX_TOTAL_TIME: INFO: exiting: {{.*}} time: -RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -rss_limit_mb=128 -ignore_crashes=1 -max_total_time=5 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=MAX_TOTAL_TIME +RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -rss_limit_mb=128 -ignore_crashes=1 -max_total_time=10 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=MAX_TOTAL_TIME |

