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
Make tests support empty SPDLOG_EOL #1414
Make tests support empty SPDLOG_EOL #1414
Conversation
I think it could be cleaner if a new “count_messages()” function was introduced with all the logic in it.. |
Yes, you are right. I'll take a look at it. Do you have a preferred source file where this method would go, since its used in multiple tests? |
tests/utils.cpp is the most suitable for this |
86eec6d
to
e35d719
Compare
Dear @gabime thanks for the constructive feedback. I've adapted the tests and indeed the code comes out much better. Do you think this is reasonable to add? |
sure, but they fail |
The travis build works except an installation problem with
to
Its actually interesting how this worked before, because AFAIK on MSVC the |
That's because |
How should I best solve this? Or can you help? I personally would change the behavior of |
Open in binary mode is better, I agree. I am not sure how it would affect the windows tests, if any. You can try and see |
Seems I was lucky with this change, the tests now all work? Could you consider this for merging? |
Sure, but I would appreciate if you first added the changes I requested. |
0625dbd
to
87acec6
Compare
Thanks @emmenlau . Merged. |
This PR is currently a demo only. It is created against tag v1.5.0. It should show-case how one could add support for empty
SPDLOG_EOL
in the tests. This seems a "relatively" common request amongst users so it may be nice if the tests can support it.Closes #1413 .