testFail

Indicates that a test failed. This function can be called multiple times from the same test. You can use this function if your test failed in a recoverable way.

Do not use this function if the failure of a test could cause other tests to malfunction.

Calling this function will not stop the test from running, you need to return from the test function yourself. So you can produce additional diagnostic messages or even continue running the test.

If not called from inside a test, this function does nothing.

Note that unlike glib.global.testSkip and glib.global.testIncomplete, this function does not log a message alongside the test failure. If details of the test failure are available, either log them with glib.global.testMessage before glib.global.testFail, or use glib.global.testFailPrintf instead.

void
testFail
()