Refactor tests and benchmarks (#4700)

This commit is contained in:
nerix
2023-06-24 15:03:27 +02:00
committed by GitHub
parent 5d3e5d9312
commit b9934a4532
8 changed files with 109 additions and 179 deletions
+3 -3
View File
@@ -32,16 +32,16 @@ int main(int argc, char **argv)
qDebug() << "Settings directory:" << settingsDir.path();
chatterino::Settings settings(settingsDir.path());
QtConcurrent::run([&app, &settingsDir]() mutable {
QTimer::singleShot(0, [&]() {
auto res = RUN_ALL_TESTS();
chatterino::NetworkManager::deinit();
settingsDir.remove();
app.exit(res);
QApplication::exit(res);
});
return app.exec();
return QApplication::exec();
#else
return RUN_ALL_TESTS();
#endif