mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
testing: Assert that skipped tests cause g_test_failed()
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
49a877764d
commit
ffe0402e02
@ -622,6 +622,10 @@ static void
|
||||
test_skip (void)
|
||||
{
|
||||
g_test_skip ("Skipped should count as passed, not failed");
|
||||
/* This function really means "the test concluded with a non-successful
|
||||
* status" rather than "the test failed": it is documented to return
|
||||
* true for skipped and incomplete tests, not just for failures. */
|
||||
g_assert_true (g_test_failed ());
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user