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.

llvm-svn: 160342
This commit is contained in:
NAKAMURA Takumi 2012-07-17 05:09:20 +00:00
parent e834cb465a
commit 78c0295fcf
1 changed files with 5 additions and 4 deletions

View File

@ -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