diff options
author | Rober Ancell <robert.ancell@canonical.com> | 2014-01-15 11:26:08 +1300 |
---|---|---|
committer | Rober Ancell <robert.ancell@canonical.com> | 2014-01-15 11:26:08 +1300 |
commit | 18a95ab1b05f6be9607636c5bcbb031c0513e362 (patch) | |
tree | f9520856e86efff84f05d6aaa80a331e14d5215e /tests/pixbuf-save.c | |
parent | 6a0ad64f71eb8c7f7304a15c7db2aa84b3bb70d7 (diff) | |
download | gdk-pixbuf-18a95ab1b05f6be9607636c5bcbb031c0513e362.tar.gz |
Fix test failure if PNG_iTXt_SUPPORTED not defined
Diffstat (limited to 'tests/pixbuf-save.c')
-rw-r--r-- | tests/pixbuf-save.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pixbuf-save.c b/tests/pixbuf-save.c index 227f98d25..f7df29b79 100644 --- a/tests/pixbuf-save.c +++ b/tests/pixbuf-save.c @@ -104,7 +104,9 @@ test_save_options (void) gdk_pixbuf_save (ref, "pixbuf-save-options", "png", &error, "tEXt::option1", "Some text to transport via option", "tEXt::long-option-name123456789123456789123456789", "", +#ifdef PNG_iTXt_SUPPORTED "tEXt::3", "αβγδ", +#endif NULL); g_assert_no_error (error); @@ -113,7 +115,9 @@ test_save_options (void) g_assert_cmpstr (gdk_pixbuf_get_option (pixbuf, "tEXt::option1"), ==, "Some text to transport via option"); g_assert_cmpstr (gdk_pixbuf_get_option (pixbuf, "tEXt::long-option-name123456789123456789123456789"), ==, ""); +#ifdef PNG_iTXt_SUPPORTED g_assert_cmpstr (gdk_pixbuf_get_option (pixbuf, "tEXt::3"), ==, "αβγδ"); +#endif g_object_unref (pixbuf); g_object_unref (ref); |