Debian Codegraph @

tests/main.cpp

raw
1 // SPDX-FileCopyrightText: 2017 - 2023 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #include "ut_dutil.h"
6 #include <QGuiApplication>
7
8 #ifdef QT_DEBUG
9 #include <sanitizer/asan_interface.h>
10 #endif
11
12 int main(int argc, char *argv[])
13 {
14 QCoreApplication app(argc, argv);
15 app.setApplicationName("tests");
16 app.setOrganizationName("deepin");
17 #if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
18 DTimedLoop loop;
19 #endif
20
21 testing::InitGoogleTest(&argc, argv);
22 int retVal = RUN_ALL_TESTS();
23
24 #ifdef QT_DEBUG
25 __sanitizer_set_report_path("asan.log");
26 #endif
27
28 #if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
29 return loop.exec(0, "main execution") + retVal;
30 #else
31 return 0;
32 #endif
33 }