From fbc18f839c8dcae38e73ae12bee9d34a416d2fcd Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 13 Sep 2009 01:40:48 +0000 Subject: [PATCH] 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 --- test/LLVMC/C++/dash-x.cpp | 2 +- test/LLVMC/C++/hello.cpp | 2 +- test/LLVMC/C++/together.cpp | 2 +- test/LLVMC/C/hello.c | 2 +- test/LLVMC/C/opt-test.c | 2 +- test/LLVMC/C/sink.c | 2 +- test/LLVMC/C/wall.c | 2 +- test/LLVMC/ObjC++/hello.mm | 2 +- test/LLVMC/ObjC/hello.m | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/LLVMC/C++/dash-x.cpp b/test/LLVMC/C++/dash-x.cpp index faf8b3072a2..437d8bbbe3b 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 diff --git a/test/LLVMC/C++/hello.cpp b/test/LLVMC/C++/hello.cpp index 27c89d66fa7..b9c6399ebfc 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 int main() { diff --git a/test/LLVMC/C++/together.cpp b/test/LLVMC/C++/together.cpp index f1320ca6d03..e02f69aec8d 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(); diff --git a/test/LLVMC/C/hello.c b/test/LLVMC/C/hello.c index 1cda9c3a340..b2d903f8d53 100644 --- a/test/LLVMC/C/hello.c +++ b/test/LLVMC/C/hello.c @@ -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 diff --git a/test/LLVMC/C/opt-test.c b/test/LLVMC/C/opt-test.c index ed2df52fed7..d69dc9b479f 100644 --- a/test/LLVMC/C/opt-test.c +++ b/test/LLVMC/C/opt-test.c @@ -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 diff --git a/test/LLVMC/C/sink.c b/test/LLVMC/C/sink.c index 3edbf78112e..bdff340da90 100644 --- a/test/LLVMC/C/sink.c +++ b/test/LLVMC/C/sink.c @@ -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 diff --git a/test/LLVMC/C/wall.c b/test/LLVMC/C/wall.c index 2c72ea69929..f6760990b88 100644 --- a/test/LLVMC/C/wall.c +++ b/test/LLVMC/C/wall.c @@ -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 diff --git a/test/LLVMC/ObjC++/hello.mm b/test/LLVMC/ObjC++/hello.mm index ff82e4af518..2125dc76b72 100644 --- a/test/LLVMC/ObjC++/hello.mm +++ b/test/LLVMC/ObjC++/hello.mm @@ -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 int main() { diff --git a/test/LLVMC/ObjC/hello.m b/test/LLVMC/ObjC/hello.m index 1cda9c3a340..b2d903f8d53 100644 --- a/test/LLVMC/ObjC/hello.m +++ b/test/LLVMC/ObjC/hello.m @@ -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