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:
Emmanuele Bassi 2018-08-02 12:21:38 +01:00
parent 433770b681
commit 5e64ee3af7

View File

@ -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