Avoid test failures on AIX and OSF/1.
[pspp] / tests / unicase / test-u32-tolower.c
index 626d749c46118d03291269c51fbcaa681aa6344e..a4318787b20629ed98fcfc9dd7a73a9631a92fd4 100644 (file)
@@ -86,7 +86,7 @@ check (const uint32_t *input, size_t input_length,
     result = u32_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;