From a8151b9e9777a12afce4d5de240d0b7ad1a33452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Mon, 31 Aug 2026 00:22:24 +0200 Subject: [PATCH] [Tests] Give metrics_registry_test an explicit main --- tests/metrics_registry_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/metrics_registry_test.cpp b/tests/metrics_registry_test.cpp index 500e3ee6c..1abef58e1 100644 --- a/tests/metrics_registry_test.cpp +++ b/tests/metrics_registry_test.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -72,4 +73,11 @@ TEST(MetricsRegistryTest, GameStartTrackedSeparatelyFromCommands) const auto snapshot = registry.getGameStartSnapshot(); 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(); } \ No newline at end of file