summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2019-04-01 11:16:22 +0200
committerPeter Varga <pvarga@inf.u-szeged.hu>2019-04-10 13:36:02 +0000
commit121e7452879db6a7c84b039cdb00a097ab4d6586 (patch)
tree96692f3e0513f2cc7f9de7f91530ac2e7fe28937 /tests
parent7947dcea76fec80613d045ab8204a70ecbe43feb (diff)
Skip downloadToReadOnlyDir auto test on Windows
It should be rather skipped than blacklisted since it is not expected to work on Windows. See the corresponding warning about ACLs: https://doc.qt.io/qt-5/qfile.html#setPermissions Task-number: QTBUG-74698 Change-Id: Iad66c028583d6811b7a413dd9800e9095d8f6da7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/qwebenginedownloaditem/BLACKLIST2
-rw-r--r--tests/auto/widgets/qwebenginedownloaditem/tst_qwebenginedownloaditem.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/widgets/qwebenginedownloaditem/BLACKLIST b/tests/auto/widgets/qwebenginedownloaditem/BLACKLIST
deleted file mode 100644
index a51117ae0..000000000
--- a/tests/auto/widgets/qwebenginedownloaditem/BLACKLIST
+++ /dev/null
@@ -1,2 +0,0 @@
-[downloadToReadOnlyDir]
-windows
diff --git a/tests/auto/widgets/qwebenginedownloaditem/tst_qwebenginedownloaditem.cpp b/tests/auto/widgets/qwebenginedownloaditem/tst_qwebenginedownloaditem.cpp
index c41315cd7..3a38c115d 100644
--- a/tests/auto/widgets/qwebenginedownloaditem/tst_qwebenginedownloaditem.cpp
+++ b/tests/auto/widgets/qwebenginedownloaditem/tst_qwebenginedownloaditem.cpp
@@ -1059,6 +1059,9 @@ void tst_QWebEngineDownloadItem::downloadToNonExistentDir()
void tst_QWebEngineDownloadItem::downloadToReadOnlyDir()
{
+#ifdef Q_OS_WIN
+ QSKIP("Cannot change file permissions on Windows.");
+#endif
QString baseName("test(1.test)");
QString extension("txt");
QString fileName = QString("%1.%2").arg(baseName).arg(extension);