mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 20:58:26 +00:00
Fix the 'error' test suite
This commit is contained in:
parent
b05db2a6aa
commit
725afd8b55
2 changed files with 5 additions and 3 deletions
|
@ -61,7 +61,9 @@ int verify_int( char *str, int *value )
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( str[i] < '0' || str[i] > '9' )
|
if( ! ( ( str[i] >= '0' && str[i] <= '9' ) ||
|
||||||
|
( hex && ( ( str[i] >= 'a' && str[i] <= 'f' ) ||
|
||||||
|
( str[i] >= 'A' && str[i] <= 'F' ) ) ) ) )
|
||||||
{
|
{
|
||||||
digits = 0;
|
digits = 0;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -14,8 +14,8 @@ Non existing high error
|
||||||
error_strerror:-0x8880:"UNKNOWN ERROR CODE (8880)"
|
error_strerror:-0x8880:"UNKNOWN ERROR CODE (8880)"
|
||||||
|
|
||||||
Non existing low error
|
Non existing low error
|
||||||
error_strerror:-0x0001:"UNKNOWN ERROR CODE (0001)"
|
error_strerror:-0x007F:"UNKNOWN ERROR CODE (007F)"
|
||||||
|
|
||||||
Non existing low and high error
|
Non existing low and high error
|
||||||
error_strerror:-0x8881:"UNKNOWN ERROR CODE (8880) \: UNKNOWN ERROR CODE (0001)"
|
error_strerror:-0x88FF:"UNKNOWN ERROR CODE (8880) \: UNKNOWN ERROR CODE (007F)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue