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

[c++] Clean line endings before comparing in test case DynamicMessage. (#5136) #7318

Closed
wants to merge 1 commit into from

Conversation

cqjjjzr
Copy link
Contributor

@cqjjjzr cqjjjzr commented Mar 19, 2020

Unit test case TextFormatMapTest.DynamicMessage is failing due to the line endings when checking out on Windows with autocrlf = true settings in Git. Git will automatically convert the src/google/protobuf/testdata/map_test_data.txt to CRLF line endings.

However, in the code the generated data to compare against expected data (read directly from map_test_data.txt) uses LF line endings, leading to the error.

This solution cleans line endings in the read string.

fixes #5136

@cqjjjzr
Copy link
Contributor Author

cqjjjzr commented Oct 5, 2021

fixed in #8159

@cqjjjzr cqjjjzr closed this Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants