[compiler-rt] [rtsan] Add fork/execve interceptors (PR #117198)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 09:47:57 PST 2024
================
@@ -0,0 +1,61 @@
+// RUN: %clangxx -fsanitize=realtime -DIS_NONBLOCKING=1 %s -o %t
+// RUN: %env_rtsan_opts="halt_on_error=true" not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-HALT
+// RUN: %env_rtsan_opts="halt_on_error=false" %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOHALT
+
+// RUN: %clangxx -fsanitize=realtime -DIS_NONBLOCKING=0 %s -o %t
+// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-OK
+// RUN: %env_rtsan_opts="halt_on_error=false" %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-OK
+
+// UNSUPPORTED: ios
+
+// Intent: Ensure fork/exec dies when realtime and survives otherwise
+// This behavior is difficult to test in a gtest, because the process is
+// wiped away with exec.
----------------
cjappl wrote:
And here
https://github.com/llvm/llvm-project/pull/117198
More information about the llvm-commits
mailing list