From: NAKAMURA Takumi Date: Tue, 17 Jul 2012 05:09:20 +0000 (+0000) Subject: test/Driver/crash-report.c: Small tweaks. 1) Use %t instead %T for TMP. 2) Set all... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5756792d2303f500381204845cee5b6990dcaec;p=clang test/Driver/crash-report.c: Small tweaks. 1) Use %t instead %T for TMP. 2) Set all of $TMPDIR, $TEMP and $TMP, or a certain host might set $TEMP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160342 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/crash-report.c b/test/Driver/crash-report.c index 013877c551..ffa375334c 100644 --- a/test/Driver/crash-report.c +++ b/test/Driver/crash-report.c @@ -1,7 +1,8 @@ -// RUN: rm -f %T/crash-report-*.c %T/crash-report-*.sh -// RUN: TMP=%T %clang -fsyntax-only %s -DFOO=BAR 2>&1 | FileCheck %s -// RUN: FileCheck --check-prefix=CHECKSRC %s < %T/crash-report-*.c -// RUN: FileCheck --check-prefix=CHECKSH %s < %T/crash-report-*.sh +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s -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 // XFAIL: mingw32,win32