testing: Clarify why incomplete 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:38 +01:00
parent 7cc5565e7c
commit 49a877764d

View File

@ -648,7 +648,10 @@ test_incomplete (void)
if (g_test_subprocess ())
{
g_test_incomplete ("not done");
g_assert (g_test_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 ());
return;
}
g_test_trap_subprocess (NULL, 0, 0);