Skip to content

Commit b016d29

Browse files
authored
Merge pull request #3984 from martin-cs/fix/redirect-exception-handler-output-4
Add an output stream to goto-harness for parse_options_baset
2 parents d52cd0d + 7c66df8 commit b016d29

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/goto-harness/goto_harness_parse_options.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ void goto_harness_parse_optionst::help()
4646
goto_harness_parse_optionst::goto_harness_parse_optionst(
4747
int argc,
4848
const char *argv[])
49-
: parse_options_baset{GOTO_HARNESS_OPTIONS, argc, argv}
49+
: parse_options_baset{GOTO_HARNESS_OPTIONS, argc, argv, ui_message_handler},
50+
ui_message_handler(cmdline, std::string("GOTO-HARNESS ") + CBMC_VERSION)
5051
{
5152
}

src/goto-harness/goto_harness_parse_options.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Author: Diffblue Ltd.
1010
#define CPROVER_GOTO_HARNESS_GOTO_HARNESS_PARSE_OPTIONS_H
1111

1212
#include <util/parse_options.h>
13+
#include <util/ui_message.h>
1314

1415
#define GOTO_HARNESS_OPTIONS "(version)" // end GOTO_HARNESS_OPTIONS
1516

@@ -20,6 +21,14 @@ class goto_harness_parse_optionst : public parse_options_baset
2021
void help() override;
2122

2223
goto_harness_parse_optionst(int argc, const char *argv[]);
24+
25+
protected:
26+
ui_message_handlert ui_message_handler;
27+
28+
ui_message_handlert::uit get_ui()
29+
{
30+
return ui_message_handler.get_ui();
31+
}
2332
};
2433

2534
#endif // CPROVER_GOTO_HARNESS_GOTO_HARNESS_PARSE_OPTIONS_H

0 commit comments

Comments
 (0)