Skip to content

Fix escaping bugs that currently affect the JSON formatting test on Windows. #626

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

Merged
merged 3 commits into from
Jun 23, 2021

Conversation

mattmccutchen-cci
Copy link
Member

Other escaping bugs may remain; #620 is to fix all of them.

Fixes #619.

This PR depends on #624 since it adds a second test of the JSON files and if we let both tests write JSON files directly in build/tools/clang/test/3C, the tests could interfere if they are run in parallel. I've set the target branch for review purposes; I'll change it to main after #624 is merged.

Copy link
Member

@kyleheadley kyleheadley left a comment

Choose a reason for hiding this comment

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

lgtm

Windows.

Other escaping bugs may remain; #620 is to fix all of them.

Fixes #619.
While I'm here, fix a typo in the name of json_formating.c and add `--`
to its `3c` command lines.
@mattmccutchen-cci
Copy link
Member Author

Aaron tested this PR on Mac OS and the new test does pass (I had been concerned that Mac OS might have a problem with the backslash in the filename), so I'm going to merge the PR. There are unrelated failures of other 3C regression tests on Mac OS that Aaron is still looking into.

@mattmccutchen-cci mattmccutchen-cci merged commit 50077c8 into main Jun 23, 2021
@mattmccutchen-cci mattmccutchen-cci deleted the json-escaping-issue619 branch June 23, 2021 16:24
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.

3C JSON output does not escape backslashes in Windows file paths in string literals
2 participants