Skip to content

Successfully producing a formula with --outfile should not yield non-zero exit #130

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 1 commit into from
Jun 20, 2016

Conversation

tautschnig
Copy link
Collaborator

If there's a design decision that SAFE/exit 0 should only ever be returned when safety is proven, and --outfile thus correctly has a non-zero exit code, then the regression test Malloc22 must be fixed instead.

@kroening
Copy link
Member

Not sure -- the UNIX convention is that a zero exit code means "program did what it was asked to do". E.g., printing --help will usually produce a zero exit code even if no actual work was done.

My feeling is that writing a formula with --outfile counts as "work done correctly".

@tautschnig
Copy link
Collaborator Author

Agreed, so my patch stands as is, to make --outfile return 0.

@kroening kroening merged commit 1be92ff into diffblue:master Jun 20, 2016
@tautschnig tautschnig deleted the outfile-is-not-error branch June 20, 2016 19:47
smowton pushed a commit to smowton/cbmc that referenced this pull request May 9, 2018
smowton pushed a commit to smowton/cbmc that referenced this pull request May 9, 2018
Bug-fix: forgotten update of the comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants