Update QsLog to 2.1 snapshot 46b643d5bcbc

This commit is contained in:
Felix Kauselmann
2020-07-24 19:05:01 +02:00
parent c13ec618d0
commit 1568a5f253
45 changed files with 2579 additions and 269 deletions

View File

@ -0,0 +1,30 @@
/*
* Copyright (C) 2008 Remko Troncon
* Licensed under the MIT license.
* See COPYING for license details.
*/
#include "QtTestUtil/TestRegistry.h"
#include <QtTest/QtTest>
namespace QtTestUtil {
TestRegistry* TestRegistry::getInstance() {
static TestRegistry registry;
return &registry;
}
void TestRegistry::registerTest(QObject* test) {
tests_ += test;
}
int TestRegistry::runTests(int argc, char* argv[]) {
int result = 0;
foreach(QObject* test, tests_) {
result |= QTest::qExec(test, argc, argv);
}
return result;
}
}