2019-02-27 19:27:16 +00:00
|
|
|
# UNSUPPORTED: darwin, freebsd
|
2019-02-12 02:18:53 +00:00
|
|
|
BINGO: BINGO
|
2019-02-12 00:29:51 +00:00
|
|
|
RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest
|
2019-05-01 12:30:04 +00:00
|
|
|
RUN: not %run %t-SimpleTest -fork=1 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=BINGO
|
2019-02-12 00:29:51 +00:00
|
|
|
|
2019-02-12 02:18:53 +00:00
|
|
|
TIMEOUT: ERROR: libFuzzer: timeout
|
|
|
|
RUN: %cpp_compiler %S/TimeoutTest.cpp -o %t-TimeoutTest
|
2019-05-01 12:30:04 +00:00
|
|
|
RUN: not %run %t-TimeoutTest -fork=1 -timeout=1 -ignore_timeouts=0 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=TIMEOUT
|
2019-02-12 02:18:53 +00:00
|
|
|
|
|
|
|
OOM: ERROR: libFuzzer: out-of-memory
|
|
|
|
RUN: %cpp_compiler %S/OutOfMemoryTest.cpp -o %t-OutOfMemoryTest
|
2019-05-01 12:30:04 +00:00
|
|
|
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
|
2019-02-12 02:18:53 +00:00
|
|
|
|
2019-04-30 17:58:57 +00:00
|
|
|
# access-violation is the error thrown on Windows. Address will be smaller on i386.
|
2019-04-30 17:58:58 +00:00
|
|
|
CRASH: {{SEGV|access-violation}} on unknown address 0x00000000
|
2019-02-12 02:18:53 +00:00
|
|
|
RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t-ShallowOOMDeepCrash
|
2019-05-01 12:30:04 +00:00
|
|
|
RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -rss_limit_mb=128 2>&1 | FileCheck %s --dump-input-on-failure --check-prefix=CRASH
|
2019-02-15 21:51:15 +00:00
|
|
|
|
|
|
|
MAX_TOTAL_TIME: INFO: fuzzed for {{.*}} seconds, wrapping up soon
|
|
|
|
MAX_TOTAL_TIME: INFO: exiting: {{.*}} time:
|
2019-05-01 12:30:04 +00:00
|
|
|
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
|