[compiler-rt] [sanitizer-common][rtsan] Mark unsupported tests (PR #213404)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 21:04:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Chris Apple (cjappl)
<details>
<summary>Changes</summary>
>From #<!-- -->213170, turning that PR into separate commits as suggested.
To enable rtsan in sanitizer common, first disable the tests that are not trivially fixable (or will remain permanently unsupported).
Quoting from that other review, assuming all of these are merged and rtsan is enabled for sanitizer-common
---
Darwin:
New tests that run and pass: 249
UNSUPPORTED: 26
Total: 275
UNSUPPORTED percentage: 9.5%
Linux is about the same, few additional unsupported:
New tests that run and pass: 249
UNSUPPORTED: 40
Total: 289
UNSUPPORTED percentage 13.8%
Again, some of these UNSUPPORTED are temporary, and we'll go back through and clean them up (or at least discuss suport) so I expect this percentage to go down over time
---
Patch is 23.33 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/213404.diff
42 Files Affected:
- (modified) compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/allow_user_segv.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_sigaction.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_signal.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/deepbind.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/dump_registers_aarch64.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/malloc_usable_size.c (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/mlock_test.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/mprobe.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/replace_dlopen_main_program_test.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/soft_rss_limit_mb_test.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/tls_malloc_hook.c (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_read_test.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_write_test.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/mmap_write_exec.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_report_fd_test.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/Posix/weak_hook_test.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/compress_stack_depot.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/corelimit.cpp (+1-1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/malloc_hook.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/malloc_hook_get_allocated_size_fast.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/max_allocation_size.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline_bool_flag.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_no_prune.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_stack_depth.cpp (+2)
- (modified) compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard-dso.cpp (+1)
- (modified) compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp (+1)
``````````diff
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp b/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp
index 5aa087fb4ca12..27effa1e01262 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp
@@ -20,6 +20,8 @@
// Currently fails on darwin/lsan
// XFAIL: darwin && lsan
+// UNSUPPORTED: rtsan
+
#include <malloc/malloc.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/allow_user_segv.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/allow_user_segv.cpp
index b9ce950d6f96c..a393e17ccb9b4 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/allow_user_segv.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/allow_user_segv.cpp
@@ -21,6 +21,8 @@
// Flaky errors in debuggerd with "waitpid returned unexpected pid (0)" in logcat.
// UNSUPPORTED: android && i386-target-arch
+// UNSUPPORTED: rtsan
+
// Note: this test case is unusual because it retrieves the original
// (ASan-installed) signal handler; thus, it is incompatible with the
// cloak_sanitizer_signal_handlers runtime option.
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cpp
index 2a73c508844bb..1c252352e1645 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cpp
@@ -5,6 +5,8 @@
// RUN: %env_tool_opts=handle_abort=0 not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s
// RUN: %env_tool_opts=handle_abort=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <stdio.h>
#include <sanitizer/asan_interface.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_sigaction.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_sigaction.cpp
index 422e4abe880c5..f697fcbc96b49 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_sigaction.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_sigaction.cpp
@@ -17,6 +17,8 @@
// RUN: %env_tool_opts=handle_segv=2:cloak_sanitizer_signal_handlers=false not %run %t 2>&1 | FileCheck %s --check-prefixes=NONDEFAULT,SANITIZER
// RUN: %env_tool_opts=handle_segv=2:cloak_sanitizer_signal_handlers=true not %run %t 2>&1 | FileCheck %s --check-prefixes=DEFAULT,SANITIZER
+// UNSUPPORTED: rtsan
+
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_signal.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_signal.cpp
index 48e54756c2d0c..4a916318cb135 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_signal.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_signal.cpp
@@ -1,5 +1,6 @@
// UNSUPPORTED: android
// UNSUPPORTED: hwasan
+// UNSUPPORTED: rtsan
// RUN: %clangxx -O0 %s -o %t
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/deepbind.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/deepbind.cpp
index 4482713dd424d..5f7bfdb8e8558 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/deepbind.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/deepbind.cpp
@@ -3,6 +3,7 @@
// FIXME: Implement.
// XFAIL: hwasan
+// UNSUPPORTED: rtsan
#include <dlfcn.h>
#include <stdio.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/dump_registers_aarch64.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/dump_registers_aarch64.cpp
index d1015a4e36956..3d6695271f484 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/dump_registers_aarch64.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/dump_registers_aarch64.cpp
@@ -5,6 +5,8 @@
//
// REQUIRES: aarch64-target-arch && glibc
+// UNSUPPORTED: rtsan
+
#include <signal.h>
int main() {
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/malloc_usable_size.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/malloc_usable_size.c
index 0fdec468e08ae..58606e450aa61 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/malloc_usable_size.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/malloc_usable_size.c
@@ -3,6 +3,8 @@
// Must not be implemented, no other reason to install interceptors.
// XFAIL: ubsan
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <malloc.h>
#include <sanitizer/allocator_interface.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/mlock_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/mlock_test.cpp
index 09b05d1a44434..24660cb763b7c 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/mlock_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/mlock_test.cpp
@@ -7,6 +7,8 @@
// FIXME: Implement.
// XFAIL: hwasan
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <sys/mman.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/mprobe.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/mprobe.cpp
index 7633eb4762292..c5e97855ddd11 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/mprobe.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/mprobe.cpp
@@ -1,5 +1,6 @@
// RUN: %clangxx %s -o %t && %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: android, hwasan, ubsan
+// UNSUPPORTED: rtsan
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp
index c7a5534696361..ef8c84741477d 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp
@@ -14,6 +14,8 @@
// Page size is hardcoded below, but test still fails even if not hardcoded.
// REQUIRES: page-size-4096
+// UNSUPPORTED: rtsan
+
#include <algorithm>
#include <assert.h>
#include <fcntl.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/replace_dlopen_main_program_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/replace_dlopen_main_program_test.cpp
index 72fff2719def2..b007fb1cf0db4 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/replace_dlopen_main_program_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/replace_dlopen_main_program_test.cpp
@@ -13,6 +13,8 @@
// Flag has no effect with dynamic runtime
// UNSUPPORTED: asan-dynamic-runtime
+// UNSUPPORTED: rtsan
+
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
index c3f73dbb960f9..13478a91c7773 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
@@ -6,6 +6,8 @@
// RUN: %env_tool_opts=handle_segv=1:print_stacktrace=1 not %run %t 1 2>&1 | FileCheck --check-prefixes=CHECK1,CHECK %s
// RUN: %env_tool_opts=handle_segv=1:print_stacktrace=1 not %run %t 2 2>&1 | FileCheck --check-prefixes=CHECK2,CHECK %s
+// UNSUPPORTED: rtsan
+
#include <cstdio>
#include <cstdlib>
#include <string>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c
index 58a2d457f359e..9f6b15429e469 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c
@@ -9,6 +9,8 @@
// FIXME: Hwasan misclassify TRAP as tag missmatch.
// XFAIL: hwasan && !hwasan-aliasing
+// UNSUPPORTED: rtsan
+
#include <signal.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/soft_rss_limit_mb_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/soft_rss_limit_mb_test.cpp
index 05c78940613cb..2ef9144dc1db1 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/soft_rss_limit_mb_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/soft_rss_limit_mb_test.cpp
@@ -22,6 +22,8 @@
// Symbolizer needs to allocated memory when reporting.
// UNSUPPORTED: internal_symbolizer
+// UNSUPPORTED: rtsan
+
// FIXME: The test fails flakily, see e.g. PRs #170911, #171469, #188441.
// Flaky on llvm-clang-x86_64-gcc-ubuntu, llvm-clang-x86_64-gcc-ubuntu-no-asserts and https://crbug.com/481656455.
// UNSUPPORTED: true
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_malloc_hook.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_malloc_hook.c
index 587f3b1401f10..39821e0aa70b8 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_malloc_hook.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_malloc_hook.c
@@ -9,6 +9,8 @@
// No allocator and hooks.
// XFAIL: ubsan
+// UNSUPPORTED: rtsan
+
#ifndef BUILD_SO
# include <assert.h>
# include <dlfcn.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cpp
index fdce916ad1e1a..a1e6a5a27e91a 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cpp
@@ -3,6 +3,7 @@
// UNSUPPORTED: lsan
// UNSUPPORTED: msan
// UNSUPPORTED: ubsan
+// UNSUPPORTED: rtsan
#include <stdio.h>
int main() {
int a;
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cpp
index 37bfee4806173..e6ebd7e605fbc 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cpp
@@ -16,6 +16,8 @@
// XFAIL: target={{.*netbsd.*}} && !asan
+// UNSUPPORTED: rtsan
+
volatile int *null = 0;
namespace Xyz {
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_read_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_read_test.cpp
index 45d3f256378fc..ab6e90f247feb 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_read_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_read_test.cpp
@@ -5,6 +5,7 @@
// REQUIRES: stable-runtime
// XFAIL: target={{(powerpc64|s390x).*}}
+// UNSUPPORTED: rtsan
volatile int *null = 0;
volatile int a;
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_write_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_write_test.cpp
index 9b94b8d0237ce..686f1e53b4fb7 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_write_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/illegal_write_test.cpp
@@ -5,6 +5,7 @@
// REQUIRES: stable-runtime
// XFAIL: target={{(powerpc64|s390x).*}}
+// UNSUPPORTED: rtsan
volatile int *null = 0;
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/mmap_write_exec.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/mmap_write_exec.cpp
index eec2161573a77..7d52a02b2d0e9 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/mmap_write_exec.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/mmap_write_exec.cpp
@@ -7,6 +7,8 @@
// TODO: Fix option on Android, it hangs there for unknown reasons.
// XFAIL: android
+// UNSUPPORTED: rtsan
+
#if defined(__APPLE__)
#include <Availability.h>
#endif
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cpp
index 70fba25f59b84..3a91908aac488 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cpp
@@ -18,6 +18,7 @@
// REQUIRES: stable-runtime
// UNSUPPORTED: ubsan
+// UNSUPPORTED: rtsan
#include <assert.h>
#include <errno.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
index 00df7242b9ed2..cb6fb159c0b04 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
@@ -21,6 +21,8 @@
// FIXME: Implement.
// XFAIL: lsan, hwasan
+// UNSUPPORTED: rtsan
+
int global;
int main() {
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cpp
index 9c5ae13cfd8b7..1242378b6dcf5 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cpp
@@ -6,6 +6,8 @@
// FIXME: On Darwin, LSAn detects the leak, but does not invoke the death_callback.
// XFAIL: darwin && lsan
+// UNSUPPORTED: rtsan
+
#include <sanitizer/common_interface_defs.h>
#include <stdio.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_report_fd_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_report_fd_test.cpp
index e4064828015aa..e41fff7a0a601 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_report_fd_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_report_fd_test.cpp
@@ -8,6 +8,7 @@
// REQUIRES: stable-runtime
// UNSUPPORTED: android && asan
+// UNSUPPORTED: rtsan
#include <sanitizer/common_interface_defs.h>
#include <stdio.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/weak_hook_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/weak_hook_test.cpp
index e95de739fe784..1543027b2b3c6 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/weak_hook_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/weak_hook_test.cpp
@@ -7,6 +7,8 @@
// FIXME: Implement.
// XFAIL: hwasan
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <string.h>
#if defined(_GNU_SOURCE)
diff --git a/compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp b/compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp
index 6f5f05639800a..e8d879cd7e2fc 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp
@@ -4,6 +4,8 @@
// No allocator.
// UNSUPPORTED: ubsan
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <sanitizer/allocator_interface.h>
#include <stdio.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cpp b/compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cpp
index ca6f637b9a3f5..6343d87bc5c5d 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cpp
@@ -38,6 +38,8 @@
// TODO(alekseyshl): win32 is disabled due to failing errno tests, fix it there.
// UNSUPPORTED: ubsan, target={{.*windows-msvc.*}}
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <errno.h>
#include <stdio.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/compress_stack_depot.cpp b/compiler-rt/test/sanitizer_common/TestCases/compress_stack_depot.cpp
index 7ad0ff08df33d..cdbb7a646fd8c 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/compress_stack_depot.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/compress_stack_depot.cpp
@@ -14,6 +14,8 @@
// Similar to D114934, something is broken with background thread on THUMB and Asan.
// XFAIL: target=thumb{{.*}} && asan
+// UNSUPPORTED: rtsan
+
#include <sanitizer/common_interface_defs.h>
#include <memory>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/corelimit.cpp b/compiler-rt/test/sanitizer_common/TestCases/corelimit.cpp
index 9b56471905aaf..05f86c8dd0c0b 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/corelimit.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/corelimit.cpp
@@ -1,5 +1,5 @@
// RUN: %clangxx -O0 %s -o %t && %run %t
-// UNSUPPORTED: lsan,ubsan
+// UNSUPPORTED: lsan,ubsan,rtsan
#include <assert.h>
#include <sys/time.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp b/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
index 7ae2df5d5647b..59589a88366fa 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
@@ -3,6 +3,8 @@
// Must not be implemented, no other reason to install interceptors.
// XFAIL: ubsan
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <sanitizer/allocator_interface.h>
#include <stdio.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cpp
index 4eb2247b1d38f..232a97d1dac27 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cpp
@@ -13,6 +13,7 @@
// Ubsan does not intercept pthread_create.
// XFAIL: ubsan
// UNSUPPORTED: target={{.*(freebsd|solaris).*}}, darwin
+// UNSUPPORTED: rtsan
// THUMB starts background thead only for Asan.
// XFAIL: target=thumb{{.*}} && !asan
diff --git a/compiler-rt/test/sanitizer_common/TestCases/malloc_hook.cpp b/compiler-rt/test/sanitizer_common/TestCases/malloc_hook.cpp
index 44dffcd47a51a..b11045091aa3c 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/malloc_hook.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/malloc_hook.cpp
@@ -6,6 +6,8 @@
// Must not be implemented, no other reason to install interceptors.
// XFAIL: ubsan
+// UNSUPPORTED: rtsan
+
#include <stdlib.h>
#include <unistd.h>
#include <sanitizer/allocator_interface.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/malloc_hook_get_allocated_size_fast.cpp b/compiler-rt/test/sanitizer_common/TestCases/malloc_hook_get_allocated_size_fast.cpp
index 68b22d4f99f63..f605f2a3e0346 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/malloc_hook_get_allocated_size_fast.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/malloc_hook_get_allocated_size_fast.cpp
@@ -6,6 +6,8 @@
// Must not be implemented, no other reason to install interceptors.
// XFAIL: ubsan
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <sanitizer/allocator_interface.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/max_allocation_size.cpp b/compiler-rt/test/sanitizer_common/TestCases/max_allocation_size.cpp
index 2fde16fbed3d2..864d05f87e4c6 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/max_allocation_size.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/max_allocation_size.cpp
@@ -46,6 +46,8 @@
// Symbolizer needs to allocated memory when reporting.
// UNSUPPORTED: internal_symbolizer
+// UNSUPPORTED: rtsan
+
#include <assert.h>
#include <errno.h>
#include <limits>
diff --git a/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp b/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp
index 5223af07f18ae..5c440000762bd 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp
@@ -6,6 +6,8 @@
// RUN: %clangxx -O0 -std=c++11 -fsanitize-coverage=control-flow %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: rtsan
+
#include <cstdint>
#include <cstdio>
#if __has_feature(ptrauth_calls)
diff --git a/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cpp b/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cpp
index 68eca85eb4d42..60fdbfbff2432 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_coun...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/213404
More information about the llvm-commits
mailing list