summaryrefslogtreecommitdiff
path: root/test/safestack/canary.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/safestack/canary.c')
-rw-r--r--test/safestack/canary.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/safestack/canary.c b/test/safestack/canary.c
index c6b81f24327f0..1ceaa50656f60 100644
--- a/test/safestack/canary.c
+++ b/test/safestack/canary.c
@@ -2,7 +2,8 @@
// RUN: %run %t.nossp 2>&1 | FileCheck --check-prefix=NOSSP %s
// 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
+// RUN: env LIBC_FATAL_STDERR_=1 not --crash %run %t.ssp 2>&1 | \
+// RUN: FileCheck -check-prefix=SSP %s
// Test stack canaries on the unsafe stack.