-
Notifications
You must be signed in to change notification settings - Fork 274
goto-analyzer: default result report now uses messaget #3022
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
Conversation
d703c21
to
e8e0cff
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: e8e0cff).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85660560
std::ofstream output_stream; | ||
if(!(outfile=="-")) | ||
if(outfile != "-" && outfile != "") |
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'd use !outfile.empty()
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.
Done
output_stream.open(outfile); | ||
|
||
std::ostream &out((outfile=="-") ? std::cout : output_stream); | ||
std::ostream &out( | ||
(outfile == "-" || outfile == "") ? std::cout : output_stream); |
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.
outfile.empty()
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.
modulo Michael's comments
Splitting 'report into text file' and 'report onto console' enables tweaking the latter, e.g., by adding colors.
e8e0cff
to
2c19624
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: 2c19624).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85832591
Splitting 'report into text file' and 'report onto console' enables tweaking
the latter, e.g., by adding colors.