]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/unittests: delete PASS_IF macro
authorJuliana Fajardini <jufajardini@gmail.com>
Tue, 2 Nov 2021 18:22:51 +0000 (18:22 +0000)
committerVictor Julien <victor@inliniac.net>
Sat, 6 Nov 2021 15:25:13 +0000 (16:25 +0100)
commitd581fc82b18219d9c5bef8f0e0c0c42545c7b054
treec00e162b32852083898e67ff7c6d55eeb973831e
parentf328ba527a0c0e5d437c62752b68b99d33b6ca8e
util/unittests: delete PASS_IF macro

The logic flow we want to achieve with unittests, where first we have
all FAIL statements and then just one PASS statement could become more
convoluted with the existence of the PASS_IF macro. Besides, what could
be written as a FAIL_IF might in some cases be written in not so clear
ways with the PASS_IF option available.

Also: fix inverted check values in documentation, update copyright year

Optimization: #4795
src/util-unittest.h