Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-12-15 16:50:41 +0300
committerOlivier Goffart <ogoffart@woboq.com>2017-12-15 16:51:00 +0300
commitee366df58f3eaf88c7775367d766d3f98647554e (patch)
tree99c93c06f9750e1b85aae4acf901524511056e08 /test/testfolderman.cpp
parent482ee875a19029242ec8290e5f21e64dab341c5f (diff)
Fix the TestFolderMan on Windows
Diffstat (limited to 'test/testfolderman.cpp')
-rw-r--r--test/testfolderman.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testfolderman.cpp b/test/testfolderman.cpp
index 39c657a05..15f044ba1 100644
--- a/test/testfolderman.cpp
+++ b/test/testfolderman.cpp
@@ -107,7 +107,7 @@ private slots:
QVERIFY(!folderman->checkPathValidityForNewFolder(dirPath + "/sub/ownCloud1/folder").isNull());
QVERIFY(!folderman->checkPathValidityForNewFolder(dirPath + "/sub/ownCloud1/folder/f").isNull());
-
+#ifndef Q_OS_WIN // no links on windows, no permissions
// make a bunch of links
QVERIFY(QFile::link(dirPath + "/sub/free", dirPath + "/link1"));
QVERIFY(QFile::link(dirPath + "/sub", dirPath + "/link2"));
@@ -129,7 +129,6 @@ private slots:
QVERIFY(!folderman->checkPathValidityForNewFolder(dirPath + "/link4").isNull());
QVERIFY(!folderman->checkPathValidityForNewFolder(dirPath + "/link3/folder").isNull());
-
// test some non existing sub path (error)
QVERIFY(!folderman->checkPathValidityForNewFolder(dirPath + "/sub/ownCloud1/some/sub/path").isNull());
QVERIFY(!folderman->checkPathValidityForNewFolder(dirPath + "/ownCloud2/blublu").isNull());
@@ -140,12 +139,13 @@ private slots:
QVERIFY(folderman->checkPathValidityForNewFolder(dirPath + "/link1/subfolder").isNull());
QVERIFY(folderman->checkPathValidityForNewFolder(dirPath + "/link2/free/subfolder").isNull());
- // Invalid paths
- QVERIFY(!folderman->checkPathValidityForNewFolder("").isNull());
-
// Should not have the rights
QVERIFY(!folderman->checkPathValidityForNewFolder("/").isNull());
QVERIFY(!folderman->checkPathValidityForNewFolder("/usr/bin/somefolder").isNull());
+#endif
+
+ // Invalid paths
+ QVERIFY(!folderman->checkPathValidityForNewFolder("").isNull());
}
void testFindGoodPathForNewSyncFolder()