add note about the tst_QFileInfo::fileTimes() test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-01 09:20:52 +03:00
parent fb2849a589
commit c888e37af5

View file

@ -751,6 +751,7 @@ void tst_QFileInfo::fileTimes()
QCOMPARE(line, fileName);
}
// NOTE: the test will fail if the the filesystem is mounted with noatime
QFileInfo fileInfo(fileName);
QVERIFY(fileInfo.lastRead() > beforeRead);
QVERIFY(fileInfo.lastModified() > beforeWrite);