dde-dock/tests/ut_main.cpp
liuxing d330600907 feat: 配置ci
文件命名、生成脚本

Log: 任务栏配置ci
Change-Id: I0948f79beb3348ee1dccb90bf4b4453d5c1e9c13
2021-03-05 18:25:00 +08:00

19 lines
380 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <gtest/gtest.h>
#include <QApplication>
#include <QDebug>
#include <DLog>
int main(int argc, char **argv)
{
// gerrit编译时没有显示器需要指定环境变量
qputenv("QT_QPA_PLATFORM", "offscreen");
QApplication app(argc, argv);
qApp->setProperty("CANSHOW", true);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}