On 01/03/2020 21:55, Bruno Haible wrote:
On a GNU/Hurd from 2019, I observe one hanging test:
FAIL: tests/du/8gb (after I killed the hanging process)
and 6 test failures:
FAIL: tests/misc/env-S
FAIL: tests/misc/kill
FAIL: tests/misc/nice
FAIL: tests/split/fail
FAIL: tests/cp/parent-perm-race
FAIL: tests/dd/stats
Find the log attached.
In the test that hangs, the command
dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
produced a file that is 8 GiB (= 8589934592 bytes) large.
Adding a 'count=1' argument does not help:
dd bs=1 seek=8G of=big count=1 < /dev/null
or even
dd bs=1 seek=8G of=big count=0 < /dev/null
hangs as well.
Hangs are evil.
That should be avoided with the attached.
cheers,
Pádraig
>From ab305f746eba155188daa37a50da30032f265e51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <p...@draigbrady.com>
Date: Sun, 1 Mar 2020 22:03:38 +0000
Subject: [PATCH] tests: avoid a hang on GNU/Hurd from 2019
* tests/du/8gb.sh: Add a timeout around:
`dd bs=1 seek=8G of=big < /dev/null`
---
tests/du/8gb.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/du/8gb.sh b/tests/du/8gb.sh
index 17f111cb0..4d02ebf9e 100755
--- a/tests/du/8gb.sh
+++ b/tests/du/8gb.sh
@@ -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'
--
2.24.1