summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-04-12 18:48:41 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-04-12 18:48:41 +0000
commit47d4145a51976c80f94b4c1add764ddc7ef21a57 (patch)
tree2eece3943c48a2aa45a08faa839d606a26fc1a11 /test
parent96bacf0517ab241a2c0ea26127facb92032dd053 (diff)
[safestack] Fix stack canary test on Mac.
Disable FORTIFY_SOURCE and explicitly disable stack protector in the no-stack-protector run. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/safestack/canary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/safestack/canary.c b/test/safestack/canary.c
index b316aa240..c6b81f243 100644
--- a/test/safestack/canary.c
+++ b/test/safestack/canary.c
@@ -1,7 +1,7 @@
-// RUN: %clang_safestack -g %s -o %t.nossp
+// RUN: %clang_safestack -fno-stack-protector -D_FORTIFY_SOURCE=0 -g %s -o %t.nossp
// RUN: %run %t.nossp 2>&1 | FileCheck --check-prefix=NOSSP %s
-// RUN: %clang_safestack -fstack-protector-all -g %s -o %t.ssp
+// RUN: %clang_safestack -fstack-protector-all -D_FORTIFY_SOURCE=0 -g %s -o %t.ssp
// RUN: not --crash %run %t.ssp 2>&1 | FileCheck -check-prefix=SSP %s
// Test stack canaries on the unsafe stack.