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 | 3afc77dbbca937738a509700629eab6c6552e9dd (patch) | |
tree | c56f0dec4be7da14ea1caddf52fa611864f9a9f8 /compiler-rt | |
parent | a0d83768f10849e5cf230391fac949dc5118c0a6 (diff) | |
download | bcm5719-llvm-3afc77dbbca937738a509700629eab6c6552e9dd.tar.gz bcm5719-llvm-3afc77dbbca937738a509700629eab6c6552e9dd.zip |
[sanitizer] Disable signal_trap_handler on s390
llvm-svn: 374220
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp index f7af8aa850f..3d6292439e9 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_trap_handler.cpp +++ b/compiler-rt/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; |