Return value is intened to be TRUE for success, FALSE for failure.
Currently we return TRUE all the time.
Previously the test returned 0 all the time.
test_destroy_queue = dentry;
}
-static int
+static gboolean
test_case_run (GTestCase *tc)
{
gchar *old_name = test_run_name, *old_base = g_strdup (test_uri_base);
test_run_name = old_name;
g_free (test_uri_base);
test_uri_base = old_base;
- return 0;
+ return TRUE;
}
static int
if (l == n && strncmp (path, tc->name, n) == 0)
{
n_good++;
- n_bad += test_case_run (tc) != 0;
+ if (!test_case_run (tc))
+ n_bad++;
}
}
g_slist_free (reversed);