testing: Assert that skipped tests cause g_test_failed()

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2018-08-03 13:42:57 +01:00
parent 49a877764d
commit ffe0402e02

View File

@ -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