testapi: test_xmlSAXDefaultVersion() leaves xmlSAX2DefaultVersionValue set to 1 with LIBXML_SAX1_ENABLED
The test_xmlSAXDefaultVersion()
function in testapi
leaves xmlSAX2DefaultVersionValue
set to 1
(instead of its default value of 2
) with the LIBXML_SAX1_ENABLED
macro defined.
This can cause behavior differences in xmlSAX2InitDefaultSAXHandler()
via xmlSAXVersion()
if called after test_xmlSAXDefaultVersion()
in testapi
.
I noticed this while adding logging to detect future regressions in libxml2 clients when 235b15a5 is merged into Apple's fork of libxml2.