mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Make the g_test_add macro work with gcc 4.3
2008-02-10 Matthias Clasen <mclasen@redhat.com> * glib/gtestutils.h: Make the g_test_add macro work with gcc 4.3 * tests/gobject/paramspec-test.c: Adapt to recent changes in GParamGType initialization. svn path=/trunk/; revision=6500
This commit is contained in:
committed by
Matthias Clasen
parent
92aaf63ec0
commit
f5542c90e3
@@ -193,13 +193,13 @@ test_param_spec_gtype (void)
|
||||
G_TYPE_PARAM, G_PARAM_READWRITE);
|
||||
|
||||
g_value_init (&value, G_TYPE_GTYPE);
|
||||
g_value_set_gtype (&value, G_TYPE_NONE);
|
||||
g_value_set_gtype (&value, G_TYPE_PARAM);
|
||||
|
||||
g_assert (g_param_value_defaults (pspec, &value));
|
||||
|
||||
g_value_set_gtype (&value, G_TYPE_INT);
|
||||
modified = g_param_value_validate (pspec, &value);
|
||||
g_assert (modified && g_value_get_gtype (&value) == G_TYPE_NONE);
|
||||
g_assert (modified && g_value_get_gtype (&value) == G_TYPE_PARAM);
|
||||
|
||||
g_value_set_gtype (&value, G_TYPE_PARAM_INT);
|
||||
modified = g_param_value_validate (pspec, &value);
|
||||
|
Reference in New Issue
Block a user