]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
tests: fix non-regular file test on GNU/Hurd 4212/head
authorDiego Nieto Cid <dnietoc@gmail.com>
Tue, 10 Dec 2024 13:20:32 +0000 (10:20 -0300)
committerDiego Nieto Cid <dnietoc@gmail.com>
Tue, 10 Dec 2024 13:30:52 +0000 (10:30 -0300)
Since commit b21b03ca6 [1] the behaviour of writes to /dev/zero has been
fixed and now the non-regular file removal test no longer needs to be
done on /dev/random (which no longer works as random is not writable now).

[1] https://git.savannah.gnu.org/cgit/hurd/hurd.git/commit/?id=b21b03ca624b89caeedfe58430cea4b40317d39f

tests/playTests.sh

index 02649005147f1c6443517ddaee0b47484c554eea..692e93e89e1c180f3633d3b3dc483b1cf8ab0371 100755 (executable)
@@ -109,10 +109,7 @@ isTerminal=${isTerminal:-$detectedTerminal}
 
 isWindows=false
 INTOVOID="/dev/null"
-case "$UNAME" in
-  GNU) DEVDEVICE="/dev/random" ;;
-  *) DEVDEVICE="/dev/zero" ;;
-esac
+DEVDEVICE="/dev/zero"
 case "$OS" in
   Windows*)
     isWindows=true