File: hurd-avoid-kmemoryinfotest-failures.diff

package info (click to toggle)
kf6-kcoreaddons 6.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 25,716 kB
  • sloc: cpp: 21,217; xml: 3,687; ansic: 38; sh: 34; python: 18; makefile: 7
file content (31 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Author: Pino Toscano <pino@debian.org>
Description: Ignore failures on GNU/Hurd in KMemoryInfoTest
 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.
Forwarded: not-needed
Last-Update: 2024-08-18

--- a/autotests/kmemoryinfotest.cpp
+++ b/autotests/kmemoryinfotest.cpp
@@ -21,6 +21,9 @@ KMemoryInfoTest::KMemoryInfoTest(QObject
 
 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());
 }