Disable the tests that verify that the available space shrunk

Somehow, it doesn't shrink with btrfs, even if you write 1 MB of non-
null data. This does not seem to be a bug in QStorageInfo. strace
confirms that there is a second statvfs call happening.

Change-Id: I9ed99d27d25e191916278e6b8faeae132469fc63
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Thiago Macieira 2014-08-26 12:00:30 -07:00
parent cd2ac1e2e5
commit 749f4f0e55

View File

@ -154,6 +154,11 @@ void tst_QStorageInfo::tempFile()
QVERIFY(file.open());
QStorageInfo storage1(file.fileName());
#ifdef Q_OS_LINUX
if (storage1.fileSystemType() == "btrfs")
QSKIP("This test doesn't work on btrfs, probably due to a btrfs bug");
#endif
qint64 free = storage1.bytesFree();
file.write(QByteArray(1024*1024, '1'));
@ -170,6 +175,11 @@ void tst_QStorageInfo::caching()
QVERIFY(file.open());
QStorageInfo storage1(file.fileName());
#ifdef Q_OS_LINUX
if (storage1.fileSystemType() == "btrfs")
QSKIP("This test doesn't work on btrfs, probably due to a btrfs bug");
#endif
qint64 free = storage1.bytesFree();
QStorageInfo storage2(storage1);
QVERIFY(free == storage2.bytesFree());