From 31f94e028527ffa02b954a3a91eabe80e2926838 Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Thu, 13 Sep 2012 14:11:25 -0300 Subject: Blackberry: fix tst_QFileInfo::fileTimes() The Blackberry OS uses a filesystem with the noatime option, which returns a "wrong" access time. Change-Id: I04cdb899699e819a36e0917e30d750067b33388d Reviewed-by: Tobias Koenig Reviewed-by: Thomas McGuire Reviewed-by: Peter Hartmann Reviewed-by: Giuseppe D'Angelo --- tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/auto/corelib/io/qfileinfo') diff --git a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp index 59a28e1df5..5dc8c75e8d 100644 --- a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp +++ b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp @@ -1068,8 +1068,12 @@ void tst_QFileInfo::fileTimes() RegCloseKey(key); } #endif -#ifdef Q_OS_WINCE +#if defined(Q_OS_WINCE) QEXPECT_FAIL("simple", "WinCE only stores date of access data, not the time", Continue); +#elif defined(Q_OS_BLACKBERRY) + QEXPECT_FAIL("simple", "Blackberry OS uses the noatime filesystem option", Continue); + QEXPECT_FAIL("longfile", "Blackberry OS uses the noatime filesystem option", Continue); + QEXPECT_FAIL("longfile absolutepath", "Blackberry OS uses the noatime filesystem option", Continue); #endif QVERIFY(fileInfo.lastRead() > beforeRead); QVERIFY(fileInfo.lastModified() > beforeWrite); -- cgit v1.2.3