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
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
|
|
Date: Tue, 15 Jun 2021 20:38:01 +0200
|
|
Subject: tests: Mark view-verification tests as incomplete in big-endian
|
|
archs
|
|
|
|
Saved pixmaps are invalid in big-endian architectures, so let's disable
|
|
the tests for now, checking only the basic metadata but not comparing
|
|
the contents.
|
|
|
|
Bug: https://gitlab.gnome.org/GNOME/mutter/-/issues/1850
|
|
Applied-upstream: no, this is a workaround
|
|
---
|
|
src/tests/meta-ref-test.c | 5 +++++
|
|
src/tests/ref-test-sanity.c | 5 +++++
|
|
2 files changed, 10 insertions(+)
|
|
|
|
diff --git a/src/tests/meta-ref-test.c b/src/tests/meta-ref-test.c
|
|
index a074a46..e385594 100644
|
|
--- a/src/tests/meta-ref-test.c
|
|
+++ b/src/tests/meta-ref-test.c
|
|
@@ -522,6 +522,11 @@ meta_ref_test_verify_view (ClutterStageView *view,
|
|
g_assert_cmpint (ref_status, ==, CAIRO_STATUS_SUCCESS);
|
|
ensure_expected_format (&ref_image);
|
|
|
|
+#if G_BYTE_ORDER == G_BIG_ENDIAN
|
|
+ g_test_incomplete ("View comparison is not supported by this architecture");
|
|
+ return;
|
|
+#endif
|
|
+
|
|
if (!compare_images (ref_image, view_image, &gl_fuzz,
|
|
&diff_stat))
|
|
{
|
|
diff --git a/src/tests/ref-test-sanity.c b/src/tests/ref-test-sanity.c
|
|
index 12a07bb..eb69967 100644
|
|
--- a/src/tests/ref-test-sanity.c
|
|
+++ b/src/tests/ref-test-sanity.c
|
|
@@ -108,6 +108,11 @@ meta_test_ref_test_sanity (void)
|
|
clutter_actor_set_background_color (actor2, &CLUTTER_COLOR_INIT (52, 101, 164, 255));
|
|
clutter_actor_add_child (stage, actor2);
|
|
|
|
+#if G_BYTE_ORDER == G_BIG_ENDIAN
|
|
+ g_test_incomplete ("View comparison is not supported by this architecture");
|
|
+ return;
|
|
+#endif
|
|
+
|
|
g_test_expect_message ("libmutter-test",
|
|
G_LOG_LEVEL_CRITICAL,
|
|
"Pixel difference exceeds limits*");
|