diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-04-12 08:30:56 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-04-12 08:30:56 -0400 |
commit | 90d187894d5d96111617fe017c41ee2ad4929b30 (patch) | |
tree | c32d3cddfffcedc3d0b01e4b65d8034f901631e1 /testsuite/reftests/reftest-snapshot.c | |
parent | 03db2690e23cf0ef4e383d28729f79b12a5c83c1 (diff) | |
download | gtk+-90d187894d5d96111617fe017c41ee2ad4929b30.tar.gz |
testsuite: Reduce use of g_assert
Stop using g_assert() in the reftests.
Diffstat (limited to 'testsuite/reftests/reftest-snapshot.c')
-rw-r--r-- | testsuite/reftests/reftest-snapshot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c index de08c0b026..7a7a77fd96 100644 --- a/testsuite/reftests/reftest-snapshot.c +++ b/testsuite/reftests/reftest-snapshot.c @@ -209,7 +209,7 @@ reftest_inhibit_snapshot (void) G_MODULE_EXPORT void reftest_uninhibit_snapshot (void) { - g_assert (inhibit_count > 0); + g_assert_true (inhibit_count > 0); inhibit_count--; } @@ -260,7 +260,7 @@ snapshot_widget (GtkWidget *widget) GdkPaintable *paintable; cairo_surface_t *surface; - g_assert (gtk_widget_get_realized (widget)); + g_assert_true (gtk_widget_get_realized (widget)); loop = g_main_loop_new (NULL, FALSE); @@ -304,7 +304,7 @@ reftest_snapshot_ui_file (const char *ui_file) g_assert_no_error (error); window = builder_get_toplevel (builder); g_object_unref (builder); - g_assert (window); + g_assert_true (window); gtk_widget_show (window); |