]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed playTests.sh for minGW
authorYann Collet <cyan@fb.com>
Wed, 26 Dec 2018 23:19:09 +0000 (15:19 -0800)
committerYann Collet <cyan@fb.com>
Wed, 26 Dec 2018 23:19:09 +0000 (15:19 -0800)
commitae1d6bd48ec3d7ae81de336c2bc6fc1abac74f5e
tree81d2c189e306e3db2abc55c530e791c3c6cc7c3c
parent1fdba696ca1cabfe218815e2b000d444ed0408f2
fixed playTests.sh for minGW

On Windows, the equivalent of `/dev/null` is `NUL`.
When tests are run under msys2/minGW,
the environment identifies itself as Windows,
hence the script uses `NUL` instead of `/dev/null`
but the environment will consider `NUL` to be a regular file name.
Consequently, `NUL` will be overwritten during tests,
triggering an error.

This patch uses flag `-f` to force such overwrite
passing the test.
programs/windres/zstd32.res
programs/windres/zstd64.res
tests/playTests.sh