From: Paul Eggert Date: Mon, 7 Nov 2005 04:03:29 +0000 (+0000) Subject: * tests/truncate.at: Create files whose time stamps must fall on X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=cfbf69385511d02d6a0f669cb18c4717db27d92c;p=chaz%2Ftar * tests/truncate.at: Create files whose time stamps must fall on 1-second boundaries. 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 f5fc4ba..676d794 100644 --- a/tests/truncate.at +++ b/tests/truncate.at @@ -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 diff --git a/tests/update.at b/tests/update.at index d7f4fbe..56aecf7 100644 --- a/tests/update.at +++ b/tests/update.at @@ -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