From: Pino Toscano Date: Sat, 12 Apr 2025 17:34:49 +0000 (+0200) Subject: Ignore failures on GNU/Hurd in KMemoryInfoTest X-Git-Tag: archive/raspbian/6.23.0-1+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b68bb6ae4db6916cb4c12032fb66f9c433710669;p=kf6-kcoreaddons.git Ignore failures on GNU/Hurd in KMemoryInfoTest Forwarded: not-needed Last-Update: 2024-08-18 KMemoryInfo is not implemented on GNU/Hurd yet, and thus the tests for it currently fail. Since KMemoryInfo was implemented more than 2 years ago, technically it has always been "broken". Hence, ignore the failures for it, waiting for a proper implementation. Gbp-Pq: Name hurd-avoid-kmemoryinfotest-failures.diff --- diff --git a/autotests/kmemoryinfotest.cpp b/autotests/kmemoryinfotest.cpp index df82af6..d4fa2a9 100644 --- a/autotests/kmemoryinfotest.cpp +++ b/autotests/kmemoryinfotest.cpp @@ -21,6 +21,9 @@ KMemoryInfoTest::KMemoryInfoTest(QObject *parent) void KMemoryInfoTest::isNull() { +#ifdef Q_OS_HURD + QEXPECT_FAIL("", "KMemoryInfoTest is not implemented on Hurd yet", Abort); +#endif KMemoryInfo m; QVERIFY(!m.isNull()); } @@ -32,6 +35,9 @@ void KMemoryInfoTest::operators() QVERIFY(m == m1); // paranoia check +#ifdef Q_OS_HURD + QEXPECT_FAIL("", "KMemoryInfoTest is not implemented on Hurd yet", Abort); +#endif QVERIFY(m.totalPhysical() != 0); QCOMPARE(m.totalPhysical(), m1.totalPhysical()); }