]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
test: avoid a test hang on Hurd
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Mar 2023 18:11:00 +0000 (18:11 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Mar 2023 18:11:00 +0000 (18:11 +0000)
* tests/cp/sparse-to-pipe.sh: Protect the cp call seen to
hang on Hurd/i686 with a timeout.
Reported By: Bruno Haible

tests/cp/sparse-to-pipe.sh

index 5dfba3f9237cfff30ed92e90009876655632f4b2..a33a7b31488e916b4015544b0cef141cd21ee784 100755 (executable)
@@ -28,7 +28,7 @@ mkfifo_or_skip_ pipe
 timeout 10 cat pipe > copy & pid=$!
 
 truncate -s1M sparse || framework_failure_
-cp sparse pipe || fail=1
+timeout 10 cp sparse pipe || fail=1
 
 # Ensure that the cat has completed before comparing.
 wait $pid