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
@@ -18,12 +18,12 @@ int main(int argc, char **argv)
settingsDir.setAutoRemove(false); // we'll remove it manually
chatterino::Settings settings(settingsDir.path());
QtConcurrent::run([&app, &settingsDir]() mutable {
QTimer::singleShot(0, [&]() {
::benchmark::RunSpecifiedBenchmarks();
settingsDir.remove();
app.exit(0);
QApplication::exit(0);
});
return app.exec();
return QApplication::exec();
}