summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-07-14 18:17:20 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-07-14 18:17:20 +0000
commit052f3e6bd9a4f535d9376d35205fa52f702be49b (patch)
treea4ae70f65c43a47af2849acd354d767e02f650bc /tests
parentae937800de5f8fb7a9adec5189df8ada908b91e5 (diff)
downloadglib-052f3e6bd9a4f535d9376d35205fa52f702be49b.tar.gz
Skip a test if iconv doesn't support the encoding
svn path=/trunk/; revision=7180
Diffstat (limited to 'tests')
-rw-r--r--tests/convert-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/convert-test.c b/tests/convert-test.c
index 3ea3a6602..f21972737 100644
--- a/tests/convert-test.c
+++ b/tests/convert-test.c
@@ -44,7 +44,10 @@ test_iconv_state (void)
out = g_convert (in, -1, "UTF-8", "CP1255",
&bytes_read, &bytes_written, &error);
-
+
+ if (error && error->code == G_CONVERT_ERROR_NO_CONVERSION)
+ return; /* silently skip if CP1255 is not supported, see bug 467707 */
+
g_assert (error == NULL);
g_assert (bytes_read == 5);
g_assert (bytes_written == 10);