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

misc cleanups #2309

Merged
merged 8 commits into from
Aug 5, 2022
Merged

misc cleanups #2309

merged 8 commits into from
Aug 5, 2022

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Aug 4, 2022

No description provided.

Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
No need.

Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
These were not const.

Signed-off-by: Rosen Penev <[email protected]>
@codecov
Copy link

codecov bot commented Aug 4, 2022

Codecov Report

Merging #2309 (8a73274) into main (2e8ce71) will increase coverage by 0.03%.
The diff coverage is 38.06%.

@@            Coverage Diff             @@
##             main    #2309      +/-   ##
==========================================
+ Coverage   63.44%   63.48%   +0.03%     
==========================================
  Files         118      118              
  Lines       19643    19601      -42     
  Branches     9608     9576      -32     
==========================================
- Hits        12462    12443      -19     
+ Misses       5112     5091      -21     
+ Partials     2069     2067       -2     
Impacted Files Coverage Δ
src/canonmn_int.cpp 71.55% <ø> (ø)
src/crwimage_int.hpp 93.02% <ø> (ø)
src/epsimage.cpp 1.76% <0.00%> (+0.02%) ⬆️
src/fujimn_int.cpp 27.77% <0.00%> (-1.86%) ⬇️
src/image.cpp 69.51% <0.00%> (ø)
src/jp2image.cpp 70.35% <0.00%> (+0.15%) ⬆️
src/olympusmn_int.cpp 40.79% <0.00%> (+1.14%) ⬆️
src/orfimage.cpp 43.20% <0.00%> (+1.04%) ⬆️
src/rw2image.cpp 39.32% <0.00%> (+0.43%) ⬆️
src/tiffvisitor_int.cpp 79.38% <ø> (-0.08%) ⬇️
... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

// Set original file permissions
if (::chmod(pf, origStMode) == -1) {
// Set original file permissions
if (statOk && origStMode != buf2.st_mode && ::chmod(pf, origStMode) == -1) {

Check failure

Code scanning / CodeQL

Time-of-check time-of-use filesystem race condition

The [filename](1) being operated upon was previously [checked](2), but the underlying file may have been changed since then.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hahaha no.

Signed-off-by: Rosen Penev <[email protected]>
fs::path is convertable to a string.

Signed-off-by: Rosen Penev <[email protected]>
@neheb
Copy link
Collaborator Author

neheb commented Aug 5, 2022

 Error:  Failed to execute: D:\a\exiv2\exiv2\build\bin\iotest s0 s1 s2 http://127.0.0.1:12760/table.jpg
Error:  The asserted return code is [0], but got 1

I've seen this before. Transient error.

Copy link
Collaborator

@piponazo piponazo left a comment

Choose a reason for hiding this comment

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

LGTM! Nice set of changes 👏

@piponazo
Copy link
Collaborator

piponazo commented Aug 5, 2022

 Error:  Failed to execute: D:\a\exiv2\exiv2\build\bin\iotest s0 s1 s2 http://127.0.0.1:12760/table.jpg
Error:  The asserted return code is [0], but got 1

I've seen this before. Transient error.

If this is a flaky test, I would vote to comment it out an create a ticket to investigate what's happening there. In that way it will not create confusion.

@neheb neheb merged commit 306424f into Exiv2:main Aug 5, 2022
@neheb neheb deleted the 2 branch August 5, 2022 08:01
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.

2 participants