Skip to content

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

Merged
sylvestre merged 2 commits into
uutils:mainfrom
oSoMoN:exit-codes
Feb 22, 2024
Merged

Match GNU diff's implementation for exit codes (fixes #17)#18
sylvestre merged 2 commits into
uutils:mainfrom
oSoMoN:exit-codes

Conversation

@oSoMoN

@oSoMoN oSoMoN commented Feb 21, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

@oSoMoN

oSoMoN commented Feb 21, 2024

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
Collaborator

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

@oSoMoN

oSoMoN commented Feb 22, 2024

Copy link
Copy Markdown
Collaborator Author

Could you please add tests too?

Done.

@sylvestre

Copy link
Copy Markdown
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