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 <thomas.mcguire@kdab.com> Reviewed-by: Peter Hartmann <phartmann@rim.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
823e119fa8
commit
31f94e0285
@ -1068,8 +1068,12 @@ void tst_QFileInfo::fileTimes()
|
|||||||
RegCloseKey(key);
|
RegCloseKey(key);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_WINCE
|
#if defined(Q_OS_WINCE)
|
||||||
QEXPECT_FAIL("simple", "WinCE only stores date of access data, not the time", Continue);
|
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
|
#endif
|
||||||
QVERIFY(fileInfo.lastRead() > beforeRead);
|
QVERIFY(fileInfo.lastRead() > beforeRead);
|
||||||
QVERIFY(fileInfo.lastModified() > beforeWrite);
|
QVERIFY(fileInfo.lastModified() > beforeWrite);
|
||||||
|
Loading…
Reference in New Issue
Block a user