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
This commit is contained in:
Daniel Dunbar 2009-09-13 01:40:48 +00:00
parent 5110609ceb
commit fbc18f839c
9 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
// Test that we can compile .c files as C++ and vice versa // 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: 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> #include <iostream>

View File

@ -1,6 +1,6 @@
// Test that we can compile C++ code. // Test that we can compile C++ code.
// RUN: llvmc %s -o %t // RUN: llvmc %s -o %t
// RUN: ./%t | grep hello // RUN: %abs_tmp | grep hello
#include <iostream> #include <iostream>
int main() { int main() {

View File

@ -1,6 +1,6 @@
// Check that we can compile files of different types together. // Check that we can compile files of different types together.
// RUN: llvmc %s %p/../test_data/together.c -o %t // RUN: llvmc %s %p/../test_data/together.c -o %t
// RUN: ./%t | grep hello // RUN: %abs_tmp | grep hello
extern "C" void test(); extern "C" void test();

View File

@ -1,7 +1,7 @@
/* /*
* Check that we can compile helloworld * Check that we can compile helloworld
* RUN: llvmc %s -o %t * RUN: llvmc %s -o %t
* RUN: ./%t | grep hello * RUN: %abs_tmp | grep hello
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,7 +1,7 @@
/* /*
* Check that the -opt switch works. * Check that the -opt switch works.
* RUN: llvmc %s -opt -o %t * RUN: llvmc %s -opt -o %t
* RUN: ./%t | grep hello * RUN: %abs_tmp | grep hello
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,7 +1,7 @@
/* /*
* Check that the 'sink' options work. * Check that the 'sink' options work.
* RUN: llvmc -v -Wall %s -o %t |& grep "Wall" * RUN: llvmc -v -Wall %s -o %t |& grep "Wall"
* RUN: ./%t | grep hello * RUN: %abs_tmp | grep hello
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,7 +1,7 @@
/* /*
* Check that -Wall works as intended * Check that -Wall works as intended
* RUN: llvmc -Wall %s -o %t * RUN: llvmc -Wall %s -o %t
* RUN: ./%t | grep hello * RUN: %abs_tmp | grep hello
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,6 +1,6 @@
// Test that we can compile Objective-C++ code. // Test that we can compile Objective-C++ code.
// RUN: llvmc %s -o %t // RUN: llvmc %s -o %t
// RUN: ./%t | grep hello // RUN: %abs_tmp | grep hello
#include <iostream> #include <iostream>
int main() { int main() {

View File

@ -1,7 +1,7 @@
/* /*
* Check that we can compile helloworld * Check that we can compile helloworld
* RUN: llvmc %s -o %t * RUN: llvmc %s -o %t
* RUN: ./%t | grep hello * RUN: %abs_tmp | grep hello
*/ */
#include <stdio.h> #include <stdio.h>