Avoid test failures on AIX and OSF/1.
[gnulib.git] / tests / unicase / test-u16-toupper.c
index e47a0a1..ed9fd6b 100644 (file)
@@ -86,7 +86,7 @@ check (const uint16_t *input, size_t input_length,
     result = u16_toupper (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;