diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-02 20:43:18 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-02 20:43:18 +0000 |
| commit | d024a508230db67061887b43f2ad9d17f141d3b5 (patch) | |
| tree | a820449c28d13e1abbc882a1897f8703fa505362 /llvm/test | |
| parent | a33e630c55608b257df6629dbcac7ffb19627094 (diff) | |
| download | bcm5719-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.ll | 16 |
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 - |

