Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Stop switching between XML_Parse and _XML_Parse_SINGLE_BYTES #783

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

Snild-Sony
Copy link
Contributor

Since 091ba48, all tests are also run with chunkSize=0, which makes _XML_Parse_SINGLE_BYTES behave like XML_Parse.

Some tests were already using loops or conditions to switch between the two. This is no longer necessary.

Copy link
Member

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Snild-Sony thanks for the pull request! Two details seem off, please see below:

expat/tests/acc_tests.c Outdated Show resolved Hide resolved
expat/tests/basic_tests.c Outdated Show resolved Hide resolved
@hartwork hartwork added this to the 2.6.0 milestone Oct 25, 2023
@hartwork hartwork mentioned this pull request Oct 25, 2023
35 tasks
Since commit 091ba48 ("tests: Run SINGLE_BYTES with no chunking"),
all tests are run an extra time with SINGLE_BYTES set to perform just
a single XML_Parse() call. There is no longer a need for individual
tests to switch between them.
All tests now run one instance where SINGLE_BYTES is equivalent to a
single XML_Parse call. There is no longer a need for individual tests
to switch between them.
All tests now run one instance where SINGLE_BYTES is equivalent to a
single XML_Parse call. Using SINGLE_BYTES therefore gives more coverage,
as evidenced by the new failure we now have to avoid in the test, until
it can be fixed.
Copy link
Member

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Snild-Sony thanks for the adjustments! 👍 Ready to merge if the CI likes it, too.

@hartwork hartwork merged commit 5347517 into libexpat:master Oct 25, 2023
31 checks passed
@Snild-Sony Snild-Sony deleted the remove-singlebytes-switching branch October 26, 2023 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants