[compiler-rt] [libFuzzer] Change sig-trap test to allow expected output strings in any order (PR #157407)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 02:09:13 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Dan Blackwell (DanBlackwell)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/157407.diff
1 Files Affected:
- (modified) compiler-rt/test/fuzzer/sig-trap.test (+2-2)
``````````diff
diff --git a/compiler-rt/test/fuzzer/sig-trap.test b/compiler-rt/test/fuzzer/sig-trap.test
index 30d9d47f4d81f..60208c486a87a 100644
--- a/compiler-rt/test/fuzzer/sig-trap.test
+++ b/compiler-rt/test/fuzzer/sig-trap.test
@@ -5,7 +5,7 @@ UNSUPPORTED: target={{.*windows.*}}
RUN: %cpp_compiler %S/SigTrapTest.cpp -o %t
RUN: not %run %t 2>&1 | FileCheck %s
-CHECK: BINGO
-CHECK: ERROR: libFuzzer: deadly signal
+CHECK-DAG: BINGO
+CHECK-DAG: ERROR: libFuzzer: deadly signal
RUN: trap "%run %t -handle_trap=0" TRAP
``````````
</details>
https://github.com/llvm/llvm-project/pull/157407
More information about the llvm-commits
mailing list