summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-21 21:22:56 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-21 21:22:56 +0000
commit2571791fa0c572edcf269c43ada766403108ee63 (patch)
treefa1ac1dcee1925b5eb9d3e64e504f0f54ca6e032 /test
parent28e8e42d371e7c3cfc8366d3dd3416079ad03f5a (diff)
downloadllvm-2571791fa0c572edcf269c43ada766403108ee63.tar.gz
llvm-2571791fa0c572edcf269c43ada766403108ee63.tar.bz2
llvm-2571791fa0c572edcf269c43ada766403108ee63.tar.xz
* Undo previous commit that breaks the test.
* Correct the test to work when srcdir == objdir. NOTE: Since multiple tests run from the same source archive and llvm-ranlib changes the archive, these tests MUST work on a copy of the archive or else this test corrupts the archive file subsequent tests or subsequent runs of the test suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Archive/ranlib_GNU.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Archive/ranlib_GNU.ll b/test/Archive/ranlib_GNU.ll
index 61ca2734dd..3def94465e 100644
--- a/test/Archive/ranlib_GNU.ll
+++ b/test/Archive/ranlib_GNU.ll
@@ -1,8 +1,9 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can generate a symbol table for
;GNU style archives
-;RUN: llvm-ranlib %p/GNU.a
-;RUN: llvm-ar t %p/GNU.a > %t1
+;RUN: cp %p/GNU.a GNU_copy.a
+;RUN: llvm-ranlib GNU_copy.a
+;RUN: llvm-ar t GNU_copy.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen