fix constant issue, and make running of test program dependent on successful build
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
Test(std_allocator, test) {
|
||||
allocator_t this = allocator_stdlib;
|
||||
allocator_t this = allocator_stdlib();
|
||||
void *ptr = allocator_alloc(this, 10);
|
||||
cr_assert(ptr != ((void *)0), "non null from malloc");
|
||||
void *new_ptr = allocator_resize(this, ptr, 1024*1024*500);
|
||||
|
||||
Reference in New Issue
Block a user