summaryrefslogtreecommitdiff
path: root/tests/uninorm/test-u8-nfc.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-04-07 02:59:43 +0200
committerBruno Haible <bruno@clisp.org>2009-04-07 02:59:43 +0200
commit1cacbc0d7b672e30b41fd3a422bf274501233339 (patch)
tree1621bb5e3a80c61f5fe31e0d37d408b2a0f9c54a /tests/uninorm/test-u8-nfc.c
parentaddb243b52a49f2e97ce88443a10cbed90f402a6 (diff)
downloadgnulib-1cacbc0d7b672e30b41fd3a422bf274501233339.tar.gz
Avoid test failures on AIX and OSF/1.
Diffstat (limited to 'tests/uninorm/test-u8-nfc.c')
-rw-r--r--tests/uninorm/test-u8-nfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/uninorm/test-u8-nfc.c b/tests/uninorm/test-u8-nfc.c
index 5a86e59f26..52baa68bc9 100644
--- a/tests/uninorm/test-u8-nfc.c
+++ b/tests/uninorm/test-u8-nfc.c
@@ -88,7 +88,7 @@ check (const uint8_t *input, size_t input_length,
result = u8_normalize (UNINORM_NFC, input, input_length, preallocated, &length);
if (!(result != NULL))
return 8;
- if (!(result == preallocated))
+ if (!(preallocated == NULL || result == preallocated))
return 9;
if (!(length == expected_length))
return 10;