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