| 1 |
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: GPL-3.0-only |
| 4 |
|
| 5 |
#include <QCoreApplication> |
| 6 |
#include <gtest/gtest.h> |
| 7 |
#ifdef QT_DEBUG |
| 8 |
#include <sanitizer/asan_interface.h> |
| 9 |
#endif |
| 10 |
|
| 11 |
int main(int argc, char *argv[]) |
| 12 |
{ |
| 13 |
QCoreApplication a(argc, argv); |
| 14 |
a.setOrganizationName("deepin"); |
| 15 |
a.setApplicationName("deepin-boot-maker"); |
| 16 |
|
| 17 |
::testing::InitGoogleTest(&argc,argv); |
| 18 |
int ret = RUN_ALL_TESTS(); |
| 19 |
#ifdef QT_DEBUG |
| 20 |
__sanitizer_set_report_path("asan_loader.log"); |
| 21 |
#endif |
| 22 |
return ret; |
| 23 |
} |