Skip to content

Handle error strerror values in bless#22205

Draft
NattyNarwhal wants to merge 1 commit into
php:masterfrom
NattyNarwhal:bless-strerror
Draft

Handle error strerror values in bless#22205
NattyNarwhal wants to merge 1 commit into
php:masterfrom
NattyNarwhal:bless-strerror

Conversation

@NattyNarwhal
Copy link
Copy Markdown
Member

One annoyance with bless is its tendency to hardcode OS-specific errors in expect output, especially when the test was already making it to begin with, and bless instead hardcodes it again.

Build a list of strerror values, scan the output for them, and replace them with '%s'. Perhaps this may be overzealous, but it does seem to work to keep bless output reasonable with less post-processing.

One annoyance with bless is its tendency to hardcode OS-specific errors
in expect output, especially when the test was already making it to
begin with, and bless instead hardcodes it again.

Build a list of strerror values, scan the output for them, and replace
them with '%s'. Perhaps this may be overzealous, but it does seem to
work to keep bless output reasonable with less post-processing.
@NattyNarwhal NattyNarwhal changed the title Handle error numbers/strerror values in bless Handle error strerror values in bless Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant