1 # UNSUPPORTED: darwin, freebsd, aarch64
3 RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest
4 RUN: not %run %t-SimpleTest -fork=1 2>&1 | FileCheck %s --check-prefix=BINGO
6 TIMEOUT: ERROR: libFuzzer: timeout
7 RUN: %cpp_compiler %S/TimeoutTest.cpp -o %t-TimeoutTest
8 RUN: not %run %t-TimeoutTest -fork=1 -timeout=1 -ignore_timeouts=0 2>&1 | FileCheck %s --check-prefix=TIMEOUT
10 OOM: ERROR: libFuzzer: out-of-memory
11 RUN: %cpp_compiler %S/OutOfMemoryTest.cpp -o %t-OutOfMemoryTest
12 RUN: not %run %t-OutOfMemoryTest -fork=1 -ignore_ooms=0 -rss_limit_mb=128 2>&1 | FileCheck %s --check-prefix=OOM
14 # access-violation is the error thrown on Windows. Address will be smaller on i386.
15 CRASH: {{SEGV|access-violation}} on unknown address 0x00000000
16 RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t-ShallowOOMDeepCrash
17 RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -rss_limit_mb=128 2>&1 | FileCheck %s --check-prefix=CRASH
19 MAX_TOTAL_TIME: INFO: fuzzed for {{.*}} seconds, wrapping up soon
20 MAX_TOTAL_TIME: INFO: exiting: {{.*}} time:
21 RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -rss_limit_mb=128 -ignore_crashes=1 -max_total_time=10 2>&1 | FileCheck %s --check-prefix=MAX_TOTAL_TIME