[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [PATCH] tests: port to Solaris diff
From: |
Paul Eggert |
Subject: |
[Bug-tar] [PATCH] tests: port to Solaris diff |
Date: |
Tue, 26 Oct 2010 18:14:21 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11) Gecko/20101006 Thunderbird/3.1.5 |
I found a porting bug when testing on Solaris with all GNU tools out
of the PATH, and pushed the following patch:
* tests/extrac13.at: Don't assume that "diff -c" outputs nothing
when there are no differences. This is not true on Solaris,
where it outputs "No differences encountered".
---
tests/extrac13.at | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/extrac13.at b/tests/extrac13.at
index 2abed72..7c03e02 100644
--- a/tests/extrac13.at
+++ b/tests/extrac13.at
@@ -33,20 +33,20 @@ echo target1 >target1
tar -cf archive.tar -C src . &&
tar -xf archive.tar -C dst1 --warning=no-timestamp &&
-diff -c src/file1 dst1/file1 &&
-diff -c target1 dst1/target1
+diff src/file1 dst1/file1 &&
+diff target1 dst1/target1
ln -s target1 dst2/file1
echo target1 >dst2/target1
tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
-diff -c src/file1 dst2/file1 &&
-diff -c target1 dst2/target1
+diff src/file1 dst2/file1 &&
+diff target1 dst2/target1
ln -s target1 dst3/file1
echo target1 >dst3/target1
tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
-diff -c src/file1 dst3/file1 &&
-diff -c src/file1 dst3/target1
+diff src/file1 dst3/file1 &&
+diff src/file1 dst3/target1
],
[0],[],[],[],[],[gnu])
--
1.7.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-tar] [PATCH] tests: port to Solaris diff,
Paul Eggert <=