Skip to content

Commit 71304e3

Browse files
committed
Init QCoreApplication in tests
1 parent 68513bd commit 71304e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#pragma once
22

3+
#include <QCoreApplication>
34
#include <gtest/gtest.h>
45
#include <filesystem>
56
#include <fstream>
67

78
int main(int argc, char **argv)
89
{
10+
QCoreApplication a(argc, argv);
911
std::filesystem::current_path(DATA_DIR);
1012
::testing::InitGoogleTest(&argc, argv);
1113
return RUN_ALL_TESTS();

0 commit comments

Comments
 (0)