* 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.
This commit is contained in:
Paul Eggert
2005-11-06 23:29:30 +00:00
parent ef9ad717ba
commit d144e7c217
2 changed files with 2 additions and 5 deletions

View File

@@ -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

View File

@@ -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