aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLVMC/C++
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-13 01:40:48 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-13 01:40:48 +0000
commit282ae0b0efbe5ce5ce81c00cb4d89e813b78efc6 (patch)
tree12935e95a6e642bb9f834d2cb61af1bee63ac49f /test/LLVMC/C++
parentc46101cd59d21edd7614d3c2ad57119baebf0db4 (diff)
downloadexternal_llvm-282ae0b0efbe5ce5ce81c00cb4d89e813b78efc6.zip
external_llvm-282ae0b0efbe5ce5ce81c00cb4d89e813b78efc6.tar.gz
external_llvm-282ae0b0efbe5ce5ce81c00cb4d89e813b78efc6.tar.bz2
tests: Use %abs_tmp instead of ./%t to make these tests portable to 'lit'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLVMC/C++')
-rw-r--r--test/LLVMC/C++/dash-x.cpp2
-rw-r--r--test/LLVMC/C++/hello.cpp2
-rw-r--r--test/LLVMC/C++/together.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/LLVMC/C++/dash-x.cpp b/test/LLVMC/C++/dash-x.cpp
index faf8b30..437d8bb 100644
--- a/test/LLVMC/C++/dash-x.cpp
+++ b/test/LLVMC/C++/dash-x.cpp
@@ -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>
diff --git a/test/LLVMC/C++/hello.cpp b/test/LLVMC/C++/hello.cpp
index 27c89d6..b9c6399 100644
--- a/test/LLVMC/C++/hello.cpp
+++ b/test/LLVMC/C++/hello.cpp
@@ -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() {
diff --git a/test/LLVMC/C++/together.cpp b/test/LLVMC/C++/together.cpp
index f1320ca..e02f69a 100644
--- a/test/LLVMC/C++/together.cpp
+++ b/test/LLVMC/C++/together.cpp
@@ -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();