From cfbf69385511d02d6a0f669cb18c4717db27d92c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 7 Nov 2005 04:03:29 +0000 Subject: [PATCH] * 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. --- tests/truncate.at | 3 ++- tests/update.at | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.44.0