From 61f99089288138989cf244d174882aa5088b738b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 9 Mar 2025 19:47:50 +0530 Subject: Refactor directory structure --- spec/TestUtils.cpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 spec/TestUtils.cpp (limited to 'spec/TestUtils.cpp') diff --git a/spec/TestUtils.cpp b/spec/TestUtils.cpp deleted file mode 100644 index e496a9b..0000000 --- a/spec/TestUtils.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include -#include - -std::vector> &getQTestRegistry() { - static std::vector> registry; - return registry; -} - -int runAllTests() { - int exitCode = 0; - for (const auto &runTest : getQTestRegistry()) { - auto test = runTest(); - // printf(":::: %s\n", test->objectName().toStdString().c_str()); - exitCode |= QTest::qExec(test); - delete test; - } - getQTestRegistry().clear(); - return exitCode; -} -- cgit v1.3.1