Skip to content

Commit

Permalink
* Undo previous commit that breaks the test.
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Reid Spencer committed Nov 21, 2004
1 parent 2571791 commit 6d0e614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file modified test/Archive/ranlib_MacOSX.ll
Binary file not shown.
5 changes: 3 additions & 2 deletions test/Archive/ranlib_SVR4.ll
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions test/Archive/ranlib_xpg4.ll
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6d0e614

Please sign in to comment.