Skip to content

Commit 3aede80

Browse files
committed
[libFuzzer] Change sig-trap test to allow expected output strings in any order (llvm#157407)
I have seen some flakiness in this test where the 2 checked strings appear in a different order. Due to buffering of writes, and that one of these strings is written during the signal handler, I think this is valid. This PR relaxes the test to allow those strings to appear in either order. (cherry picked from commit d685508)
1 parent 3487553 commit 3aede80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/fuzzer/sig-trap.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ UNSUPPORTED: target={{.*windows.*}}
55
RUN: %cpp_compiler %S/SigTrapTest.cpp -o %t
66

77
RUN: not %run %t 2>&1 | FileCheck %s
8-
CHECK: BINGO
9-
CHECK: ERROR: libFuzzer: deadly signal
8+
CHECK-DAG: BINGO
9+
CHECK-DAG: ERROR: libFuzzer: deadly signal
1010

1111
RUN: trap "%run %t -handle_trap=0" TRAP

0 commit comments

Comments
 (0)