mutter/patches/workarounds/tests-Skip-thread-priority-test.patch

36 lines
1.1 KiB
Diff
Raw Normal View History

2024-08-13 17:22:25 +02:00
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;