summaryrefslogtreecommitdiff
path: root/testsuite/gtk/floating.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-12 16:12:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-04-12 21:22:46 -0400
commit8c156e6b80b32c751ee38f4a98c1889c2750bbb5 (patch)
tree9d4992d6211e0bfd23ba1e1e12b30c33564f0930 /testsuite/gtk/floating.c
parent4d1075a082780dc0be80c0e69e3a825270b6a704 (diff)
downloadgtk+-8c156e6b80b32c751ee38f4a98c1889c2750bbb5.tar.gz
testsuite: Reduce the use of g_assert
Stop using g_assert() in the gtk tests.
Diffstat (limited to 'testsuite/gtk/floating.c')
-rw-r--r--testsuite/gtk/floating.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/gtk/floating.c b/testsuite/gtk/floating.c
index 89add67f49..08f2d7b01b 100644
--- a/testsuite/gtk/floating.c
+++ b/testsuite/gtk/floating.c
@@ -29,20 +29,20 @@ floating_tests (void)
GtkWidget *widget = g_object_new (GTK_TYPE_LABEL, NULL);
g_object_connect (widget, "signal::destroy", destroy, NULL, NULL);
- g_assert (g_object_is_floating (widget));
+ g_assert_true (g_object_is_floating (widget));
g_object_ref_sink (widget);
- g_assert (!g_object_is_floating (widget));
+ g_assert_false (g_object_is_floating (widget));
g_object_force_floating (G_OBJECT (widget));
- g_assert (g_object_is_floating (widget));
+ g_assert_true (g_object_is_floating (widget));
g_object_ref_sink (widget);
- g_assert (!g_object_is_floating (widget));
+ g_assert_false (g_object_is_floating (widget));
- g_assert (!destroyed);
+ g_assert_false (destroyed);
g_object_unref (widget);
- g_assert (destroyed);
+ g_assert_true (destroyed);
}
int