Skip to content

Match GNU diff's implementation for exit codes (fixes #17) #18

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

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

oSoMoN
Copy link
Collaborator

@oSoMoN oSoMoN commented Feb 21, 2024

No description provided.

@oSoMoN
Copy link
Collaborator Author

oSoMoN commented Feb 21, 2024

Interestingly, this fixes 3 tests from the GNU test suite (basic, bignum, bug-64316), but it also breaks 3 other tests (expand-tabs, ifdef, ignore-matching-lines), so the net result is not better in terms of number of passing tests.

I suspect that the tests that were previously passing and are now failing were false positives (the tests do not check only the exit code, they can also exercise options that aren't implemented yet).

At the very least, the basic test is now passing thanks to this change. Other tests will require further investigation.

@sylvestre
Copy link
Collaborator

Could you please add tests too?
it is easier to run than GNU's
thanks

@oSoMoN
Copy link
Collaborator Author

oSoMoN commented Feb 22, 2024

Could you please add tests too?

Done.

@sylvestre
Copy link
Collaborator

terrific!

@sylvestre sylvestre merged commit 0a67bf9 into uutils:main Feb 22, 2024
@oSoMoN oSoMoN deleted the exit-codes branch April 3, 2024 20:32
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