tap: send output to the recorded stream, not cout

This commit is contained in:
Danny Robson 2018-03-22 16:10:31 +11:00
parent 2d7e3e5d7d
commit 6cd2bef17d

View File

@ -40,7 +40,7 @@ logger::logger (std::ostream &_output):
logger::~logger ()
{
CHECK_EQ (m_reported, m_status);
std::cout << "1.." << m_size << '\n';
m_output << "1.." << m_size << '\n';
}
@ -48,7 +48,7 @@ logger::~logger ()
void
logger::skip (const std::string &msg)
{
std::cout << "ok " << ++m_size << " - # SKIP " << msg << '\n';
m_output << "ok " << ++m_size << " - # SKIP " << msg << '\n';
}
@ -56,7 +56,7 @@ logger::skip (const std::string &msg)
void
logger::todo (const std::string &msg)
{
std::cout << "not ok " << ++m_size << " - # TODO " << msg << '\n';
m_output << "not ok " << ++m_size << " - # TODO " << msg << '\n';
}