From: Jim Meyering Date: Tue, 13 Mar 2007 18:51:47 +0000 (+0100) Subject: Work around a failing test due to an NFS-based race condition. X-Git-Tag: COREUTILS-6_9~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24045feb85ed265e48b827c01d2f0fd7a48c1350;p=thirdparty%2Fcoreutils.git Work around a failing test due to an NFS-based race condition. * tests/cp/sparse: Accept a report that the copy is *smaller*. --- diff --git a/ChangeLog b/ChangeLog index 267c5662c6..8ff28c1033 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-13 Jim Meyering + + 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 Make bootstrap.conf a tiny bit more generic. diff --git a/tests/cp/sparse b/tests/cp/sparse index 98d580d213..b2e940e45b 100755 --- a/tests/cp/sparse +++ b/tests/cp/sparse @@ -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