mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
testing: Clarify why incomplete tests cause g_test_failed()
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
7cc5565e7c
commit
49a877764d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user