Avoid test failures on AIX and OSF/1.
[pspp] / tests / unicase / test-u8-tolower.c
index 4a8c3a9b05b9f2612766666f5841fb54fbcedb4a..1b43a1b7464c45b836c0434e80175592f985f632 100644 (file)
@@ -86,7 +86,7 @@ check (const uint8_t *input, size_t input_length,
     result = u8_tolower (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;