17 #include "my_config.h"
18 #include <gtest/gtest.h>
20 #include <my_global.h>
23 namespace mysys_my_malloc_unittest {
29 p= my_malloc(0, MYF(0));
30 EXPECT_TRUE(p != NULL) <<
"Zero-sized block allocation.";
32 p= my_realloc(p, 32, MYF(0));
33 EXPECT_TRUE(p != NULL) <<
"Reallocated zero-sized block.";
35 p= my_realloc(p, 16, MYF(0));
36 EXPECT_TRUE(p != NULL) <<
"Trimmed block.";