Avoid writing to an arbitrary filename during the test run by writing to
authorChandler Carruth <chandlerc@gmail.com>
Sat, 2 Jul 2011 20:43:18 +0000 (20:43 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 2 Jul 2011 20:43:18 +0000 (20:43 +0000)
a file descriptor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134355 91177308-0d34-0410-b5e6-96231b3b80d8

test/Archive/extract.ll

index 714c5f1ed9834f4a93fdcccbf0368b65c300ad2a..5c0f508319b9d917f99b82652d08fee6f6be0155 100644 (file)
@@ -3,14 +3,14 @@
 ; This test just makes sure that llvm-ar can extract bytecode members
 ; from various style archives.
 
-; RUN: llvm-ar x %p/GNU.a very_long_bytecode_file_name.bc
-; RUN: cmp -s %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
+; RUN: llvm-ar p %p/GNU.a very_long_bytecode_file_name.bc | \
+; RUN:   cmp -s %p/very_long_bytecode_file_name.bc -
 
-; RUN: llvm-ar x %p/MacOSX.a very_long_bytecode_file_name.bc
-; RUN: cmp -s %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
+; RUN: llvm-ar p %p/MacOSX.a very_long_bytecode_file_name.bc | \
+; RUN:   cmp -s %p/very_long_bytecode_file_name.bc -
 
-; RUN: llvm-ar x %p/SVR4.a very_long_bytecode_file_name.bc
-; RUN: cmp -s %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
+; RUN: llvm-ar p %p/SVR4.a very_long_bytecode_file_name.bc | \
+; RUN:   cmp -s %p/very_long_bytecode_file_name.bc -
 
-; RUN: llvm-ar x %p/xpg4.a very_long_bytecode_file_name.bc
-; RUN: cmp -s %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
+; RUN: llvm-ar p %p/xpg4.a very_long_bytecode_file_name.bc |\
+; RUN:   cmp -s %p/very_long_bytecode_file_name.bc -