failed


Description:

[ Version ( since = "2.38" ) ]
public bool failed ()

Returns whether a test has already failed.

This will be the case when [func@GLib.test_fail], [func@GLib.test_incomplete] or [func@GLib.test_skip] have been called, but also if an assertion has failed.

This can be useful to return early from a test if continuing after a failed assertion might be harmful.

The return value of this function is only meaningful if it is called from inside a test function.

Returns:

true if the test has failed


Namespace: GLib.Test
Package: glib-2.0