>From 950e84c182979aa9f5a6f101ba96800fe3651fdf Mon Sep 17 00:00:00 2001
From: Gilles Espinasse <g.esp@free.fr>
Date: Fri, 18 Feb 2011 13:25:56 +0100
Subject: [PATCH] Fix unreliable sparse-to-pipe test on cmp on debian 2.6.26 kernel
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

As recommended by Pádraig Brady, tested to work with wait instead of dd fdatasync.

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
---
 tests/cp/sparse-to-pipe |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/cp/sparse-to-pipe b/tests/cp/sparse-to-pipe
index 4d39458..0d5e27c 100755
--- a/tests/cp/sparse-to-pipe
+++ b/tests/cp/sparse-to-pipe
@@ -26,6 +26,7 @@ timeout 10 cat pipe > copy &
 
 truncate -s1M sparse || framework_failure_
 cp sparse pipe || fail=1
+wait # needed on debian 2.6.26-2-686
 cmp sparse copy || fail=1
 
 Exit $fail
-- 
1.7.3.4

