summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2019-12-16 14:20:16 -0800
committerDan Liew <dan@su-root.co.uk>2019-12-16 16:37:50 -0800
commite2bcc33b50f6ca8f37ce2d501b88119fc21eb783 (patch)
treef52d5cc3755b6e2031bbbcc798bf8226464ef942 /compiler-rt/test
parentf5bbe387e88511cd0ea09bc41742bbc1159de938 (diff)
downloadbcm5719-llvm-e2bcc33b50f6ca8f37ce2d501b88119fc21eb783.tar.gz
bcm5719-llvm-e2bcc33b50f6ca8f37ce2d501b88119fc21eb783.zip
Change `asan/TestCases/Darwin/malloc_zone-protected.cpp` to call abort so that it **always crashes**.
Summary: This is needed because on some platforms we can't install signal handlers and so the application just traps (i.e. crashes) rather than being intercepted by ASan's signal handler which in the default Darwin config doesn't exit with a crashing exit code. rdar://problem/57984547 Reviewers: yln, kubamracek, jfb Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D71573
Diffstat (limited to 'compiler-rt/test')
-rw-r--r--compiler-rt/test/asan/TestCases/Darwin/malloc_zone-protected.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Darwin/malloc_zone-protected.cpp b/compiler-rt/test/asan/TestCases/Darwin/malloc_zone-protected.cpp
index 362b60e20b5..125b544724d 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/malloc_zone-protected.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/malloc_zone-protected.cpp
@@ -3,7 +3,7 @@
#include <stdio.h>
// RUN: %clangxx_asan %s -o %t
-// RUN: not %run %t 2>&1 | FileCheck %s
+// RUN: ASAN_OPTIONS="abort_on_error=1" not --crash %run %t 2>&1 | FileCheck %s
void *pwn(malloc_zone_t *unused_zone, size_t unused_size) {
OpenPOWER on IntegriCloud