-
Notifications
You must be signed in to change notification settings - Fork 282
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
fix bad for range loop #1635
fix bad for range loop #1635
Conversation
This loop is supposed to break when it encounters a match. Signed-off-by: Rosen Penev <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1635 +/- ##
=======================================
Coverage ? 66.91%
=======================================
Files ? 151
Lines ? 20805
Branches ? 0
=======================================
Hits ? 13921
Misses ? 6884
Partials ? 0 Continue to review full report at Codecov.
|
Maybe the find is better. |
find causes address sanitizer issues. Oh well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! It looks you have fixed the tests that were failing on Windows from time to time. It is interesting to see that those tests were not failing on Linux nor on Mac.
I can backport this change to the 0.27-maintenance.
Thanks!
Ups ... weird, in the PR view all the checks look green, but when I go to the github actions page, I see that some of these flaky tests (on BMFF code) on windows are still failing: https://github.com/Exiv2/exiv2/runs/2573006142?check_suite_focus=true Just for clarification. Were you trying to fix some defect in Exiv2 that was already reported? |
I was not looking to the right github actions link ... that is the one were all the windows jobs are passing: What I do not understand is that the failing tests seemed to be on BMFF while your change is in the epsimage.cpp file. |
I tried to cherry-pick the change to include it in 0.27-maintenance, but we do not need it there |
No this was a bad transformation on my part. |
This loop is supposed to break when it encounters a match.
Signed-off-by: Rosen Penev [email protected]
I tried converting this to std::find_if. Didn't work.