diff options
author | Vitaly Buka <vitalybuka@google.com> | 2019-10-09 20:48:50 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2019-10-09 20:48:50 +0000 |
commit | 9db3b945ea8e4c9f4e78b9b66515336f6492b713 (patch) | |
tree | c31ef6ed0d07dbd28cde2c6232da41ad562cddf3 /test/sanitizer_common | |
parent | 6e2db02a1839370609d08ea0135de7eead7f1135 (diff) | |
download | compiler-rt-9db3b945ea8e4c9f4e78b9b66515336f6492b713.tar.gz |
[sanitizer] Disable signal_trap_handler on s390
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@374220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common')
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp b/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp index f7af8aa85..3d6292439 100644 --- a/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp +++ b/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp @@ -1,5 +1,8 @@ // RUN: %clangxx -O1 %s -o %t && %env_tool_opts=handle_sigtrap=1 %run %t 2>&1 | FileCheck %s +// __builtin_debugtrap() does not raise SIGTRAP these platforms. +// UNSUPPORTED: s390 + #include <assert.h> #include <signal.h> #include <stdio.h> @@ -26,6 +29,8 @@ int main() { assert(a.sa_flags & SA_SIGINFO); in_handler = 1; + // Check that signal handler is not postponed by sanitizer. + // Don't use raise here as it calls any signal handler immediately. __builtin_debugtrap(); in_handler = 0; |