Mercurial > hg > octave-nkf > gnulib-hg
changeset 11466:f8e64c4210ee
Avoid test failures on AIX and OSF/1.
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,32 @@ +2009-04-06 Bruno Haible <bruno@clisp.org> + + Avoid test failures on AIX and OSF/1. + * tests/unicase/test-u8-casefold.c (check): Account for the possibility + that malloc(0) = NULL. + * tests/unicase/test-u8-tolower.c (check): Likewise. + * tests/unicase/test-u8-totitle.c (check): Likewise. + * tests/unicase/test-u8-toupper.c (check): Likewise. + * tests/unicase/test-u16-casefold.c (check): Likewise. + * tests/unicase/test-u16-tolower.c (check): Likewise. + * tests/unicase/test-u16-totitle.c (check): Likewise. + * tests/unicase/test-u16-toupper.c (check): Likewise. + * tests/unicase/test-u32-casefold.c (check): Likewise. + * tests/unicase/test-u32-tolower.c (check): Likewise. + * tests/unicase/test-u32-totitle.c (check): Likewise. + * tests/unicase/test-u32-toupper.c (check): Likewise. + * tests/uninorm/test-u8-nfc.c (check): Likewise. + * tests/uninorm/test-u8-nfd.c (check): Likewise. + * tests/uninorm/test-u8-nfkc.c (check): Likewise. + * tests/uninorm/test-u8-nfkd.c (check): Likewise. + * tests/uninorm/test-u16-nfc.c (check): Likewise. + * tests/uninorm/test-u16-nfd.c (check): Likewise. + * tests/uninorm/test-u16-nfkc.c (check): Likewise. + * tests/uninorm/test-u16-nfkd.c (check): Likewise. + * tests/uninorm/test-u32-nfc.c (check): Likewise. + * tests/uninorm/test-u32-nfd.c (check): Likewise. + * tests/uninorm/test-u32-nfkc.c (check): Likewise. + * tests/uninorm/test-u32-nfkd.c (check): Likewise. + 2009-04-05 Bruno Haible <bruno@clisp.org> Work around an autoconf limitation.
--- a/tests/unicase/test-u16-casefold.c +++ b/tests/unicase/test-u16-casefold.c @@ -86,7 +86,7 @@ result = u16_casefold (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;
--- a/tests/unicase/test-u16-tolower.c +++ b/tests/unicase/test-u16-tolower.c @@ -86,7 +86,7 @@ result = u16_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;
--- a/tests/unicase/test-u16-totitle.c +++ b/tests/unicase/test-u16-totitle.c @@ -86,7 +86,7 @@ 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;
--- a/tests/unicase/test-u16-toupper.c +++ b/tests/unicase/test-u16-toupper.c @@ -86,7 +86,7 @@ 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;
--- a/tests/unicase/test-u32-casefold.c +++ b/tests/unicase/test-u32-casefold.c @@ -86,7 +86,7 @@ result = u32_casefold (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;
--- a/tests/unicase/test-u32-tolower.c +++ b/tests/unicase/test-u32-tolower.c @@ -86,7 +86,7 @@ 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;
--- a/tests/unicase/test-u32-totitle.c +++ b/tests/unicase/test-u32-totitle.c @@ -86,7 +86,7 @@ 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;
--- a/tests/unicase/test-u32-toupper.c +++ b/tests/unicase/test-u32-toupper.c @@ -86,7 +86,7 @@ result = u32_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;
--- a/tests/unicase/test-u8-casefold.c +++ b/tests/unicase/test-u8-casefold.c @@ -86,7 +86,7 @@ result = u8_casefold (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;
--- a/tests/unicase/test-u8-tolower.c +++ b/tests/unicase/test-u8-tolower.c @@ -86,7 +86,7 @@ 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;
--- a/tests/unicase/test-u8-totitle.c +++ b/tests/unicase/test-u8-totitle.c @@ -86,7 +86,7 @@ result = u8_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;
--- a/tests/unicase/test-u8-toupper.c +++ b/tests/unicase/test-u8-toupper.c @@ -86,7 +86,7 @@ result = u8_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;
--- a/tests/uninorm/test-u16-nfc.c +++ b/tests/uninorm/test-u16-nfc.c @@ -88,7 +88,7 @@ result = u16_normalize (UNINORM_NFC, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u16-nfd.c +++ b/tests/uninorm/test-u16-nfd.c @@ -88,7 +88,7 @@ result = u16_normalize (UNINORM_NFD, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u16-nfkc.c +++ b/tests/uninorm/test-u16-nfkc.c @@ -88,7 +88,7 @@ result = u16_normalize (UNINORM_NFKC, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u16-nfkd.c +++ b/tests/uninorm/test-u16-nfkd.c @@ -88,7 +88,7 @@ result = u16_normalize (UNINORM_NFKD, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u32-nfc.c +++ b/tests/uninorm/test-u32-nfc.c @@ -88,7 +88,7 @@ result = u32_normalize (UNINORM_NFC, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u32-nfd.c +++ b/tests/uninorm/test-u32-nfd.c @@ -88,7 +88,7 @@ result = u32_normalize (UNINORM_NFD, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u32-nfkc.c +++ b/tests/uninorm/test-u32-nfkc.c @@ -88,7 +88,7 @@ result = u32_normalize (UNINORM_NFKC, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u32-nfkd.c +++ b/tests/uninorm/test-u32-nfkd.c @@ -88,7 +88,7 @@ result = u32_normalize (UNINORM_NFKD, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u8-nfc.c +++ b/tests/uninorm/test-u8-nfc.c @@ -88,7 +88,7 @@ result = u8_normalize (UNINORM_NFC, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u8-nfd.c +++ b/tests/uninorm/test-u8-nfd.c @@ -88,7 +88,7 @@ result = u8_normalize (UNINORM_NFD, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u8-nfkc.c +++ b/tests/uninorm/test-u8-nfkc.c @@ -88,7 +88,7 @@ result = u8_normalize (UNINORM_NFKC, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;
--- a/tests/uninorm/test-u8-nfkd.c +++ b/tests/uninorm/test-u8-nfkd.c @@ -88,7 +88,7 @@ result = u8_normalize (UNINORM_NFKD, input, input_length, preallocated, &length); if (!(result != NULL)) return 8; - if (!(result == preallocated)) + if (!(preallocated == NULL || result == preallocated)) return 9; if (!(length == expected_length)) return 10;