Esempio n. 1
0
    /// Overrides the print header with a nicer message.
    void printHeader()
    {
        // This is no guarantee, but it can help to give sorted output.
        MPICommons::barrier();

        for (int i = 0; i < MPICommons::size(); ++i)
        {
            if (MPICommons::myRank() == i)
            {

#if RUNMPI == true
                m_stream << std::endl << "Test results from MPI rank " << i << std::endl;
#endif

                if ( m_result->wasSuccessful() )
                {
                    m_stream << std::endl << "     ALL (" << m_result->runTests () << " tests) OK" << std::endl ;
                    m_stream << std::endl;
                }
                else
                {
                    printFailureWarning();
                    printStatistics();
                }
                m_stream.flush();
            }
        }
    }
Esempio n. 2
0
void
TextOutputter::printHeader()
{
  if ( m_result->wasSuccessful() )
    m_stream << endl << "OK (" << m_result->runTests () << " tests)"
             << endl;
  else
  {
    m_stream << endl;
    printFailureWarning();
    printStatistics();
  }
}