summaryrefslogtreecommitdiff
path: root/glib/tests/testing.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-08-03 13:42:57 +0100
committerSimon McVittie <smcv@collabora.com>2018-08-03 13:42:57 +0100
commitffe0402e0227808813ba0d8d279d18d3da88c704 (patch)
tree2a6c4c0ca4238e25411f690f769ea6862540c466 /glib/tests/testing.c
parent49a877764d818ffeabe065bcc37ed22fbe6b6b51 (diff)
downloadglib-ffe0402e0227808813ba0d8d279d18d3da88c704.tar.gz
testing: Assert that skipped tests cause g_test_failed()
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'glib/tests/testing.c')
-rw-r--r--glib/tests/testing.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/tests/testing.c b/glib/tests/testing.c
index 0c2cf5d2a..f2870da0c 100644
--- a/glib/tests/testing.c
+++ b/glib/tests/testing.c
@@ -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