[gdk-pixbuf/issue-123: 6/7] tests: Skip composite test when PNG is unsupported
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/issue-123: 6/7] tests: Skip composite test when PNG is unsupported
- Date: Thu, 2 Apr 2020 12:09:37 +0000 (UTC)
commit 15cd65aa8f8fa413ca9eba597e3f825a96b36e73
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Apr 2 12:45:56 2020 +0100
tests: Skip composite test when PNG is unsupported
tests/pixbuf-composite.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/tests/pixbuf-composite.c b/tests/pixbuf-composite.c
index d701f472f..14968c491 100644
--- a/tests/pixbuf-composite.c
+++ b/tests/pixbuf-composite.c
@@ -64,6 +64,13 @@ test_composite2 (void)
GdkPixbuf *src, *dest;
guchar *pixels, *p;
+ char *filename = g_test_get_filename (G_TEST_DIST, "test-image.png", NULL);
+ if (!format_supported (filename))
+ {
+ g_test_skip ("PNG format not supported");
+ return;
+ }
+
src = gdk_pixbuf_new_from_file (g_test_get_filename (G_TEST_DIST, "test-image.png", NULL), NULL);
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]