[sanitizer] Disable signal_trap_handler on s390

llvm-svn: 374220
This commit is contained in:
Vitaly Buka 2019-10-09 20:48:50 +00:00
parent a0d83768f1
commit 3afc77dbbc

View file

@ -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;