56# define XML_FMT_INT_MOD "ll"
58# define XML_FMT_INT_MOD "l"
61# ifdef XML_UNICODE_WCHAR_T
62# define XML_FMT_STR "ls"
64# define xcstrlen(s) wcslen(s)
65# define xcstrcmp(s, t) wcscmp((s), (t))
66# define xcstrncmp(s, t, n) wcsncmp((s), (t), (n))
67# define XCS(s) _XCS(s)
71# error "No support for UTF-16 character without wchar_t in tests"
73# define XML_FMT_STR "s"
74# define xcstrlen(s) strlen(s)
75# define xcstrcmp(s, t) strcmp((s), (t))
76# define xcstrncmp(s, t, n) strncmp((s), (t), (n))
99# define xml_failure(parser) _xml_failure((parser), __FILE__, __LINE__)
108# define expect_failure(text, errorCode, errorMessage) \
109 _expect_failure((text), (errorCode), (errorMessage), __FILE__, __LINE__)
115 const char *
file,
int line);
117# define run_character_check(text, expected) \
118 _run_character_check(text, expected, __FILE__, __LINE__)
121 const char *
file,
int line);
123# define run_attribute_check(text, expected) \
124 _run_attribute_check(text, expected, __FILE__, __LINE__)
136# define run_ext_character_check(text, test_data, expected) \
137 _run_ext_character_check(text, test_data, expected, __FILE__, __LINE__)
139# define ALLOC_ALWAYS_SUCCEED (-1)
140# define REALLOC_ALWAYS_SUCCEED (-1)
const char apr_size_t len
void tcase_add_test__if_xml_ge(TCase *tc, tcase_test_function test)
const char * long_cdata_text
void tcase_add_test__ifdef_xml_dtd(TCase *tc, tcase_test_function test)
void basic_teardown(void)
enum XML_Status _XML_Parse_SINGLE_BYTES(XML_Parser parser, const char *s, int len, int isFinal)
const char * long_character_data_text
void * duff_reallocator(void *ptr, size_t size)
void _xml_failure(XML_Parser parser, const char *file, int line)
void _run_character_check(const char *text, const XML_Char *expected, const char *file, int line)
void _expect_failure(const char *text, enum XML_Error errorCode, const char *errorMessage, const char *file, int lineno)
void _run_attribute_check(const char *text, const XML_Char *expected, const char *file, int line)
const char * get_buffer_test_text
void * duff_allocator(size_t size)
void _run_ext_character_check(const char *text, ExtTest *test_data, const XML_Char *expected, const char *file, int line)
apr_text_header const char * text
const char apr_file_t * file
void(* tcase_test_function)(void)
const XML_Char * encoding