Browse Source

tests: port to Solaris diff

* 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 encounted".
Paul Eggert 14 years ago
parent
commit
7dd57ebdfa
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tests/extrac13.at

+ 6 - 6
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])