summaryrefslogtreecommitdiff
path: root/tests/modules.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-07-18 11:56:45 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-07-18 11:58:17 -0300
commit238ec80d11c9482dc25d2970985028ef72fe5075 (patch)
tree03c27f089f5600b6475dbeb1ddfdb523303113ed /tests/modules.c
parentf34c5377423c46976342f33341dac5c08ca6b26e (diff)
downloadglade-238ec80d11c9482dc25d2970985028ef72fe5075.tar.gz
Tests: use g_assert_true() instead of g_assert()
g_assert() should not be used in unit tests because it can be turned off in final releases of code by defining G_DISABLE_ASSERT. Fix issue #460 "3.37.0: test suite fails because glade uses incorrectly asserts in test units"
Diffstat (limited to 'tests/modules.c')
-rw-r--r--tests/modules.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modules.c b/tests/modules.c
index ac087988..53f17e72 100644
--- a/tests/modules.c
+++ b/tests/modules.c
@@ -11,15 +11,15 @@ test_object_class (gconstpointer data)
GladeWidget *widget;
GObject *object;
- g_assert (GLADE_IS_WIDGET_ADAPTOR (adaptor));
+ g_assert_true (GLADE_IS_WIDGET_ADAPTOR (adaptor));
widget = glade_widget_adaptor_create_widget (adaptor, FALSE, NULL);
- g_assert (GLADE_IS_WIDGET (widget));
+ g_assert_true (GLADE_IS_WIDGET (widget));
object = glade_widget_get_object (widget);
- g_assert (G_IS_OBJECT (object));
+ g_assert_true (G_IS_OBJECT (object));
- g_assert (g_strcmp0 (G_OBJECT_TYPE_NAME (object), data) == 0);
+ g_assert_true (g_strcmp0 (G_OBJECT_TYPE_NAME (object), data) == 0);
g_object_unref (widget);
}