mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
girepository: Add gthash test to tests and run it
This commit is contained in:
parent
0c9fe8156a
commit
8a4755106d
@ -131,6 +131,7 @@ gi_typelib_hash_builder_prepare (GITypelibHashBuilder *builder)
|
|||||||
builder->dirmap_offset = ALIGN_VALUE (offset, 4);
|
builder->dirmap_offset = ALIGN_VALUE (offset, 4);
|
||||||
builder->packed_size = builder->dirmap_offset + (num_elts * sizeof(guint16));
|
builder->packed_size = builder->dirmap_offset + (num_elts * sizeof(guint16));
|
||||||
out:
|
out:
|
||||||
|
g_strfreev (strs);
|
||||||
cmph_config_destroy (config);
|
cmph_config_destroy (config);
|
||||||
cmph_io_vector_adapter_destroy (io);
|
cmph_io_vector_adapter_destroy (io);
|
||||||
return builder->buildable;
|
return builder->buildable;
|
||||||
|
@ -53,6 +53,8 @@ test_build_retrieve (void)
|
|||||||
g_assert (gi_typelib_hash_search (buf, "ZLibDecompressor", 4) == 42);
|
g_assert (gi_typelib_hash_search (buf, "ZLibDecompressor", 4) == 42);
|
||||||
g_assert (gi_typelib_hash_search (buf, "VolumeMonitor", 4) == 9);
|
g_assert (gi_typelib_hash_search (buf, "VolumeMonitor", 4) == 9);
|
||||||
g_assert (gi_typelib_hash_search (buf, "FileMonitorFlags", 4) == 31);
|
g_assert (gi_typelib_hash_search (buf, "FileMonitorFlags", 4) == 31);
|
||||||
|
|
||||||
|
g_free (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
@ -3,6 +3,7 @@ girepository_tests = {}
|
|||||||
# Some GIR files are needed to test against
|
# Some GIR files are needed to test against
|
||||||
if enable_gir
|
if enable_gir
|
||||||
girepository_tests += {
|
girepository_tests += {
|
||||||
|
'gthash' : {},
|
||||||
'repository' : {
|
'repository' : {
|
||||||
'depends': [glib_gir, gobject_gir],
|
'depends': [glib_gir, gobject_gir],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user