]> Dogcows Code - chaz/tar/commitdiff
* tests/truncate.at: Create files whose time stamps must fall on
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Nov 2005 04:03:29 +0000 (04:03 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Nov 2005 04:03:29 +0000 (04:03 +0000)
1-second boundaries.  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 f5fc4bad3745bd88deddd21151458a43e9656811..676d7945b391263ce99abec9ffbfae0f214c4d33 100644 (file)
@@ -31,7 +31,8 @@ AT_KEYWORDS([truncated files])
 AT_TAR_CHECK([
 genfile --file foo --length 50000k
 genfile --file baz
-genfile --run 'tar -H pax -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
+touch -t 197001030000 baz # avoid subsecond resolution
+genfile --run 'tar -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
index d7f4fbedbee0dffcddc802db7425b4b916572309..56aecf7b665f4dd58fea0ac83a87113dcdd6ee65 100644 (file)
@@ -31,8 +31,9 @@ AT_TAR_CHECK([
 mkdir directory
 genfile --length 10240 --pattern zeros --file directory/file1
 genfile --length 10240 --pattern default --file directory/file2
+touch -t 197001030000 directory directory/* # avoid subsecond resolution
 
-tar -H pax -cf archive directory || exit 1
+tar cf archive directory || exit 1
 echo separator
 tar uf archive directory || exit 1
 echo separator
This page took 0.023463 seconds and 4 git commands to generate.