[llvm-commits] [llvm] r81663 - in /llvm/trunk/test/LLVMC: C++/dash-x.cpp C++/hello.cpp C++/together.cpp C/hello.c C/opt-test.c C/sink.c C/wall.c ObjC++/hello.mm ObjC/hello.m
Daniel Dunbar
daniel at zuster.org
Sat Sep 12 18:40:48 PDT 2009
Author: ddunbar
Date: Sat Sep 12 20:40:48 2009
New Revision: 81663
URL: http://llvm.org/viewvc/llvm-project?rev=81663&view=rev
Log:
tests: Use %abs_tmp instead of ./%t to make these tests portable to 'lit'.
Modified:
llvm/trunk/test/LLVMC/C++/dash-x.cpp
llvm/trunk/test/LLVMC/C++/hello.cpp
llvm/trunk/test/LLVMC/C++/together.cpp
llvm/trunk/test/LLVMC/C/hello.c
llvm/trunk/test/LLVMC/C/opt-test.c
llvm/trunk/test/LLVMC/C/sink.c
llvm/trunk/test/LLVMC/C/wall.c
llvm/trunk/test/LLVMC/ObjC++/hello.mm
llvm/trunk/test/LLVMC/ObjC/hello.m
Modified: llvm/trunk/test/LLVMC/C++/dash-x.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C%2B%2B/dash-x.cpp?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/C++/dash-x.cpp (original)
+++ llvm/trunk/test/LLVMC/C++/dash-x.cpp Sat Sep 12 20:40:48 2009
@@ -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>
Modified: llvm/trunk/test/LLVMC/C++/hello.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C%2B%2B/hello.cpp?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/C++/hello.cpp (original)
+++ llvm/trunk/test/LLVMC/C++/hello.cpp Sat Sep 12 20:40:48 2009
@@ -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() {
Modified: llvm/trunk/test/LLVMC/C++/together.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C%2B%2B/together.cpp?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/C++/together.cpp (original)
+++ llvm/trunk/test/LLVMC/C++/together.cpp Sat Sep 12 20:40:48 2009
@@ -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();
Modified: llvm/trunk/test/LLVMC/C/hello.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C/hello.c?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/C/hello.c (original)
+++ llvm/trunk/test/LLVMC/C/hello.c Sat Sep 12 20:40:48 2009
@@ -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>
Modified: llvm/trunk/test/LLVMC/C/opt-test.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C/opt-test.c?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/C/opt-test.c (original)
+++ llvm/trunk/test/LLVMC/C/opt-test.c Sat Sep 12 20:40:48 2009
@@ -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>
Modified: llvm/trunk/test/LLVMC/C/sink.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C/sink.c?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/C/sink.c (original)
+++ llvm/trunk/test/LLVMC/C/sink.c Sat Sep 12 20:40:48 2009
@@ -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>
Modified: llvm/trunk/test/LLVMC/C/wall.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C/wall.c?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/C/wall.c (original)
+++ llvm/trunk/test/LLVMC/C/wall.c Sat Sep 12 20:40:48 2009
@@ -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>
Modified: llvm/trunk/test/LLVMC/ObjC++/hello.mm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/ObjC%2B%2B/hello.mm?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/ObjC++/hello.mm (original)
+++ llvm/trunk/test/LLVMC/ObjC++/hello.mm Sat Sep 12 20:40:48 2009
@@ -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() {
Modified: llvm/trunk/test/LLVMC/ObjC/hello.m
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/ObjC/hello.m?rev=81663&r1=81662&r2=81663&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/ObjC/hello.m (original)
+++ llvm/trunk/test/LLVMC/ObjC/hello.m Sat Sep 12 20:40:48 2009
@@ -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>
More information about the llvm-commits
mailing list