r336630 - Update crash diagnostics test to avoid attempting to write into various

Eric Christopher via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 9 18:01:38 PDT 2018


Author: echristo
Date: Mon Jul  9 18:01:38 2018
New Revision: 336630

URL: http://llvm.org/viewvc/llvm-project?rev=336630&view=rev
Log:
Update crash diagnostics test to avoid attempting to write into various
directories if possible and to not require %t to have "Output" in the name.

Modified:
    cfe/trunk/test/Driver/crash-diagnostics-dir.c

Modified: cfe/trunk/test/Driver/crash-diagnostics-dir.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/crash-diagnostics-dir.c?rev=336630&r1=336629&r2=336630&view=diff
==============================================================================
--- cfe/trunk/test/Driver/crash-diagnostics-dir.c (original)
+++ cfe/trunk/test/Driver/crash-diagnostics-dir.c Mon Jul  9 18:01:38 2018
@@ -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




More information about the cfe-commits mailing list