bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] CVS tar "make check" failures on files with ns-resolution time


From: Paul Eggert
Subject: [Bug-tar] CVS tar "make check" failures on files with ns-resolution time stamps
Date: Sun, 06 Nov 2005 15:31:38 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed the following patch to fix two "make check" failures on
Solaris 8 and OpenBSD 3.4.  The problem was that I was running on
hosts with nanosecond-resolution time stamps, but the tests assume
file systems with 1-second-resolution time stamps.

2005-11-06  Paul Eggert  <address@hidden>

        * 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.

--- tests/truncate.at   15 May 2005 03:59:11 -0000      1.2
+++ tests/truncate.at   6 Nov 2005 23:26:43 -0000
@@ -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 er
 ])
 
 AT_CLEANUP
-
-
--- tests/update.at     1 Aug 2005 06:22:43 -0000       1.2
+++ tests/update.at     6 Nov 2005 23:26:43 -0000
@@ -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
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]