Uniform TEST_*() check usage in test/ectest.c
authorNicola Tuveri <nic.tuv@gmail.com>
Mon, 9 Sep 2019 01:00:37 +0000 (04:00 +0300)
committerNicola Tuveri <nic.tuv@gmail.com>
Mon, 9 Sep 2019 11:44:47 +0000 (14:44 +0300)
commitbfed4fc8367b55e630c70cc038887ddf9b090dd6
tree55683a384b57e6b13122c2a38cda8ff95d53430f
parent65936a56461fe09e8c81bca45122af5adcfabb00
Uniform TEST_*() check usage in test/ectest.c

- Replace a `TEST_true()` with `!TEST_false()` to avoid reporting
  confusing errors
- We tend to use `if (!TEST_foo() || !TEST_bar())` and it's a bit
  confusing to switch to `if(!(TEST_foo() && TEST_bar()))`: replace it
  with the more common style

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9813)
test/ectest.c