46#ifndef XML_MINICHECK_H
47# define XML_MINICHECK_H
60# if defined(_MSC_VER) || (defined(__osf__) && defined(__cplusplus))
61# define __func__ __FUNCTION__
71# define PRINTF_LIKE(fmtpos, argspos) \
72 __attribute__((format(printf, fmtpos, argspos)))
74# define PRINTF_LIKE(fmtpos, argspos)
77# define START_TEST(testname) \
78 static void testname(void) { \
79 _check_set_test_info(__func__, __FILE__, __LINE__); \
87# define fail(msg) _fail(__FILE__, __LINE__, msg)
88# define assert_true(cond) \
91 _fail(__FILE__, __LINE__, "check failed: " #cond); \
132# if defined(__GNUC__)
136_fail(
const char *
file,
int line,
const char *msg);
const char apr_file_t * file
apr_vformatter_buff_t const char * fmt
const char apr_status_t(*) apr_pool_t *poo __attribute__)((nonnull(2, 4)))
apr_size_t const char * filename
void tcase_add_test(TCase *tc, tcase_test_function test)
#define PRINTF_LIKE(fmtpos, argspos)
Suite * suite_create(const char *name)
void(* tcase_test_function)(void)
void srunner_summarize(SRunner *runner, int verbosity)
void _check_set_test_info(char const *function, char const *filename, int lineno)
void _fail(const char *file, int line, const char *msg)
void suite_add_tcase(Suite *suite, TCase *tc)
void srunner_run_all(SRunner *runner, const char *context, int verbosity)
SRunner * srunner_create(Suite *suite)
void set_subtest(char const *fmt,...)
void tcase_add_checked_fixture(TCase *tc, tcase_setup_function setup, tcase_teardown_function teardown)
void(* tcase_teardown_function)(void)
int srunner_ntests_failed(SRunner *runner)
void srunner_free(SRunner *runner)
void(* tcase_setup_function)(void)
TCase * tcase_create(const char *name)
tcase_test_function * tests
tcase_setup_function setup
tcase_teardown_function teardown