#include "_TDDConfigure.h"

// BTK error messages are not displayed
#define TDD_SILENT_CERR

int main()
{
#if defined(TDD_SILENT_CERR)
  std::streambuf* standardErrorOutput = std::cerr.rdbuf(0);
#endif

  int err = CxxTest::ErrorPrinter().run();
  
#if defined(TDD_SILENT_CERR)
  std::cerr.rdbuf(standardErrorOutput);
#endif

  return err;
};

#include <cxxtest/Root.cpp>

#include "_TDDConfigure.h"

#include <btkLogger.h>

// BTK error messages are not displayed
#define TDD_SILENT_CERR

int main()
{
#if defined(TDD_SILENT_CERR)
  btk::Logger::SetVerboseMode(btk::Logger::Quiet);
#endif
  return CxxTest::ErrorPrinter().run();;
};

#include <cxxtest/Root.cpp>

Use of the command btk::Logger::SetVerbose instead of setting the stream buffer of std::cerr to null when the symbol TDD_SILENT_CERR is defined.
[UPD] Use of the command btk::Logger::SetVerbose instead of setting the stream buffer of std::cerr to null when the symbol TDD_SILENT_CERR is defined.
