aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-02 20:43:18 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-02 20:43:18 +0000
commit4ca11dea79ee93c06a3a81f0dd66933767932bed (patch)
tree18126410f5edaa2bae8206b7420c3a48850ab633 /test
parenta42e665442e5c8156c18eeb3bbcdfdb046063a2e (diff)
downloadexternal_llvm-4ca11dea79ee93c06a3a81f0dd66933767932bed.zip
external_llvm-4ca11dea79ee93c06a3a81f0dd66933767932bed.tar.gz
external_llvm-4ca11dea79ee93c06a3a81f0dd66933767932bed.tar.bz2
Avoid writing to an arbitrary filename during the test run by writing to
a file descriptor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Archive/extract.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Archive/extract.ll b/test/Archive/extract.ll
index 714c5f1..5c0f508 100644
--- a/test/Archive/extract.ll
+++ b/test/Archive/extract.ll
@@ -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 -