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 013877c..ffa3753 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