Ignore failures on GNU/Hurd in KMemoryInfoTest
authorPino Toscano <pino@debian.org>
Sat, 21 Feb 2026 15:46:03 +0000 (16:46 +0100)
committerAurélien COUDERC <coucouf@debian.org>
Sat, 21 Feb 2026 15:46:03 +0000 (16:46 +0100)
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

autotests/kmemoryinfotest.cpp

index 7365a46604a9d3dd335b6c8b1f85ef22caecae94..5ce20b02c4a64418fa0327cc324845cda51e800e 100644 (file)
@@ -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()
     QCOMPARE(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());
 }