mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Qt4 test build: QTemporaryDir only exist since Qt5
Disable that test for older versions of Qt
This commit is contained in:
parent
cdb88d621c
commit
371fc0ffa2
1 changed files with 7 additions and 0 deletions
|
@ -7,7 +7,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
|
||||
#include <QTemporaryDir>
|
||||
#endif
|
||||
#include <QtTest>
|
||||
|
||||
#include "utility.h"
|
||||
|
@ -35,6 +38,7 @@ class TestFolderMan: public QObject
|
|||
private slots:
|
||||
void testCheckPathValidityForNewFolder()
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
|
||||
QTemporaryDir dir;
|
||||
QVERIFY(dir.isValid());
|
||||
QDir dir2(dir.path());
|
||||
|
@ -81,6 +85,9 @@ private slots:
|
|||
QVERIFY(!folderman->checkPathValidityForNewFolder(dir.path() + "/link3").isNull());
|
||||
QVERIFY(!folderman->checkPathValidityForNewFolder(dir.path() + "/link4").isNull());
|
||||
QVERIFY(!folderman->checkPathValidityForNewFolder(dir.path() + "/link3/folder").isNull());
|
||||
#else
|
||||
QSKIP("Test not supported with Qt4", SkipSingle);
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue