summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitd024a508230db67061887b43f2ad9d17f141d3b5 (patch)
treea820449c28d13e1abbc882a1897f8703fa505362 /llvm/test
parenta33e630c55608b257df6629dbcac7ffb19627094 (diff)
downloadbcm5719-llvm-d024a508230db67061887b43f2ad9d17f141d3b5.tar.gz
bcm5719-llvm-d024a508230db67061887b43f2ad9d17f141d3b5.zip
Avoid writing to an arbitrary filename during the test run by writing to
a file descriptor. llvm-svn: 134355
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Archive/extract.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Archive/extract.ll b/llvm/test/Archive/extract.ll
index 714c5f1ed98..5c0f508319b 100644
--- a/llvm/test/Archive/extract.ll
+++ b/llvm/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 -
OpenPOWER on IntegriCloud