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

test: adjust tests to pass on system libxml2 >= 2.9.11, and work around windows dll unloading issue #2240

Merged

Conversation

flavorjones
Copy link
Member

@flavorjones flavorjones commented May 18, 2021

What problem is this PR intended to solve?

Adjust tests to pass on system libxml2 >= 2.9.11, because the comment parsing improvement was merged upstream. See https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/82 for context (and the recently removed htmlParseComment patch). This will allow us to run tests regularly against upstream master.

Also, work around the libxml2 issue described in #2241 by having libxml2 use its default memory management on windows when system libraries are being used. Note that this also introduces a new value into Nokogiri::VERSION_INFO, which is "libxml → memory_management", and the value will be either "ruby" or "default".

because the comment parsing improvement was merged upstream.
@codeclimate
Copy link

codeclimate bot commented May 18, 2021

Code Climate has analyzed commit 3ceecf3 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 93.2% (0.0% change).

View more on Code Climate.

@flavorjones flavorjones force-pushed the flavorjones-update-tests-to-work-with-system-libxml-2_9_12 branch from 942d38f to 3ceecf3 Compare May 19, 2021 15:26
@flavorjones flavorjones changed the title test: adjust tests to pass on system libxml2 >= 2.9.11 test: adjust tests to pass on system libxml2 >= 2.9.11, and work around windows dll unloading issue May 19, 2021
@flavorjones flavorjones merged commit e5640dc into main May 19, 2021
@flavorjones flavorjones deleted the flavorjones-update-tests-to-work-with-system-libxml-2_9_12 branch May 19, 2021 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant