Avoid test failures on AIX and OSF/1.
[gnulib.git] / tests / unicase / test-u32-totitle.c
index 8daae7c..82c4b0f 100644 (file)
@@ -86,7 +86,7 @@ check (const uint32_t *input, size_t input_length,
     result = u32_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;