diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index c3758a69..ead4cf9f 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3199,6 +3199,22 @@ START_TEST(test_empty_parse) END_TEST /* Test odd corners of the XML_GetBuffer interface */ +static enum XML_Status +get_feature(enum XML_FeatureEnum feature_id, long *presult) +{ + const XML_Feature *feature = XML_GetFeatureList(); + + if (feature == NULL) + return XML_STATUS_ERROR; + for (; feature->feature != XML_FEATURE_END; feature++) { + if (feature->feature == feature_id) { + *presult = feature->value; + return XML_STATUS_OK; + } + } + return XML_STATUS_ERROR; +} + START_TEST(test_get_buffer_1) { const char *text = @@ -3225,6 +3241,7 @@ START_TEST(test_get_buffer_1) "123456789abcdef0123456789abcdef0123456789abcdef0" /* 0x3f0 */ "123456789abcdef0123456789abcdef0123456789>\n