From: Paul Eggert Date: Sun, 6 Nov 2005 23:29:30 +0000 (+0000) Subject: * tests/truncate.at: Use -H pax to preserve full time stamp resolution. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=d144e7c217cdd546829dee36bac7d477a9135942;p=chaz%2Ftar * tests/truncate.at: Use -H pax to preserve full time stamp resolution. This prevents tests from failing on hosts like Solaris 8 that have nanosecond-resolution file time stamps. * tests/update.at: Likewise. --- diff --git a/tests/truncate.at b/tests/truncate.at index 0904b03..f5fc4ba 100644 --- a/tests/truncate.at +++ b/tests/truncate.at @@ -31,7 +31,7 @@ AT_KEYWORDS([truncated files]) AT_TAR_CHECK([ genfile --file foo --length 50000k genfile --file baz -genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo +genfile --run 'tar -H pax -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo echo separator sleep 1 dd if=/dev/zero of=foo bs=1k seek=49995 count=5 >/dev/null 2>&1 @@ -49,5 +49,3 @@ tar: Error exit delayed from previous errors ]) AT_CLEANUP - - diff --git a/tests/update.at b/tests/update.at index 5c2f748..d7f4fbe 100644 --- a/tests/update.at +++ b/tests/update.at @@ -32,7 +32,7 @@ mkdir directory genfile --length 10240 --pattern zeros --file directory/file1 genfile --length 10240 --pattern default --file directory/file2 -tar cf archive directory || exit 1 +tar -H pax -cf archive directory || exit 1 echo separator tar uf archive directory || exit 1 echo separator @@ -47,4 +47,3 @@ directory/file2 ]) AT_CLEANUP -