mutter/patches/workarounds/tests-Skip-thread-priority-test.patch
Ward from fusion-voyager-3 a1d3a8b37d
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Has been cancelled
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Failing after 17s
PikaOS Package Build Only (amd64-v3) / build (push) Failing after 13s
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 13s
attempt to fix xwayland frac scale
2024-08-13 11:22:25 -04:00

36 lines
1.1 KiB
Diff

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 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/tests/native-thread.c b/src/tests/native-thread.c
index abe944b..178379f 100644
--- a/src/tests/native-thread.c
+++ b/src/tests/native-thread.c
@@ -1156,6 +1156,12 @@ assert_realtime (MetaThreadImpl *thread_impl,
g_variant_new ("(t)", gettid ()));
g_variant_get (ret, "(u)", &priority);
+
+#if defined __arm__ || defined __i386__
+ g_test_incomplete ("Modifying thread priority is not supported by this architecture");
+ return NULL;
+#endif
+
g_assert_cmpint (priority, ==, 20);
return NULL;