Angband
Functions | Variables
mem.c File Reference
#include "unit-test.h"
#include "z-virt.h"

Functions

NOSETUP NOTEARDOWN int test_alloc (void *state)
 
int test_realloc (void *state)
 

Variables

const char * suite_name = "z-virt/mem"
 
struct test tests []
 

Function Documentation

◆ test_alloc()

NOSETUP NOTEARDOWN int test_alloc ( void state)

References mem_alloc(), mem_free(), and require.

◆ test_realloc()

int test_realloc ( void state)

References mem_free(), mem_realloc(), and NULL.

Variable Documentation

◆ suite_name

const char* suite_name = "z-virt/mem"

◆ tests

struct test tests[]
Initial value:
= {
{ "alloc", test_alloc },
{ "realloc", test_realloc },
{ NULL, NULL }
}
int test_realloc(void *state)
Definition: mem.c:20
NOSETUP NOTEARDOWN int test_alloc(void *state)
Definition: mem.c:9
NULL
Definition: list-summon-types.h:18