[llvm-branch-commits] [compiler-rt] release/23.x: [sanitizer] Skip hanging tests on NetBSD (#216712) (PR #216768)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 17 09:41:49 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: llvmbot
<details>
<summary>Changes</summary>
Backport 782f1130177b2c792dc37f0923d21d187a4c150b
Requested by: @<!-- -->rorth
---
Full diff: https://github.com/llvm/llvm-project/pull/216768.diff
4 Files Affected:
- (modified) compiler-rt/lib/msan/tests/msan_test.cpp (+4)
- (modified) compiler-rt/test/fuzzer/reload.test (+1)
- (modified) compiler-rt/test/msan/zero_alloc.cpp (+2)
- (modified) compiler-rt/test/tsan/signal_cond.cpp (+2)
``````````diff
diff --git a/compiler-rt/lib/msan/tests/msan_test.cpp b/compiler-rt/lib/msan/tests/msan_test.cpp
index b0d8409d97ffc..e5f64716ededc 100644
--- a/compiler-rt/lib/msan/tests/msan_test.cpp
+++ b/compiler-rt/lib/msan/tests/msan_test.cpp
@@ -3279,6 +3279,7 @@ TEST(MemorySanitizer, scanf) {
delete d;
}
+#if !defined(__NetBSD__)
static void *SimpleThread_threadfn(void* data) {
return new int;
}
@@ -3344,6 +3345,7 @@ TEST(MemorySanitizer, SmallPreAllocatedStackThread) {
res = pthread_attr_destroy(&attr);
ASSERT_EQ(0, res);
}
+#endif
TEST(MemorySanitizer, pthread_attr_get) {
pthread_attr_t attr;
@@ -3430,6 +3432,7 @@ TEST(MemorySanitizer, pthread_key_create) {
ASSERT_EQ(0, res);
}
+#if !defined(__NetBSD__)
namespace {
struct SignalCondArg {
pthread_cond_t* cond;
@@ -3475,6 +3478,7 @@ TEST(MemorySanitizer, pthread_cond_wait) {
pthread_mutex_destroy(&mu);
pthread_cond_destroy(&cond);
}
+#endif
TEST(MemorySanitizer, tmpnam) {
char s[L_tmpnam];
diff --git a/compiler-rt/test/fuzzer/reload.test b/compiler-rt/test/fuzzer/reload.test
index 62321cec3b04f..0fecdffca63ef 100644
--- a/compiler-rt/test/fuzzer/reload.test
+++ b/compiler-rt/test/fuzzer/reload.test
@@ -1,5 +1,6 @@
RUN: %cpp_compiler %S/ReloadTest.cpp -o %t-ReloadTest
RUN: not %run %t-ReloadTest -max_len=10000 -seed=1 -timeout=15 -len_control=0 -exact_artifact_path=%t.crash 2>&1 | FileCheck %s
+UNSUPPORTED: target={{.*netbsd.*}}
CHECK: Test unit written to {{.*}}reload.test.tmp.crash
diff --git a/compiler-rt/test/msan/zero_alloc.cpp b/compiler-rt/test/msan/zero_alloc.cpp
index f4cf1d89c5b76..abc78e1c8d262 100644
--- a/compiler-rt/test/msan/zero_alloc.cpp
+++ b/compiler-rt/test/msan/zero_alloc.cpp
@@ -4,6 +4,8 @@
// RUN: | FileCheck %s --check-prefixes=CHECK,DISCOUNT
// RUN: %clang_msan -Wno-alloc-size -fsanitize-recover=memory -fsanitize-memory-track-origins=2 %s -o %t && not %run %t 2>&1 \
// RUN: | FileCheck %s --check-prefixes=CHECK,ORIGINS
+// Hangs.
+// UNSUPPORTED: target={{.*netbsd.*}}
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/tsan/signal_cond.cpp b/compiler-rt/test/tsan/signal_cond.cpp
index 6c20dd8f2e394..f6811fa73d59d 100644
--- a/compiler-rt/test/tsan/signal_cond.cpp
+++ b/compiler-rt/test/tsan/signal_cond.cpp
@@ -1,4 +1,6 @@
// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// Hangs
+// UNSUPPORTED: target={{.*netbsd.*}}
#include "test.h"
#include <signal.h>
#include <unistd.h>
``````````
</details>
https://github.com/llvm/llvm-project/pull/216768
More information about the llvm-branch-commits
mailing list