summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp')
-rw-r--r--tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
index 1317489e2f..fe63cecccd 100644
--- a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
+++ b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
@@ -195,6 +195,10 @@ void tst_QStorageInfo::tempFile()
file.close();
QStorageInfo storage2(file.fileName());
+ if (free == storage2.bytesFree() && storage2.fileSystemType() == "apfs") {
+ QEXPECT_FAIL("", "This test is likely to fail on APFS", Continue);
+ }
+
QVERIFY(free != storage2.bytesFree());
}
@@ -221,6 +225,9 @@ void tst_QStorageInfo::caching()
QCOMPARE(free, storage2.bytesFree());
storage2.refresh();
QCOMPARE(storage1, storage2);
+ if (free == storage2.bytesFree() && storage2.fileSystemType() == "apfs") {
+ QEXPECT_FAIL("", "This test is likely to fail on APFS", Continue);
+ }
QVERIFY(free != storage2.bytesFree());
}
#endif