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
mtest: fix xml chars discouraged to use #10680
Conversation
Could you add a test case? Should be fairly simple since your PR has a reproducer. Your test case should probably involve all the illegal characters. |
Test cases are added. |
Updated based on these comments. |
fcb3684
to
c6f7aef
Compare
If you are unable to come back and update this PR, I would be more than happy to take it over and push it over the finish line. |
Replace unencodable XML chars with their printable representation, so that, xmllint can parse test outputs without error. Closes mesonbuild#9894
Thanks for the review. I updated the PR based on your comments. |
CI is now running. Trying to get an actual reviewer for this. |
Test failure is related:
|
Fixes #9894.
I copied most of the implementation from there. Instead of filtering them, I replaced such characters with their printable representation.
For example:
was failing with:
now it doesn't fail, instead it produces:
TBD:
I am not sure if this solution is suitable. If you think it is okay and tests are necessary I can add test cases.