From eff19ed799c37f3122aca510e2469f4e8fbe1a46 Mon Sep 17 00:00:00 2001 From: Tobias Koenig Date: Mon, 2 Feb 2015 11:54:57 +0000 Subject: [PATCH] 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 Reviewed-by: Thiago Macieira Reviewed-by: Ivan Komissarov --- tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()