diff options
-rwxr-xr-x | tests/cp/sparse-to-pipe | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cp/sparse-to-pipe b/tests/cp/sparse-to-pipe index 4d39458e7..9bbaafa0e 100755 --- a/tests/cp/sparse-to-pipe +++ b/tests/cp/sparse-to-pipe @@ -26,6 +26,10 @@ timeout 10 cat pipe > copy & truncate -s1M sparse || framework_failure_ cp sparse pipe || fail=1 + +# Ensure that the cat has completed before comparing. +wait + cmp sparse copy || fail=1 Exit $fail |