Test incomplete token in epilog
@@ -4566,6 +4566,15 @@ START_TEST(test_abort_epilog)
}
END_TEST
+START_TEST(test_unfinished_epilog)
+{
+ const char *text = "<doc></doc><";
+
+ expect_failure(text, XML_ERROR_UNCLOSED_TOKEN,
+ "Incomplete epilog entry not faulted");
+}
+END_TEST
+
/*
* Namespaces tests.
@@ -7830,6 +7839,7 @@ make_suite(void)
tcase_add_test(tc_basic, test_undefined_ext_entity_in_external_dtd);
tcase_add_test(tc_basic, test_suspend_xdecl);
tcase_add_test(tc_basic, test_abort_epilog);
+ tcase_add_test(tc_basic, test_unfinished_epilog);
suite_add_tcase(s, tc_namespace);
tcase_add_checked_fixture(tc_namespace,
