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 35 36 37 38 39 40 41 42
|
From: Simon McVittie <smcv@debian.org>
Date: Thu, 26 Jul 2018 09:55:34 +0100
Subject: Skip test for GNOME#753605
It relies on a non-free JPEG that happens to exhibit the bug, which is
excluded from the Debian source package.
Forwarded: not-needed
---
tests/meson.build | 1 -
tests/pixbuf-jpeg.c | 6 ++++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/meson.build b/tests/meson.build
index 28c2525..c0ecf30 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -140,7 +140,6 @@ test_data = [
'bug143608-comment.jpg',
'bug725582-testrotate.jpg',
'bug725582-testrotate.png',
- 'bug753605-atsize.jpg',
'cve-2015-4491.bmp',
'large.png',
'large.jpg',
diff --git a/tests/pixbuf-jpeg.c b/tests/pixbuf-jpeg.c
index be2c6b4..7d0ff87 100644
--- a/tests/pixbuf-jpeg.c
+++ b/tests/pixbuf-jpeg.c
@@ -127,6 +127,12 @@ test_at_size (void)
return;
}
+ if (!g_file_test (g_test_get_filename (G_TEST_DIST, "bug753605-atsize.jpg", NULL), G_FILE_TEST_EXISTS))
+ {
+ g_test_skip ("non-free test data removed");
+ return;
+ }
+
ref = gdk_pixbuf_new_from_file (g_test_get_filename (G_TEST_DIST, "bug753605-atsize.jpg", NULL), &error);
g_assert_no_error (error);
g_object_unref (ref);
|