set_onerror_func
void set_onerror_func(test_onerror_func_t *f, void *ctx);
#define TEST_ONERROR(f, c) set_onerror_func(f, c)
#define TEST_ONERROR(f, c) set_onerror_func(f, c)
void set_onerror_func(test_onerror_func_t *f, void *ctx);