summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-09-30 10:41:58 -0400
committerColin Walters <walters@verbum.org>2011-09-30 10:43:08 -0400
commite17c09749c23edbd928db19a8162484ddb6299b8 (patch)
tree81c2d25c79d115f08ed198eca9239300d8a5227d
parente9a83d543e13b422762ed1dd06e6e0d37568f776 (diff)
downloadgobject-introspection-e17c09749c23edbd928db19a8162484ddb6299b8.tar.gz
gitypelibtest: Remove test on TestStructE size
It's redundant since we're already checking that it's equal to GValue, and a problem is that padding may break exact assertions on the size. https://bugzilla.gnome.org/show_bug.cgi?id=660338
-rw-r--r--tests/repository/gitypelibtest.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/repository/gitypelibtest.c b/tests/repository/gitypelibtest.c
index 8356d930..b10e6a73 100644
--- a/tests/repository/gitypelibtest.c
+++ b/tests/repository/gitypelibtest.c
@@ -107,32 +107,6 @@ test_enum_and_flags_static_methods(GIRepository *repo)
}
static void
-test_size_of_struct_with_array_of_anon_unions(GIRepository *repo)
-{
- GITypelib *ret;
- GError *error = NULL;
- GIBaseInfo *struct_info;
-
- ret = g_irepository_require (repo, "Regress", NULL, 0, &error);
- if (!ret)
- g_error ("%s", error->message);
-
- struct_info = g_irepository_find_by_name (repo, "Regress", "TestStructE");
- if (!struct_info)
- g_error ("Could not find Regress.TestStructE");
- /* need to use >=, there might be padding */
- g_assert_cmpuint (g_struct_info_get_size (struct_info),
- >=, sizeof (GType) + 2*sizeof (gint64));
- g_base_info_unref (struct_info);
-
- struct_info = g_irepository_find_by_name (repo, "GObject", "Value");
- if (!struct_info)
- g_error ("Could not find GObject.Value");
- g_assert_cmpuint (g_struct_info_get_size (struct_info), ==, sizeof (GValue));
- g_base_info_unref (struct_info);
-}
-
-static void
test_is_pointer_for_struct_arg (GIRepository *repo)
{
GITypelib *ret;
@@ -182,7 +156,6 @@ main(int argc, char **argv)
/* do tests */
test_enum_and_flags_cidentifier (repo);
test_enum_and_flags_static_methods (repo);
- test_size_of_struct_with_array_of_anon_unions (repo);
test_is_pointer_for_struct_arg (repo);
exit(0);