]> git.ipfire.org Git - thirdparty/bacula.git/commit
unittest: new rok() is ok or display the label and "return 1;"
authorAlain Spineux <alain@baculasystems.com>
Wed, 26 Feb 2020 17:53:47 +0000 (18:53 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
commitf218a016c70dfca1cfcad55cd9104914006630b9
treebaac95db311722d276cf1251ed2ccf5f5b6cc5c9
parent47868ce44765b887d8a2e7dde626b1940d0ccb79
unittest: new rok() is ok or display the label and "return 1;"

avoid the display of the OK message when it succeed
rok() is useful to skip tests that follow and depend of the success
of the test
I like to use it for test that should never fail
bacula/src/lib/unittests.h