Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions unit/goto-programs/goto_trace_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <testing-utils/catch.hpp>
#include <goto-programs/goto_program.h>
#include <goto-programs/goto_trace.h>
#include <iostream>
#include <sstream>

SCENARIO(
"Output trace with nil lhs object",
Expand All @@ -22,5 +22,16 @@ SCENARIO(
goto_trace_stept step;
step.pc = instructions.begin();
step.type = goto_trace_stept::typet::ATOMIC_BEGIN;
step.output(ns, std::cout);

std::ostringstream oss;
step.output(ns, oss);

std::istringstream iss(oss.str());
std::string line;
std::getline(iss, line);
REQUIRE(line == "*** ATOMIC_BEGIN");
std::getline(iss, line);
REQUIRE(line == "OTHER");
std::getline(iss, line);
REQUIRE(line.empty());
}
1 change: 1 addition & 0 deletions unit/path_strategies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ void _check_with_strategy(
}

ui_message_handlert mh(cmdline, "path-explore");
mh.set_verbosity(0);
messaget log(mh);

path_strategy_choosert chooser;
Expand Down