gtestutils: skipping a test should count as success, not failure

In particular, the test program as a whole should exit with status 0
if you skipped some tests but did not fail any.

https://bugzilla.gnome.org/show_bug.cgi?id=720263
This commit is contained in:
Dan Winship
2013-12-11 16:32:11 +01:00
parent c300079f13
commit 8c188fc9e5
2 changed files with 10 additions and 1 deletions

View File

@@ -2117,7 +2117,8 @@ test_case_run (GTestCase *tc)
g_free (test_uri_base);
test_uri_base = old_base;
return success == G_TEST_RUN_SUCCESS;
return (success == G_TEST_RUN_SUCCESS ||
success == G_TEST_RUN_SKIPPED);
}
static int