Explorar el Código

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

Paul Eggert hace 19 años
padre
commit
d144e7c217
Se han modificado 2 ficheros con 2 adiciones y 5 borrados
  1. 1 3
      tests/truncate.at
  2. 1 2
      tests/update.at

+ 1 - 3
tests/truncate.at

@@ -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 errors
 ])
 
 AT_CLEANUP
-
-

+ 1 - 2
tests/update.at

@@ -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
-