]> granicus.if.org Git - clang/commitdiff
Update crash diagnostics test to avoid attempting to write into various
authorEric Christopher <echristo@gmail.com>
Tue, 10 Jul 2018 01:01:38 +0000 (01:01 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 10 Jul 2018 01:01:38 +0000 (01:01 +0000)
directories if possible and to not require %t to have "Output" in the name.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336630 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/crash-diagnostics-dir.c

index e922eac4be39c52c83e632af0fe772ffe06c2c5a..c8faf497b5a19c00eb5d766c5887db9486f28c80 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: rm -rf %t
 // RUN: mkdir -p %t
-// RUN: not %clang -fcrash-diagnostics-dir=%t -c %s 2>&1 | FileCheck %s
+// RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s
 #pragma clang __debug parser_crash
 // CHECK: Preprocessed source(s) and associated run script(s) are located at:
-// CHECK: diagnostic msg: {{.*}}Output{{/|\\}}crash-diagnostics-dir.c.tmp{{(/|\\).*}}.c
+// CHECK: diagnostic msg: {{.*}}{{/|\\}}crash-diagnostics-dir.c.tmp{{(/|\\).*}}.c