From f461ead5990b9a2e25adbf0c0bf99d826eebfe90 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 27 Nov 2004 06:27:30 +0000 Subject: [PATCH] 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 --- test/Archive/ranlib_GNU.ll | 2 +- test/Archive/ranlib_MacOSX.ll | Bin 408 -> 404 bytes test/Archive/ranlib_SVR4.ll | 2 +- test/Archive/ranlib_xpg4.ll | 2 +- test/Archive/toc_GNU.ll | 2 +- test/Archive/toc_MacOSX.ll | Bin 349 -> 345 bytes test/Archive/toc_SVR4.ll | 2 +- test/Archive/toc_xpg4.ll | 2 +- 8 files changed, 6 insertions(+), 6 deletions(-) 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 dda2f0b36e1a4c0697ea74efba6adebb75bad582..50fe5cd38a11f277e5c096e975d76991380e35f5 100644 GIT binary patch delta 23 ecmbQiJcW4!HzRj?QEGvLZkd95ob_ZW#yS8`YzB7# delta 27 icmbQjJcD@yHzR*>YKnqxs)D+HoVA{oe#&Gq#yS9Hf(H%& 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 efc2224ef2ed78fa5e8d6a49a68f178a22dcba29..331816bddb098d81046382b9576e65a60039c4aa 100644 GIT binary patch delta 21 ccmcc1bdzbq1@82s)B*+FG6nTG>xuX40A0!mWdHyG delta 25 gcmcb~beCzu1^(jH6b0Q>1$F&6YdtOfl!>?N0C)Ka`~Uy| 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 -- 2.34.1