summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdirmodel
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-05-06 16:34:58 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-05-10 15:55:13 (GMT)
commit2df5a9567ff83a547c3c66e4b523844b78968108 (patch)
tree5af88ead0f623964c1c6d2f083842582c7779ac2 /tests/auto/qdirmodel
parent4ad58161814a80409f790bf8269e147551adfee0 (diff)
downloadQt-2df5a9567ff83a547c3c66e4b523844b78968108.zip
Qt-2df5a9567ff83a547c3c66e4b523844b78968108.tar.gz
Qt-2df5a9567ff83a547c3c66e4b523844b78968108.tar.bz2
Run autotests with minimal capabilities
The autotests were previously run with ALL-Tcb capability which gives them more access to the filesystem etc. than a typical Qt application. To have more realistic testing environmnent, tests are run with no capabilities other than those required for the Qt APIs they use. i.e. NetworkServices for network tests, None for others. Reviewed-by: Liang Qi
Diffstat (limited to 'tests/auto/qdirmodel')
-rw-r--r--tests/auto/qdirmodel/tst_qdirmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qdirmodel/tst_qdirmodel.cpp b/tests/auto/qdirmodel/tst_qdirmodel.cpp
index 1bc5b7f..41bbd87 100644
--- a/tests/auto/qdirmodel/tst_qdirmodel.cpp
+++ b/tests/auto/qdirmodel/tst_qdirmodel.cpp
@@ -613,6 +613,11 @@ void tst_QDirModel::task196768_sorting()
//this task showed that the persistent model indexes got corrupted when sorting
QString path = SRCDIR;
+#ifdef Q_OS_SYMBIAN
+ if(!RProcess().HasCapability(ECapabilityAllFiles))
+ QEXPECT_FAIL("", "QTBUG-9746", Continue);
+#endif
+
QDirModel model;
/* QDirModel has a bug if we show the content of the subdirectory inside a hidden directory