Skip to content

Commit 469c3e7

Browse files
committed
[test][fuzzer] Deflake fork_corpus_groups.test
1 parent 99e5f60 commit 469c3e7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compiler-rt/test/fuzzer/fork_corpus_groups.test

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ RUN: not %run %t-OutOfMemoryTest -fork=1 -fork_corpus_groups=1 -ignore_ooms=0 -
1414
# access-violation is the error thrown on Windows. Address will be smaller on i386.
1515
CRASH: {{SEGV|access-violation}} on unknown address 0x00000000
1616
RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t-ShallowOOMDeepCrash
17-
RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -fork_corpus_groups=1 -rss_limit_mb=128 2>&1 | FileCheck %s --check-prefix=CRASH
17+
# Run multiple times to deflake. Sometimes rss_limit_mb kill process before SEGV.
18+
RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -fork_corpus_groups=1 -rss_limit_mb=128 >%t-ShallowOOMDeepCrash.log 2>&1
19+
RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -fork_corpus_groups=1 -rss_limit_mb=128 >>%t-ShallowOOMDeepCrash.log 2>&1
20+
RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -fork_corpus_groups=1 -rss_limit_mb=128 >>%t-ShallowOOMDeepCrash.log 2>&1
21+
RUN: FileCheck %s --check-prefix=CRASH --input-file=%t-ShallowOOMDeepCrash.log
1822

1923
MAX_TOTAL_TIME: INFO: fuzzed for {{.*}} seconds, wrapping up soon
2024
MAX_TOTAL_TIME: INFO: exiting: {{.*}} time:
21-
RUN: not %run %t-ShallowOOMDeepCrash -fork=1 -fork_corpus_groups=1 -rss_limit_mb=128 -ignore_crashes=1 -max_total_time=10 2>&1 | FileCheck %s --check-prefix=MAX_TOTAL_TIME
25+
RUN: 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

0 commit comments

Comments
 (0)