tests: Use %abs_tmp instead of ./%t to make these tests portable to 'lit'.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 13 Sep 2009 01:40:48 +0000 (01:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 13 Sep 2009 01:40:48 +0000 (01:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81663 91177308-0d34-0410-b5e6-96231b3b80d8

test/LLVMC/C++/dash-x.cpp
test/LLVMC/C++/hello.cpp
test/LLVMC/C++/together.cpp
test/LLVMC/C/hello.c
test/LLVMC/C/opt-test.c
test/LLVMC/C/sink.c
test/LLVMC/C/wall.c
test/LLVMC/ObjC++/hello.mm
test/LLVMC/ObjC/hello.m

index faf8b3072a2147d35702f0a14c429f32e0389135..437d8bbbe3b2d3643e3fe6e3196e232dffb05230 100644 (file)
@@ -1,6 +1,6 @@
 // Test that we can compile .c files as C++ and vice versa
 // RUN: llvmc -x c++ %s -x c %p/../test_data/false.cpp -x lisp -x whatnot -x none %p/../test_data/false2.cpp -o %t
-// RUN: ./%t | grep hello
+// RUN: %abs_tmp | grep hello
 
 #include <iostream>
 
index 27c89d66fa73fd488c425a876e937bd41017df03..b9c6399ebfc1c0f677e48d9703a2c73bad336943 100644 (file)
@@ -1,6 +1,6 @@
 // Test that we can compile C++ code.
 // RUN: llvmc %s -o %t
-// RUN: ./%t | grep hello
+// RUN: %abs_tmp | grep hello
 #include <iostream>
 
 int main() {
index f1320ca6d0397afa8839626531b06fc871b3669f..e02f69aec8d75e39b14aca283ec49038d208601a 100644 (file)
@@ -1,6 +1,6 @@
 // Check that we can compile files of different types together.
 // RUN: llvmc %s %p/../test_data/together.c -o %t
-// RUN: ./%t | grep hello
+// RUN: %abs_tmp | grep hello
 
 extern "C" void test();
 
index 1cda9c3a3405eafd52a0061cea0486c34b403c8d..b2d903f8d53f1d2b362ba39882d0ed9c2a82e28c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Check that we can compile helloworld
  * RUN: llvmc %s -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
  */
 
 #include <stdio.h>
index ed2df52fed7c53b0ab815794634b0931fbd044f6..d69dc9b479f87b3853b6466b02edd14b5b2a7640 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Check that the -opt switch works.
  * RUN: llvmc %s -opt -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
  */
 
 #include <stdio.h>
index 3edbf78112e6d80a9cd1186152d9a9d7e4a17888..bdff340da903eb3de81cc1a86763b60b2714c454 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Check that the 'sink' options work.
  * RUN: llvmc -v -Wall %s -o %t |& grep "Wall"
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
  */
 
 #include <stdio.h>
index 2c72ea69929d037e595c20e8e12b9f0ba5eebfc7..f6760990b8810e246b509e70aa00645a00c02096 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Check that -Wall works as intended
  * RUN: llvmc -Wall %s -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
  */
 
 #include <stdio.h>
index ff82e4af518d9ecd56c31d1b8494eea8220c014d..2125dc76b7222aab72bb0566c446a370594443b4 100644 (file)
@@ -1,6 +1,6 @@
 // Test that we can compile Objective-C++ code.
 // RUN: llvmc %s -o %t
-// RUN: ./%t | grep hello
+// RUN: %abs_tmp | grep hello
 #include <iostream>
 
 int main() {
index 1cda9c3a3405eafd52a0061cea0486c34b403c8d..b2d903f8d53f1d2b362ba39882d0ed9c2a82e28c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Check that we can compile helloworld
  * RUN: llvmc %s -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
  */
 
 #include <stdio.h>