aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/crash-report.c
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-07-25 17:52:16 +0000
committerChad Rosier <mcrosier@apple.com>2012-07-25 17:52:16 +0000
commit37302ead1c067ec984a75e847cd83c6881637e72 (patch)
treee096d8ab3067cfc3e4c403d92dfcaa755b665117 /test/Driver/crash-report.c
parent2c6b00e7126399210b759f4da53c680bee01a706 (diff)
[driver crash diagnostics] A few enhancements:
-Strip -iquote and -M options. -Quote -D options to avoid problems with command line macros that include parens. rdar://11949066 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/crash-report.c')
-rw-r--r--test/Driver/crash-report.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Driver/crash-report.c b/test/Driver/crash-report.c
index 9476adadac..fd45f48ccd 100644
--- a/test/Driver/crash-report.c
+++ b/test/Driver/crash-report.c
@@ -1,6 +1,7 @@
// RUN: rm -rf %t
// RUN: mkdir %t
-// RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s -DFOO=BAR 2>&1 | FileCheck %s
+// RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s \
+// RUN: -F/tmp/ -I /tmp/ -iquote /tmp/ -DFOO=BAR 2>&1 | FileCheck %s
// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
// REQUIRES: crash-recovery
@@ -10,4 +11,7 @@
// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
FOO
// CHECKSRC: FOO
-// CHECKSH: -D FOO=BAR
+// CHECKSH: -D "FOO=BAR"
+// CHECKSH-NOT: -F/tmp/
+// CHECKSH-NOT: -I /tmp/
+// CHECKSH-NOT: -iquote /tmp/