]> Dogcows Code - chaz/tar/commitdiff
* tests/truncate.at: Use -H pax to preserve full time stamp resolution.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Nov 2005 23:29:30 +0000 (23:29 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Nov 2005 23:29:30 +0000 (23:29 +0000)
This prevents tests from failing on hosts like Solaris 8 that have
nanosecond-resolution file time stamps.
* tests/update.at: Likewise.

tests/truncate.at
tests/update.at

index 0904b03b26b3f35b9684da60d824a3c37d22701d..f5fc4bad3745bd88deddd21151458a43e9656811 100644 (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
-
-
index 5c2f748a0db5445685de2b89fe19f038abb15ddf..d7f4fbedbee0dffcddc802db7425b4b916572309 100644 (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
-
This page took 0.023016 seconds and 4 git commands to generate.