From: Diego Nieto Cid Date: Tue, 10 Dec 2024 13:20:32 +0000 (-0300) Subject: tests: fix non-regular file test on GNU/Hurd X-Git-Tag: v1.5.7^2~52^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4212%2Fhead;p=thirdparty%2Fzstd.git tests: fix non-regular file test on GNU/Hurd 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 --- diff --git a/tests/playTests.sh b/tests/playTests.sh index 026490051..692e93e89 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -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