[gdk-pixbuf] tests: Add test for bug 776105



commit a700ecc5a93a494e89beea8b1f8a8dcabb1f3d45
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Dec 18 01:27:02 2016 +0100

    tests: Add test for bug 776105
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776105

 tests/pixbuf-pixdata.c        |    4 ++++
 tests/resources.gresource.xml |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/pixbuf-pixdata.c b/tests/pixbuf-pixdata.c
index 558e581..31ff4e5 100644
--- a/tests/pixbuf-pixdata.c
+++ b/tests/pixbuf-pixdata.c
@@ -107,6 +107,10 @@ test_pixdata (void)
   g_assert_no_error (error);
   g_object_unref (ref);
 
+  ref = gdk_pixbuf_new_from_resource ("/test/resource/icc-profile-compressed.pixdata", &error);
+  g_assert_no_error (error);
+  g_object_unref (ref);
+
   path = g_test_get_filename (G_TEST_DIST, "test-image.pixdata", NULL);
   ref = gdk_pixbuf_new_from_file (path, &error);
   g_assert_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE);
diff --git a/tests/resources.gresource.xml b/tests/resources.gresource.xml
index 94c7b0a..9e35aaa 100644
--- a/tests/resources.gresource.xml
+++ b/tests/resources.gresource.xml
@@ -3,6 +3,7 @@
   <gresource prefix="/test/resource">
     <file>icc-profile.png</file>
     <file preprocess="to-pixdata" alias="icc-profile.pixdata">icc-profile.png</file>
+    <file preprocess="to-pixdata" compressed="true" 
alias="icc-profile-compressed.pixdata">icc-profile.png</file>
     <file>cve-2015-4491.bmp</file>
   </gresource>
 </gresources>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]