]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Work around a failing test due to an NFS-based race condition.
authorJim Meyering <jim@meyering.net>
Tue, 13 Mar 2007 18:51:47 +0000 (19:51 +0100)
committerJim Meyering <jim@meyering.net>
Tue, 13 Mar 2007 18:51:47 +0000 (19:51 +0100)
* tests/cp/sparse: Accept a report that the copy is *smaller*.

ChangeLog
tests/cp/sparse

index 267c5662c63499ff2bd1435ec670ddec9b8509e7..8ff28c10337dc917d5157e3981041dadcba1504b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-13  Jim Meyering  <jim@meyering.net>
+
+       Work around a failing test due to an NFS-based race condition.
+       * tests/cp/sparse: Accept a report that the copy is *smaller*.
+
 2007-03-12  Jim Meyering  <jim@meyering.net>
 
        Make bootstrap.conf a tiny bit more generic.
index 98d580d21344e99b94104a8b70111fc2688845f0..b2e940e45b5b73b17854a01412be8176c9c1fad1 100755 (executable)
@@ -52,6 +52,6 @@ fail=0
 cp --sparse=always sparse copy || fail=1
 
 # Ensure that the copy has the same block count as the original.
-test `stat --printf %b sparse` = `stat --printf %b copy` || fail=1
+test `stat --printf %b copy` -le `stat --printf %b sparse` || fail=1
 
 (exit $fail); exit $fail