From: Reid Spencer Date: Sat, 27 Nov 2004 06:27:30 +0000 (+0000) Subject: Use grep instead of sed because on Solaris sed doesn't copy null bytes and X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=f461ead5990b9a2e25adbf0c0bf99d826eebfe90 Use grep instead of sed because on Solaris sed doesn't copy null bytes and it needs to in order for the bug in MacOSX archives to be tested correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Archive/ranlib_GNU.ll b/test/Archive/ranlib_GNU.ll index ac63989c79b..289303a585d 100644 --- a/test/Archive/ranlib_GNU.ll +++ b/test/Archive/ranlib_GNU.ll @@ -4,7 +4,7 @@ ;RUN: cp %p/GNU.a %t.GNU.a ;RUN: llvm-ranlib %t.GNU.a ;RUN: llvm-ar t %t.GNU.a > %t1 -;RUN: sed -e '/^;.*/d' %s >%t2 +;RUN: grep -v '^;' %s >%t2 ;RUN: diff %t2 %t1 evenlen oddlen diff --git a/test/Archive/ranlib_MacOSX.ll b/test/Archive/ranlib_MacOSX.ll index dda2f0b36e1..50fe5cd38a1 100644 Binary files a/test/Archive/ranlib_MacOSX.ll and b/test/Archive/ranlib_MacOSX.ll differ diff --git a/test/Archive/ranlib_SVR4.ll b/test/Archive/ranlib_SVR4.ll index a7da63d0318..e1cd79b8dde 100644 --- a/test/Archive/ranlib_SVR4.ll +++ b/test/Archive/ranlib_SVR4.ll @@ -4,7 +4,7 @@ ;RUN: cp %p/SVR4.a %t.SVR4.a ;RUN: llvm-ranlib %t.SVR4.a ;RUN: llvm-ar t %t.SVR4.a > %t1 -;RUN: sed -e '/^;.*/d' %s >%t2 +;RUN: grep -v '^;' %s >%t2 ;RUN: diff %t2 %t1 evenlen oddlen diff --git a/test/Archive/ranlib_xpg4.ll b/test/Archive/ranlib_xpg4.ll index 9f8aca0836d..f36c93c6c94 100644 --- a/test/Archive/ranlib_xpg4.ll +++ b/test/Archive/ranlib_xpg4.ll @@ -4,7 +4,7 @@ ;RUN: cp %p/xpg4.a %t.xpg4.a ;RUN: llvm-ranlib %t.xpg4.a ;RUN: llvm-ar t %t.xpg4.a > %t1 -;RUN: sed -e '/^;.*/d' %s >%t2 +;RUN: grep -v '^;' %s >%t2 ;RUN: diff %t2 %t1 evenlen oddlen diff --git a/test/Archive/toc_GNU.ll b/test/Archive/toc_GNU.ll index f1595635274..3aeded259aa 100644 --- a/test/Archive/toc_GNU.ll +++ b/test/Archive/toc_GNU.ll @@ -2,7 +2,7 @@ ;This test just makes sure that llvm-ar can generate a table of contents for ;GNU style archives ;RUN: llvm-ar t %p/GNU.a > %t1 -;RUN: sed -e '/^;.*/d' %s >%t2 +;RUN: grep -v '^;' %s >%t2 ;RUN: diff %t2 %t1 evenlen oddlen diff --git a/test/Archive/toc_MacOSX.ll b/test/Archive/toc_MacOSX.ll index efc2224ef2e..331816bddb0 100644 Binary files a/test/Archive/toc_MacOSX.ll and b/test/Archive/toc_MacOSX.ll differ diff --git a/test/Archive/toc_SVR4.ll b/test/Archive/toc_SVR4.ll index 589d34c52b7..9f8bdba207d 100644 --- a/test/Archive/toc_SVR4.ll +++ b/test/Archive/toc_SVR4.ll @@ -2,7 +2,7 @@ ;This test just makes sure that llvm-ar can generate a table of contents for ;SVR4 style archives ;RUN: llvm-ar t %p/SVR4.a > %t1 -;RUN: sed -e '/^;.*/d' %s >%t2 +;RUN: grep -v '^;' %s >%t2 ;RUN: diff %t2 %t1 evenlen oddlen diff --git a/test/Archive/toc_xpg4.ll b/test/Archive/toc_xpg4.ll index 1415421dd38..f2984e27d7e 100644 --- a/test/Archive/toc_xpg4.ll +++ b/test/Archive/toc_xpg4.ll @@ -2,7 +2,7 @@ ;This test just makes sure that llvm-ar can generate a table of contents for ;xpg4 style archives ;RUN: llvm-ar t %p/xpg4.a > %t1 -;RUN: sed -e '/^;.*/d' %s >%t2 +;RUN: grep -v '^;' %s >%t2 ;RUN: diff %t2 %t1 evenlen oddlen