mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 06:25:56 +03:00
Qt4: don't require a X server in the tests
This commit is contained in:
parent
cb64ba22b3
commit
a4310f0f5c
1 changed files with 7 additions and 1 deletions
|
@ -151,7 +151,13 @@ using namespace OCC;
|
|||
};
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
QTEST_MAIN(TestChecksumValidator)
|
||||
// Qt4 does not have QTEST_GUILESS_MAIN, so we simulate it.
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
TestChecksumValidator tc;
|
||||
return QTest::qExec(&tc, argc, argv);
|
||||
}
|
||||
#else
|
||||
QTEST_GUILESS_MAIN(TestChecksumValidator)
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue