// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later #include #include #include "global.h" #include #include namespace { void registerComplexDbusType() // FIXME: test shouldn't associate with DBus { qRegisterMetaType(); qDBusRegisterMetaType(); qRegisterMetaType(); qDBusRegisterMetaType(); qDBusRegisterMetaType(); qRegisterMetaType(); qDBusRegisterMetaType(); qDBusRegisterMetaType(); } } // namespace int main(int argc, char **argv) { QCoreApplication app(argc, argv); registerComplexDbusType(); ::testing::InitGoogleTest(&argc, argv); int ret{0}; QTimer::singleShot(0, &app, [&ret] { ret = RUN_ALL_TESTS(); QCoreApplication::quit(); }); QCoreApplication::exec(); return ret; }