mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Drop a questionable test from the refstring suite
Testing that an interned string is released once its last reference is dropped is not possible without a hook into the interning machinery; just checking that the returned pointer for the same string is going to be different after the last release() is not guaranteed to work, as the systema allocator is perfectly within its rights to recycle pointers, as long as they are unique while valid. Closes #1467
This commit is contained in:
parent
433770b681
commit
5e64ee3af7
@ -98,11 +98,6 @@ test_refstring_intern (void)
|
||||
|
||||
g_test_message ("releasing s[%p] ('%s')", s, s);
|
||||
g_ref_string_release (s);
|
||||
|
||||
p = g_ref_string_new_intern ("hello, world");
|
||||
g_test_message ("p[%p] ('%s') != s[%p]", p, p, s);
|
||||
g_assert_false (s == p);
|
||||
g_ref_string_release (p);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user