]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid a hang on GNU/Hurd from 2019
authorPádraig Brady <P@draigBrady.com>
Sun, 1 Mar 2020 22:03:38 +0000 (22:03 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 1 Mar 2020 22:04:20 +0000 (22:04 +0000)
* tests/du/8gb.sh: Add a timeout around:
`dd bs=1 seek=8G of=big < /dev/null`

tests/du/8gb.sh

index 17f111cb086c0c2385d788dfb3c5ba1b448823d0..4d02ebf9e51435fc8a68b0729055c72019f5c130 100755 (executable)
@@ -21,7 +21,8 @@
 print_ver_ du
 require_sparse_support_
 
-dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
+# timeout to avoid hang on GNU/Hurd from 2019
+timeout 10 dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
 if test $? != 0; then
   skip_ 'cannot create a file large enough for this test; possibly
 because file offsets are only 32 bits on this file system'