2013-11-10 20:14:10 +00:00
|
|
|
#include "BaseTestCase.h"
|
2013-12-11 09:17:36 +00:00
|
|
|
|
2013-10-31 21:53:22 +00:00
|
|
|
#include <QtCore/QDebug>
|
2015-08-12 22:33:16 +00:00
|
|
|
#include "Logs.h"
|
2013-10-31 21:53:22 +00:00
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
void noMessageOutput(QtMsgType, const QMessageLogContext &, const QString &) {
|
2013-10-31 21:53:22 +00:00
|
|
|
}
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
int main(int argc, char **argv) {
|
2013-11-10 20:14:10 +00:00
|
|
|
int result;
|
|
|
|
|
2013-10-31 21:53:22 +00:00
|
|
|
qInstallMessageHandler(noMessageOutput);
|
2015-11-20 00:04:21 +00:00
|
|
|
#ifdef NDEBUG
|
2015-08-12 22:33:16 +00:00
|
|
|
Logs::disable();
|
2015-11-20 00:04:21 +00:00
|
|
|
#endif
|
2013-10-31 21:53:22 +00:00
|
|
|
|
2013-11-10 20:14:10 +00:00
|
|
|
testing::InitGoogleTest(&argc, argv);
|
|
|
|
result = RUN_ALL_TESTS();
|
2013-10-31 21:53:22 +00:00
|
|
|
|
2013-11-10 20:14:10 +00:00
|
|
|
return result;
|
2013-10-31 21:53:22 +00:00
|
|
|
}
|