summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-06 16:12:28 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-06 16:28:36 (GMT)
commit7ab03e0565bef0f38ff70c069a4b0b0bdb234d68 (patch)
treedcc2e19c23af5d5d3ab0e4d1f152f96227609d64 /tests
parent30655da0d7b41899b10ef662622292be8571f9c4 (diff)
downloadQt-7ab03e0565bef0f38ff70c069a4b0b0bdb234d68.zip
Qt-7ab03e0565bef0f38ff70c069a4b0b0bdb234d68.tar.gz
Qt-7ab03e0565bef0f38ff70c069a4b0b0bdb234d68.tar.bz2
tst_qfileinfo fixed for Windows CE
Win CE doesn't support real file permissions (FAT only). Further, we don't have pagefile.sys. Reviewed-by: thartman
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp
index 512f2b6..a87e306 100644
--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp
@@ -749,7 +749,7 @@ void tst_QFileInfo::size()
void tst_QFileInfo::systemFiles()
{
-#ifndef Q_OS_WIN
+#if !defined(Q_OS_WIN) || defined(Q_OS_WINCE)
QSKIP("This is a Windows only test", SkipAll);
#endif
QFileInfo fi("c:\\pagefile.sys");
@@ -1077,7 +1077,13 @@ void tst_QFileInfo::isWritable()
{
QVERIFY(QFileInfo("tst_qfileinfo.cpp").isWritable());
#ifdef Q_OS_WIN
- QVERIFY(!QFileInfo("c:\\pagefile.sys").isWritable());
+#ifdef Q_OS_WINCE
+ QFileInfo fi("\\Windows\\wince.nls");
+#else
+ QFileInfo fi("c:\\pagefile.sys");
+#endif
+ QVERIFY(fi.exists());
+ QVERIFY(!fi.isWritable());
#endif
#ifdef Q_OS_UNIX
if (::getuid() == 0)