File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 9
9
#include < testing-utils/catch.hpp>
10
10
#include < goto-programs/goto_program.h>
11
11
#include < goto-programs/goto_trace.h>
12
- #include < iostream >
12
+ #include < sstream >
13
13
14
14
SCENARIO (
15
15
" Output trace with nil lhs object" ,
@@ -22,5 +22,16 @@ SCENARIO(
22
22
goto_trace_stept step;
23
23
step.pc = instructions.begin ();
24
24
step.type = goto_trace_stept::typet::ATOMIC_BEGIN;
25
- step.output (ns, std::cout);
25
+
26
+ std::ostringstream oss;
27
+ step.output (ns, oss);
28
+
29
+ std::istringstream iss (oss.str ());
30
+ std::string line;
31
+ std::getline (iss, line);
32
+ REQUIRE (line == " *** ATOMIC_BEGIN" );
33
+ std::getline (iss, line);
34
+ REQUIRE (line == " OTHER" );
35
+ std::getline (iss, line);
36
+ REQUIRE (line.empty ());
26
37
}
Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ void _check_with_strategy(
314
314
}
315
315
316
316
ui_message_handlert mh (cmdline, " path-explore" );
317
+ mh.set_verbosity (0 );
317
318
messaget log (mh);
318
319
319
320
path_strategy_choosert chooser;
You can’t perform that action at this time.
0 commit comments