summaryrefslogtreecommitdiff
path: root/tests/test-striconveh.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-29 23:05:45 +0000
committerBruno Haible <bruno@clisp.org>2007-03-29 23:05:45 +0000
commited19b2c7ddd7da88eb8e0c2472e4a332cf409113 (patch)
tree51b477bb9b8cdb0a1b619845defdcdd555b2e280 /tests/test-striconveh.c
parent1036a1ce06b4db4555d078f52b04154f11fd1307 (diff)
downloadgnulib-ed19b2c7ddd7da88eb8e0c2472e4a332cf409113.tar.gz
Avoid test failures on OSF/1, IRIX, HP-UX, AIX.
Diffstat (limited to 'tests/test-striconveh.c')
-rw-r--r--tests/test-striconveh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-striconveh.c b/tests/test-striconveh.c
index 31b7b721d1..bb72662eaa 100644
--- a/tests/test-striconveh.c
+++ b/tests/test-striconveh.c
@@ -64,8 +64,6 @@ main ()
iconv_t cd_88592_to_utf8 = iconv_open ("UTF-8", "ISO-8859-2");
iconv_t cd_utf8_to_88592 = iconv_open ("ISO-8859-2", "UTF-8");
- ASSERT (cd_88591_to_88592 != (iconv_t)(-1));
- ASSERT (cd_88592_to_88591 != (iconv_t)(-1));
ASSERT (cd_88591_to_utf8 != (iconv_t)(-1));
ASSERT (cd_utf8_to_88591 != (iconv_t)(-1));
ASSERT (cd_88592_to_utf8 != (iconv_t)(-1));
@@ -457,8 +455,10 @@ main ()
free (result);
}
- iconv_close (cd_88591_to_88592);
- iconv_close (cd_88592_to_88591);
+ if (cd_88591_to_88592 != (iconv_t)(-1))
+ iconv_close (cd_88591_to_88592);
+ if (cd_88592_to_88591 != (iconv_t)(-1))
+ iconv_close (cd_88592_to_88591);
iconv_close (cd_88591_to_utf8);
iconv_close (cd_utf8_to_88591);
iconv_close (cd_88592_to_utf8);