-
Notifications
You must be signed in to change notification settings - Fork 274
Utilities for reporting overall result/status/exit code [depends: 3583, blocks: 3585] #3584
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
Utilities for reporting overall result/status/exit code [depends: 3583, blocks: 3585] #3584
Conversation
89c7580
to
2c92ab1
Compare
src/goto-checker/report_util.cpp
Outdated
report_error(ui_message_handler); | ||
break; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline
@@ -71,6 +71,62 @@ void report_failure(ui_message_handlert &ui_message_handler) | |||
} | |||
} | |||
|
|||
void report_inconclusive(ui_message_handlert &ui_message_handler) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message talks about the wrong file.
src/goto-checker/report_util.cpp
Outdated
void report_inconclusive(ui_message_handlert &ui_message_handler) | ||
{ | ||
messaget msg(ui_message_handler); | ||
msg.result() << "INCONCLUSIVE" << messaget::eom; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we already use "UNKNOWN" in places (goto-analyzer, for example)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind. Any preferences?
void report_error(ui_message_handlert &ui_message_handler) | ||
{ | ||
messaget msg(ui_message_handler); | ||
msg.result() << "VERIFICATION ERROR" << messaget::eom; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applies to all the report* functions: do we print both formatted and unformatted output in case of both XML and JSON?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the current behaviour. 387834c#diff-6b42a28511965b646db79583668c5e6eL161
2c92ab1
to
6516d1f
Compare
To count how many properties have a certain status. This will be used in property reporting.
Plain text, XML and JSON output for property results.
Prints the property report in plain text, JSON or XML.
6516d1f
to
323f131
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 323f131).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97168736
Enable consistent result-dependent exit codes across all driver programs.
Enable consistent overall status reporting across all driver programs.
323f131
to
b1587fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: b1587fa).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97183590
Based on #3583, only review last 4 commits.