summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Koenig <tobias.koenig@kdab.com>2015-02-02 11:54:57 +0000
committerTobias Koenig <tobias.koenig@kdab.com>2015-02-14 08:12:46 +0000
commiteff19ed799c37f3122aca510e2469f4e8fbe1a46 (patch)
tree0da53bc3349de5f2369fdc59dd0b52eb21a6c29f
parente731a96ac17b4a952351236000eac0ef782ad0bb (diff)
Haiku: Adapt tst_qstorageinfo unit test to Haiku
On Haiku the '/' filesystem is a pure namespace to mount in the actual root partition (/boot), and therefor returns 0 for free/available/total bytes. Change-Id: I60d4786389e01ee271f6cd1aba6f96b19e6a828f Reviewed-by: Augustin Cavalier <waddlesplash@gmail.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
-rw-r--r--tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
index fc2ffb02a9..2190c32c01 100644
--- a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
+++ b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
@@ -105,9 +105,11 @@ void tst_QStorageInfo::root()
QVERIFY(storage.isRoot());
QVERIFY(!storage.device().isEmpty());
QVERIFY(!storage.fileSystemType().isEmpty());
+#ifndef Q_OS_HAIKU
QVERIFY(storage.bytesTotal() > 0);
QVERIFY(storage.bytesFree() > 0);
QVERIFY(storage.bytesAvailable() > 0);
+#endif
}
void tst_QStorageInfo::currentStorage()