mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 14:28:31 +00:00
Relax timing_self_test for windows idiosyncrasies
This commit is contained in:
parent
04b7eec539
commit
e578b1c79a
1 changed files with 3 additions and 1 deletions
|
@ -414,7 +414,9 @@ int mbedtls_timing_self_test( int verbose )
|
||||||
|
|
||||||
millisecs = mbedtls_timing_get_timer( &hires, 0 );
|
millisecs = mbedtls_timing_get_timer( &hires, 0 );
|
||||||
|
|
||||||
if( millisecs < 900 * secs || millisecs > 1100 * secs )
|
/* For some reason on Windows it looks like alarm has an extra delay
|
||||||
|
* (maybe related to creating a new thread). Allow some room here. */
|
||||||
|
if( millisecs < 800 * secs || millisecs > 1200 * secs + 300 )
|
||||||
{
|
{
|
||||||
if( verbose != 0 )
|
if( verbose != 0 )
|
||||||
mbedtls_printf( "failed\n" );
|
mbedtls_printf( "failed\n" );
|
||||||
|
|
Loading…
Reference in a new issue