paysages3d/src/tests/main.cpp

23 lines
457 B
C++
Raw Normal View History

2013-10-31 21:53:22 +00:00
#include <cppunit/TextTestRunner.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <QtCore/QDebug>
using namespace CppUnit;
void noMessageOutput(QtMsgType, const QMessageLogContext&, const QString&)
{
}
int main()
{
qInstallMessageHandler(noMessageOutput);
TextTestRunner runner;
TestFactoryRegistry &registry = TestFactoryRegistry::getRegistry();
runner.addTest(registry.makeTest());
return runner.run() ? 1 : 0;
}