]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed `!` tests 1337/head
authorYann Collet <cyan@fb.com>
Tue, 25 Sep 2018 22:57:28 +0000 (15:57 -0700)
committerYann Collet <cyan@fb.com>
Tue, 25 Sep 2018 22:57:28 +0000 (15:57 -0700)
commit63abaf217109421b97ab264600d77d5b0ee2787b
tree864edf04f8464d7e1b3ac935d003c6a50a08d653
parent9bb6c15f7966f59d001f782f087484a414eba570
fixed `!` tests

Sometimes, it's necessary to test that a certain command fail, as expected.
Such failure is actually a success, and must not stop the flow of tests.

Several tests were prefixed with `!` to invert return code.
This does not work : it effectively makes the tests pass no matter what.

Use instead function die(), which is meant to trap successes, and transform them into errors.
tests/playTests.sh