Skip to content

Conversation

@Ecordonnier
Copy link
Contributor

  • remove "WaitingFailed" which is a duplicate of "CommandTimedOut"
  • replace hard-coded values 126 and 127 with enum values, remove TODO
  • fix misleading comment. we DO return CommandTimedOut even when preserve-status is not specified

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

can we have tests on the exit code to make sure we don't regress? thanks

- remove "WaitingFailed" which is a duplicate of "CommandTimedOut"
- replace hard-coded values 126 and 127 with enum values, remove TODO
- fix misleading comment. we DO return CommandTimedOut even when preserve-status is not specified
- add tests for exit values 126 and 127

Signed-off-by: Etienne Cordonnier <[email protected]>
@Ecordonnier Ecordonnier force-pushed the eco/timeout-error-codes branch from 30cbb1c to 2cfa2c0 Compare December 6, 2025 12:25
@Ecordonnier
Copy link
Contributor Author

Ecordonnier commented Dec 6, 2025

I've added tests. My branch is not fixing a bug, and I had not realized that there was no tests for those exit values.

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

GNU testsuite comparison:

Congrats! The gnu test tests/du/files0-from is no longer failing!

@sylvestre sylvestre merged commit 8d590ca into uutils:main Dec 6, 2025
127 checks passed
@Ecordonnier Ecordonnier deleted the eco/timeout-error-codes branch December 6, 2025 13:43
romanstingler pushed a commit to romanstingler/coreutils that referenced this pull request Dec 14, 2025
- remove "WaitingFailed" which is a duplicate of "CommandTimedOut"
- replace hard-coded values 126 and 127 with enum values, remove TODO
- fix misleading comment. we DO return CommandTimedOut even when preserve-status is not specified
- add tests for exit values 126 and 127

Signed-off-by: Etienne Cordonnier <[email protected]>
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