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

tests: do not hardcode ENOENT #2700

Merged
merged 1 commit into from
Jul 18, 2023
Merged

tests: do not hardcode ENOENT #2700

merged 1 commit into from
Jul 18, 2023

Conversation

pinotree
Copy link
Contributor

The actual values of errno constants are not specified in POSIX, and left as implementation details; hence, tweak the check for the ENOENT description to not check for the actual value.

In particular, this fixes the tests on GNU/Hurd, as its POSIX errnos do not start from 1.

The actual values of errno constants are not specified in POSIX, and
left as implementation details; hence, tweak the check for the ENOENT
description to not check for the actual value.
@ghost
Copy link

ghost commented Jul 18, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #2700 (ded6ba4) into main (b826a7d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2700   +/-   ##
=======================================
  Coverage   63.90%   63.90%           
=======================================
  Files         103      103           
  Lines       22316    22316           
  Branches    10805    10805           
=======================================
  Hits        14260    14260           
  Misses       5831     5831           
  Partials     2225     2225           

Copy link
Collaborator

@kmilos kmilos left a comment

Choose a reason for hiding this comment

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

LGTM

@kmilos kmilos merged commit 7f99757 into Exiv2:main Jul 18, 2023
105 checks passed
@kmilos kmilos added platforms Cygwin, MinGW, cross-compilation, NetBSD, FreeBSD etc testing Anything related to the tests and their infrastructure labels Jul 18, 2023
@kmilos
Copy link
Collaborator

kmilos commented Jul 18, 2023

@Mergifyio backport 0.28.x

@mergify
Copy link
Contributor

mergify bot commented Jul 18, 2023

backport 0.28.x

✅ Backports have been created

@pinotree pinotree deleted the hardcoded-errnos branch July 18, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platforms Cygwin, MinGW, cross-compilation, NetBSD, FreeBSD etc testing Anything related to the tests and their infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants