"Sergey Poznyakoff" <[EMAIL PROTECTED]> writes:

> If they break due to nanoseconds resolution, the test logic
> should be fixed, instead of abriging the set of tested formats
> to one.

OK, thanks, I didn't know about the 7th argument.  I installed the
following patch instead.

2005-11-06  Paul Eggert  <[EMAIL PROTECTED]>

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

Index: tests/truncate.at
===================================================================
RCS file: /cvsroot/tar/tar/tests/truncate.at,v
retrieving revision 1.2
diff -p -u -r1.2 truncate.at
--- tests/truncate.at   15 May 2005 03:59:11 -0000      1.2
+++ tests/truncate.at   7 Nov 2005 04:01:44 -0000
@@ -31,6 +31,7 @@ AT_KEYWORDS([truncated files])
 AT_TAR_CHECK([
 genfile --file foo --length 50000k
 genfile --file baz
+touch -t 197001030000 baz # avoid subsecond resolution
 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k 
--truncate foo
 echo separator
 sleep 1
@@ -49,5 +50,3 @@ tar: Error exit delayed from previous er
 ])
 
 AT_CLEANUP
-
-
Index: tests/update.at
===================================================================
RCS file: /cvsroot/tar/tar/tests/update.at,v
retrieving revision 1.2
diff -p -u -r1.2 update.at
--- tests/update.at     1 Aug 2005 06:22:43 -0000       1.2
+++ tests/update.at     7 Nov 2005 04:01:44 -0000
@@ -31,6 +31,7 @@ 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 cf archive directory || exit 1
 echo separator
@@ -47,4 +48,3 @@ directory/file2
 ])
 
 AT_CLEANUP
-


_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar

Reply via email to