Use a readable name for the wmem callback test. Warn that reallocing memory

for which a callback is registered is also a fairly stupid thing to do.

svn path=/trunk/; revision=49354
This commit is contained in:
Evan Huus 2013-05-16 23:38:31 +00:00
parent 4b6ff3d829
commit f2bdbd2b32
2 changed files with 9 additions and 8 deletions

View File

@ -133,9 +133,10 @@ appropriate wmem pool.
Also note that callback calling order is not defined, you cannot rely on a
certain callback being called before or after another.
WARNING: Manually freeing memory with wmem_free will NOT trigger any callbacks.
It is an error to call wmem_free on memory if you have a callback
registered to deal with the contents of a that memory.
WARNING: Manually freeing or moving memory (with wmem_free or wmem_realloc)
will NOT trigger any callbacks. It is an error to call either of
those functions on memory if you have a callback registered to deal
with the contents of that memory.
3. Usage for Producers

View File

@ -541,11 +541,11 @@ main(int argc, char **argv)
{
g_test_init(&argc, &argv, NULL);
g_test_add_func("/wmem/allocator/block", wmem_test_allocator_block);
g_test_add_func("/wmem/allocator/simple", wmem_test_allocator_simple);
g_test_add_func("/wmem/allocator/strict", wmem_test_allocator_strict);
g_test_add_func("/wmem/allocator/times", wmem_time_allocators);
g_test_add_func("/wmem/allocator/cbs", wmem_test_allocator_callbacks);
g_test_add_func("/wmem/allocator/block", wmem_test_allocator_block);
g_test_add_func("/wmem/allocator/simple", wmem_test_allocator_simple);
g_test_add_func("/wmem/allocator/strict", wmem_test_allocator_strict);
g_test_add_func("/wmem/allocator/times", wmem_time_allocators);
g_test_add_func("/wmem/allocator/callbacks", wmem_test_allocator_callbacks);
g_test_add_func("/wmem/utils/strings", wmem_test_strutls);