tests: Make the parser fail without assertions

Use the new g_test_fail() function. This way, the testsuite usually
doesn't crash, but actually finishes.
This commit is contained in:
Benjamin Otte 2011-04-14 13:48:06 +02:00
parent 7ccb9db79e
commit 2b807e574d

View File

@ -193,7 +193,7 @@ test_css_file (GFile *file)
if (diff && diff[0])
{
g_test_message ("%s", diff);
g_assert_not_reached ();
g_test_fail ();
}
g_free (css);
@ -209,13 +209,13 @@ test_css_file (GFile *file)
if (diff && diff[0])
{
g_test_message ("%s", diff);
g_assert_not_reached ();
g_test_fail ();
}
}
else if (errors->str[0])
{
g_test_message ("Unexpected errors:\n%s", errors->str);
g_assert_not_reached ();
g_test_fail ();
}
g_free (errors_file);