summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-21 21:28:56 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-21 21:28:56 +0000
commit6d0e614d5e4f56229d1686d51f107cdb95c0b03b (patch)
treebb9919ee1e06099d4218436768628aab5c6b2cf3 /test
parent2571791fa0c572edcf269c43ada766403108ee63 (diff)
downloadllvm-6d0e614d5e4f56229d1686d51f107cdb95c0b03b.tar.gz
llvm-6d0e614d5e4f56229d1686d51f107cdb95c0b03b.tar.bz2
llvm-6d0e614d5e4f56229d1686d51f107cdb95c0b03b.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@18094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Archive/ranlib_MacOSX.llbin392 -> 414 bytes
-rw-r--r--test/Archive/ranlib_SVR4.ll5
-rw-r--r--test/Archive/ranlib_xpg4.ll5
3 files changed, 6 insertions, 4 deletions
diff --git a/test/Archive/ranlib_MacOSX.ll b/test/Archive/ranlib_MacOSX.ll
index bf42aad380..c6fa661f19 100644
--- a/test/Archive/ranlib_MacOSX.ll
+++ b/test/Archive/ranlib_MacOSX.ll
Binary files differ
diff --git a/test/Archive/ranlib_SVR4.ll b/test/Archive/ranlib_SVR4.ll
index 6874662a12..137bad7fb6 100644
--- a/test/Archive/ranlib_SVR4.ll
+++ b/test/Archive/ranlib_SVR4.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
;SVR4 style archives
-;RUN: llvm-ranlib %p/SVR4.a
-;RUN: llvm-ar t %p/SVR4.a > %t1
+;RUN: cp %p/SVR4.a SVR4_copy.a
+;RUN: llvm-ranlib SVR4_copy.a
+;RUN: llvm-ar t SVR4_copy.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen
diff --git a/test/Archive/ranlib_xpg4.ll b/test/Archive/ranlib_xpg4.ll
index ef363af804..2d133e46ea 100644
--- a/test/Archive/ranlib_xpg4.ll
+++ b/test/Archive/ranlib_xpg4.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
;xpg4 style archives
-;RUN: llvm-ranlib %p/xpg4.a
-;RUN: llvm-ar t %p/xpg4.a > %t1
+;RUN: cp %p/xpg4.a xpg4_copy.a
+;RUN: llvm-ranlib xpg4_copy.a
+;RUN: llvm-ar t xpg4_copy.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen