[Tests] Give metrics_registry_test an explicit main

This commit is contained in:
Lukas Brübach 2026-08-31 00:22:24 +02:00
parent 9fc0218be7
commit a8151b9e97

View file

@ -1,3 +1,4 @@
#include <QCoreApplication>
#include <QList>
#include <gtest/gtest.h>
#include <metrics_registry.h>
@ -73,3 +74,10 @@ TEST(MetricsRegistryTest, GameStartTrackedSeparatelyFromCommands)
EXPECT_EQ(1, snapshot.count);
EXPECT_EQ(120, snapshot.totalMs);
}
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}