6 test_memory_zero_size_allocations ()
12 return FAILED ("Calling g_malloc with size zero should return NULL.");
16 return FAILED ("Calling g_malloc0 with size zero should return NULL.");
18 p
= g_realloc (NULL
, 0);
20 return FAILED ("Calling g_realloc with size zero should return NULL.");
24 return FAILED ("Calling g_new with size zero should return NULL.");
28 return FAILED ("Calling g_new0 with size zero should return NULL.");
34 static Test memory_tests
[] = {
35 { "zero_size_allocations", test_memory_zero_size_allocations
},
39 DEFINE_TEST_GROUP_INIT(memory_tests_init
, memory_tests
)