rktest icon indicating copy to clipboard operation
rktest copied to clipboard

Add FAIL macros

Open Warwolt opened this issue 2 years ago • 0 comments

It would be convenient to be able to immediately fail a test

if (some_condition) {
    FAIL_INFO("Some specific unexpected situation happened!");
}

Google Test has:

FAIL(); // fatal
ADD_FAILURE(); // non-fatal
SUCCESS(); // does nothing, just for documentation

https://google.github.io/googletest/reference/assertions.html#success-failure

Warwolt avatar Jan 23 '24 20:01 Warwolt