]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: mv: add timeout protection when moving fifos
authorPádraig Brady <P@draigBrady.com>
Mon, 15 Dec 2025 13:51:05 +0000 (13:51 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 15 Dec 2025 13:54:25 +0000 (13:54 +0000)
* tests/mv/mv-special-1.sh: Implementations could potentially hang
interacting with fifos, so wrap with timeout.

tests/mv/mv-special-1.sh

index d07a1ceac701eeb570c050cba2f2578004db1891..03667b82ab8f63120dd20b9219456922d8f79610 100755 (executable)
@@ -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