mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
tests: Remove assertion that unused buckets should have NULL key/value
We still clear the key/value on removal, but since we're growing the arrays with realloc() now, we can't guarantee that incoming memory is cleared. There's no reason it should be either, since we check the hashes array (which is always in a defined state) before accessing the other arrays.
This commit is contained in:
parent
9986395638
commit
eed0f182fd
@ -1414,12 +1414,7 @@ check_data (GHashTable *h)
|
||||
|
||||
for (i = 0; i < h->size; i++)
|
||||
{
|
||||
if (h->hashes[i] < 2)
|
||||
{
|
||||
g_assert (fetch_key_or_value (h->keys, i, h->have_big_keys) == NULL);
|
||||
g_assert (fetch_key_or_value (h->values, i, h->have_big_values) == NULL);
|
||||
}
|
||||
else
|
||||
if (h->hashes[i] >= 2)
|
||||
{
|
||||
g_assert_cmpint (h->hashes[i], ==, h->hash_func (fetch_key_or_value (h->keys, i, h->have_big_keys)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user