Revert "runtests.c: Fix compiler warning "unused function" with -DEXPAT_MIN_SIZE=ON"
This reverts commit 76f2beee81
.
This commit is contained in:
parent
72cdab2aeb
commit
841338da7f
@ -2245,7 +2245,6 @@ START_TEST(test_long_cdata_utf16) {
|
||||
END_TEST
|
||||
|
||||
/* Test handling of multiple unit UTF-16 characters */
|
||||
#ifndef XML_MIN_SIZE /* FIXME workaround -DXML_MIN_SIZE + ASan (issue #332) */
|
||||
START_TEST(test_multichar_cdata_utf16) {
|
||||
/* Test data is:
|
||||
* <?xml version='1.0' encoding='utf-16'?>
|
||||
@ -2267,11 +2266,11 @@ START_TEST(test_multichar_cdata_utf16) {
|
||||
"\0<\0a\0>\0<\0!\0[\0C\0D\0A\0T\0A\0["
|
||||
"\xd8\x34\xdd\x5e\xd8\x34\xdd\x5f"
|
||||
"\0]\0]\0>\0<\0/\0a\0>";
|
||||
# ifdef XML_UNICODE
|
||||
#ifdef XML_UNICODE
|
||||
const XML_Char *expected = XCS("\xd834\xdd5e\xd834\xdd5f");
|
||||
# else
|
||||
#else
|
||||
const XML_Char *expected = XCS("\xf0\x9d\x85\x9e\xf0\x9d\x85\x9f");
|
||||
# endif
|
||||
#endif
|
||||
CharData storage;
|
||||
|
||||
CharData_Init(&storage);
|
||||
@ -2284,7 +2283,6 @@ START_TEST(test_multichar_cdata_utf16) {
|
||||
CharData_CheckXMLChars(&storage, expected);
|
||||
}
|
||||
END_TEST
|
||||
#endif /* ifndef XML_MIN_SIZE */
|
||||
|
||||
/* Test that an element name with a UTF-16 surrogate pair is rejected */
|
||||
START_TEST(test_utf16_bad_surrogate_pair) {
|
||||
@ -2369,7 +2367,6 @@ START_TEST(test_bad_cdata) {
|
||||
END_TEST
|
||||
|
||||
/* Test failures in UTF-16 CDATA */
|
||||
#ifndef XML_MIN_SIZE /* FIXME workaround -DXML_MIN_SIZE + ASan (issue #332) */
|
||||
START_TEST(test_bad_cdata_utf16) {
|
||||
struct CaseData {
|
||||
size_t text_bytes;
|
||||
@ -2442,7 +2439,6 @@ START_TEST(test_bad_cdata_utf16) {
|
||||
}
|
||||
}
|
||||
END_TEST
|
||||
#endif /* ifndef XML_MIN_SIZE */
|
||||
|
||||
static const char *long_cdata_text
|
||||
= "<s><![CDATA["
|
||||
|
Loading…
Reference in New Issue
Block a user