forked from AuroraMiddleware/gtk
testsuite/builder: Use g_assert_no_error to check GError
So we get a proper error message.
This commit is contained in:
parent
de6b788a91
commit
f00ccd3259
@ -1945,8 +1945,7 @@ test_add_objects (void)
|
|||||||
error = NULL;
|
error = NULL;
|
||||||
builder = gtk_builder_new ();
|
builder = gtk_builder_new ();
|
||||||
ret = gtk_builder_add_objects_from_string (builder, buffer, -1, objects, &error);
|
ret = gtk_builder_add_objects_from_string (builder, buffer, -1, objects, &error);
|
||||||
g_assert (ret);
|
g_assert_no_error (error);
|
||||||
g_assert (error == NULL);
|
|
||||||
obj = gtk_builder_get_object (builder, "window");
|
obj = gtk_builder_get_object (builder, "window");
|
||||||
g_assert (obj == NULL);
|
g_assert (obj == NULL);
|
||||||
obj = gtk_builder_get_object (builder, "window2");
|
obj = gtk_builder_get_object (builder, "window2");
|
||||||
|
Loading…
Reference in New Issue
Block a user