From: Pádraig Brady
Date: Mon, 15 Dec 2025 13:51:05 +0000 (+0000) Subject: tests: mv: add timeout protection when moving fifos X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad870131d59368de03b40bda41b2db695223bad;p=thirdparty%2Fcoreutils.git tests: mv: add timeout protection when moving fifos * tests/mv/mv-special-1.sh: Implementations could potentially hang interacting with fifos, so wrap with timeout. --- diff --git a/tests/mv/mv-special-1.sh b/tests/mv/mv-special-1.sh index d07a1ceac7..03667b82ab 100755 --- a/tests/mv/mv-special-1.sh +++ b/tests/mv/mv-special-1.sh @@ -36,7 +36,7 @@ touch $dir/a/b/c/file1 $dir/d/e/f/file2 || framework_failure_ # from an OpenBSD system, the above mknod fails. # It's not worth making an exception any more. -mv --verbose $null $dir "$other_partition_tmpdir" > out || fail=1 +timeout 60 mv --verbose $null $dir "$other_partition_tmpdir" > out || fail=1 # Make sure the files are gone. test -p $null && fail=1 test -d $dir && fail=1