Updated to generate temporary files in the temporary directory.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8724 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CBackend/2003-06-23-PromotedExprs.llx b/test/CBackend/2003-06-23-PromotedExprs.llx
index 47ecc82..7f3ceff 100644
--- a/test/CBackend/2003-06-23-PromotedExprs.llx
+++ b/test/CBackend/2003-06-23-PromotedExprs.llx
@@ -1,7 +1,7 @@
 
-; RUN: llvm-as < %s | llvm-dis -c > f1.cbe.c
-; RUN: gcc -B/usr/bin/ f1.cbe.c -o f1.cbe
-; RUN: ./f1.cbe
+; RUN: llvm-as < %s | llvm-dis -c > %t1.cbe.c
+; RUN: gcc -B/usr/bin/ %t1.cbe.c -o %t1.cbe
+; RUN: %t1.cbe
 
 bool %doTest(ubyte %x) {
 	%dec.0 = add ubyte %x, 255
diff --git a/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx b/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx
index 47ecc82..7f3ceff 100644
--- a/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx
+++ b/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx
@@ -1,7 +1,7 @@
 
-; RUN: llvm-as < %s | llvm-dis -c > f1.cbe.c
-; RUN: gcc -B/usr/bin/ f1.cbe.c -o f1.cbe
-; RUN: ./f1.cbe
+; RUN: llvm-as < %s | llvm-dis -c > %t1.cbe.c
+; RUN: gcc -B/usr/bin/ %t1.cbe.c -o %t1.cbe
+; RUN: %t1.cbe
 
 bool %doTest(ubyte %x) {
 	%dec.0 = add ubyte %x, 255