File: tests-Skip-thread-priority-test.patch

package info (click to toggle)
mutter 48.4-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 50,240 kB
  • sloc: ansic: 376,779; xml: 3,703; python: 3,060; sh: 391; ruby: 167; makefile: 61; javascript: 26
file content (34 lines) | stat: -rw-r--r-- 1,119 bytes parent folder | download | duplicates (3)
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
32
33
34
From: =?utf-8?q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com>
Date: Mon, 21 Aug 2023 11:45:48 -0400
Subject: tests: Skip thread priority test

This test added to 45 fails on Ubuntu's armhf builders

https://launchpad.net/ubuntu/+source/mutter/45~beta.1-0ubuntu1/+latestbuild/armhf

and on Debian's i386

https://buildd.debian.org/status/logs.php?pkg=mutter&arch=i386

Architecture defines are at
https://wiki.debian.org/ArchitectureSpecificsMemo
---
 src/tests/native-thread.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tests/native-thread.c b/src/tests/native-thread.c
index 9dfe57c..fc8d0c5 100644
--- a/src/tests/native-thread.c
+++ b/src/tests/native-thread.c
@@ -1150,6 +1150,11 @@ assert_thread_levels (uint32_t expected_priority,
   uint32_t priority = UINT32_MAX;
   int32_t nice_level = INT32_MAX;
 
+#if defined  __arm__ || defined __i386__
+  g_test_incomplete ("Modifying thread priority is not supported by this architecture");
+  return;
+#endif
+
   priority_variant =
     call_rtkit_mock_method ("GetThreadPriority",
                             g_variant_new ("(t)", gettid ()));