mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 12:53:07 +02: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 ())
|
if (g_test_subprocess ())
|
||||||
{
|
{
|
||||||
g_test_incomplete ("not done");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
g_test_trap_subprocess (NULL, 0, 0);
|
g_test_trap_subprocess (NULL, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user