diff options
author | Simon McVittie <smcv@collabora.com> | 2018-08-03 13:42:57 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-08-03 13:42:57 +0100 |
commit | ffe0402e0227808813ba0d8d279d18d3da88c704 (patch) | |
tree | 2a6c4c0ca4238e25411f690f769ea6862540c466 /glib/tests/testing.c | |
parent | 49a877764d818ffeabe065bcc37ed22fbe6b6b51 (diff) | |
download | glib-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.c | 4 |
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 |