23 lines
457 B
C++
23 lines
457 B
C++
|
#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 ®istry = TestFactoryRegistry::getRegistry();
|
||
|
|
||
|
runner.addTest(registry.makeTest());
|
||
|
|
||
|
return runner.run() ? 1 : 0;
|
||
|
}
|
||
|
|