From 9ad870131d59368de03b40bda41b2db695223bad Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Mon, 15 Dec 2025 13:51:05 +0000 Subject: [PATCH] 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. --- tests/mv/mv-special-1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3