]> git.ipfire.org Git - thirdparty/zstd.git/commit
tests: use /dev/zero instead of /dev/random on all systems except GNU/Hurd 1235/head
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 11 Jul 2018 12:41:50 +0000 (12:41 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 11 Jul 2018 12:41:50 +0000 (12:41 +0000)
commit7ca12a1455cc47c2f178fbd5b963fa8a1e4f0e71
tree89bc2d410cc0d95ea3e769c09fc10fc2a5f2bc63
parent14a92e90fe8e149cd7a112f217ff5e3e82d20ca7
tests: use /dev/zero instead of /dev/random on all systems except GNU/Hurd

https://github.com/facebook/zstd/pull/1124 broke the test suite
on Linux.  Looks like GNU/Hurd is the only operating system where
/dev/random is available for writing by unprivileged processes.

https://github.com/facebook/zstd/pull/1222 reverted the change
introduced by https://github.com/facebook/zstd/pull/1124 for OpenBSD
only, other operating systems need that change to be reverted, too.

Fixes: 2dde9d5abaad ("Write to /dev/random for test")
Complements: 276988f7948d ("OpenBSD is unable to write to /dev/zero")
tests/playTests.sh