diff options
author | Timm Bäder <mail@baedert.org> | 2017-01-08 12:02:48 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-01-08 12:02:48 +0100 |
commit | f00ccd32592335d49ed59dcac9375b6fd16e9293 (patch) | |
tree | 56967cc9ecbb65b7c0ca864ed5b7f3b37e7b3fd9 /testsuite | |
parent | de6b788a9186a78b84b2d0e3d3529645b7d390fb (diff) | |
download | gtk+-f00ccd32592335d49ed59dcac9375b6fd16e9293.tar.gz |
testsuite/builder: Use g_assert_no_error to check GError
So we get a proper error message.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/builder.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c index 327bc9bc2f..24c43b6abd 100644 --- a/testsuite/gtk/builder.c +++ b/testsuite/gtk/builder.c @@ -1945,8 +1945,7 @@ test_add_objects (void) error = NULL; builder = gtk_builder_new (); ret = gtk_builder_add_objects_from_string (builder, buffer, -1, objects, &error); - g_assert (ret); - g_assert (error == NULL); + g_assert_no_error (error); obj = gtk_builder_get_object (builder, "window"); g_assert (obj == NULL); obj = gtk_builder_get_object (builder, "window2"); |