forked from AuroraMiddleware/gtk
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:
parent
7ccb9db79e
commit
2b807e574d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user