From: Eric Christopher Date: Tue, 10 Jul 2018 01:01:38 +0000 (+0000) Subject: Update crash diagnostics test to avoid attempting to write into various X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a758e727e602b5e05058271c990063baeeea3ccd;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336630 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/crash-diagnostics-dir.c b/test/Driver/crash-diagnostics-dir.c index e922eac4be..c8faf497b5 100644 --- a/test/Driver/crash-diagnostics-dir.c +++ b/test/Driver/crash-diagnostics-dir.c @@ -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