Values that aren't representable as unsigned give undefined results.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4219)
&& TEST_int_eq(isxdigit(n) != 0, ossl_isxdigit(n) != 0);
}
-static int test_ctype_negative(int n)
-{
- return test_ctype_chars(-n);
-}
-
static struct {
int u;
int l;
{ '%', '%' },
{ '~', '~' },
{ 0, 0 },
- { EOF, EOF },
- { 333, 333 },
- { -333, -333 },
- { -128, -128 }
+ { EOF, EOF }
};
static int test_ctype_toupper(int n)
int setup_tests(void)
{
ADD_ALL_TESTS(test_ctype_chars, 256);
- ADD_ALL_TESTS(test_ctype_negative, 128);
ADD_ALL_TESTS(test_ctype_toupper, OSSL_NELEM(case_change));
ADD_ALL_TESTS(test_ctype_tolower, OSSL_NELEM(case_change));
return 1;