* 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
This commit is contained in:
Reid Spencer 2004-11-21 21:28:56 +00:00
parent 2571791fa0
commit 6d0e614d5e
3 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -1,8 +1,9 @@
;This isn't really an assembly file, its just here to run the test. ;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 ;This test just makes sure that llvm-ar can generate a symbol table for
;SVR4 style archives ;SVR4 style archives
;RUN: llvm-ranlib %p/SVR4.a ;RUN: cp %p/SVR4.a SVR4_copy.a
;RUN: llvm-ar t %p/SVR4.a > %t1 ;RUN: llvm-ranlib SVR4_copy.a
;RUN: llvm-ar t SVR4_copy.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2 ;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1 ;RUN: diff %t2 %t1
evenlen evenlen

View File

@ -1,8 +1,9 @@
;This isn't really an assembly file, its just here to run the test. ;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 ;This test just makes sure that llvm-ar can generate a symbol table for
;xpg4 style archives ;xpg4 style archives
;RUN: llvm-ranlib %p/xpg4.a ;RUN: cp %p/xpg4.a xpg4_copy.a
;RUN: llvm-ar t %p/xpg4.a > %t1 ;RUN: llvm-ranlib xpg4_copy.a
;RUN: llvm-ar t xpg4_copy.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2 ;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1 ;RUN: diff %t2 %t1
evenlen evenlen