[llvm-branch-commits] [compiler-rt] release/23.x: [sanitizer] Skip hanging tests on FreeBSD (#216703) (PR #219654)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Aug 29 01:34:47 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: llvmbot

<details>
<summary>Changes</summary>

Backport cb2f67d1556c1232f99b4512a35129ec04f73c75

Requested by: @<!-- -->rorth

---
Full diff: https://github.com/llvm/llvm-project/pull/219654.diff


3 Files Affected:

- (modified) compiler-rt/test/msan/fork.cpp (+1-1) 
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c (+3) 
- (modified) compiler-rt/test/tsan/fork_multithreaded.cpp (+2) 


``````````diff
diff --git a/compiler-rt/test/msan/fork.cpp b/compiler-rt/test/msan/fork.cpp
index 438766ab4d99c..e39c852b093e8 100644
--- a/compiler-rt/test/msan/fork.cpp
+++ b/compiler-rt/test/msan/fork.cpp
@@ -15,7 +15,7 @@
 // UNSUPPORTED: powerpc64le-target-arch
 
 // Sometimes hangs
-// UNSUPPORTED: target={{.*netbsd.*}}
+// UNSUPPORTED: target={{.*(freebsd|netbsd).*}}
 
 #include <pthread.h>
 #include <unistd.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c
index 5f26ba2f330bd..88ba38a2d3a2f 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c
@@ -14,6 +14,9 @@
 // UNSUPPORTED: target={{.*netbsd.*}}
 // UNSUPPORTED: target={{.*apple.*}}
 
+// FIXME: Loops indefinitely
+// UNSUPPORTED: target={{.*freebsd.*}} && tsan
+
 // Forking in multithread environment is unsupported. However we already have
 // some workarounds, and will add more, so this is the test.
 // The test try to check two things:
diff --git a/compiler-rt/test/tsan/fork_multithreaded.cpp b/compiler-rt/test/tsan/fork_multithreaded.cpp
index 1d3ff8d34579b..dd240e41c5fee 100644
--- a/compiler-rt/test/tsan/fork_multithreaded.cpp
+++ b/compiler-rt/test/tsan/fork_multithreaded.cpp
@@ -1,5 +1,7 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 66 2>&1 | FileCheck %s -check-prefix=CHECK-DIE
 // RUN: %clangxx_tsan -O1 %s -o %t && %env_tsan_opts=die_after_fork=0 %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-NODIE
+// FIXME: Loops indefinitely
+// UNSUPPORTED: target={{.*freebsd.*}}
 #include "test.h"
 #include <errno.h>
 #include <sys/types.h>

``````````

</details>


https://github.com/llvm/llvm-project/pull/219654


More information about the llvm-branch-commits mailing list