Avoid test failures on AIX and OSF/1.
[gnulib.git] / tests / unicase / test-u16-totitle.c
index 792cc93..3839c90 100644 (file)
@@ -86,7 +86,7 @@ check (const uint16_t *input, size_t input_length,
     result = u16_totitle (input, input_length, iso639_language, nf, preallocated, &length);
     if (!(result != NULL))
       return 8;
-    if (!(result == preallocated))
+    if (!(preallocated == NULL || result == preallocated))
       return 9;
     if (!(length == expected_length))
       return 10;