[llvm-commits] [llvm] r134355 - /llvm/trunk/test/Archive/extract.ll

Chandler Carruth chandlerc at gmail.com
Sat Jul 2 13:43:18 PDT 2011


Author: chandlerc
Date: Sat Jul  2 15:43:18 2011
New Revision: 134355

URL: http://llvm.org/viewvc/llvm-project?rev=134355&view=rev
Log:
Avoid writing to an arbitrary filename during the test run by writing to
a file descriptor.

Modified:
    llvm/trunk/test/Archive/extract.ll

Modified: llvm/trunk/test/Archive/extract.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Archive/extract.ll?rev=134355&r1=134354&r2=134355&view=diff
==============================================================================
--- llvm/trunk/test/Archive/extract.ll (original)
+++ llvm/trunk/test/Archive/extract.ll Sat Jul  2 15:43:18 2011
@@ -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 -





More information about the llvm-commits mailing list