6
void testcase_printf(TestCaseState_t *tcs, char *frmt, ...)
10
vfprintf(stderr, frmt, va);
12
fprintf(stderr, "\r");
15
void testcase_succeeded(TestCaseState_t *tcs, char *frmt, ...)
19
void testcase_skipped(TestCaseState_t *tcs, char *frmt, ...)
23
void testcase_failed(TestCaseState_t *tcs, char *frmt, ...)
27
vfprintf(stderr, frmt, va);
32
int testcase_assertion_failed(TestCaseState_t *tcs, char *file, int line,
35
testcase_failed(tcs, "ASSERTION '%s' FAILED at %s:%d\r\n",
36
assertion, file, line);
41
void *testcase_alloc(size_t size)
45
void *testcase_realloc(void *ptr, size_t size)
47
return realloc(ptr, size);
49
void testcase_free(void *ptr)
54
void testcase_run(TestCaseState_t *tcs);
56
static int reload(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
61
static ERL_NIF_TERM run(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
64
return enif_make_atom(env, "ok");
67
static ErlNifFunc nif_funcs[] =
72
ERL_NIF_INIT(tester,nif_funcs,NULL,reload,NULL,NULL)