Make hardclock selftest optional

This commit is contained in:
Manuel Pégourié-Gonnard 2015-07-06 17:17:55 +02:00
parent 5574546524
commit 3ab7b96f35

View File

@ -437,9 +437,9 @@ hard_test:
if( hardfail > 1 )
{
if( verbose != 0 )
polarssl_printf( "failed\n" );
polarssl_printf( "failed (ignored)\n" );
return( 1 );
goto hard_test_done;
}
/* Get a reference ratio cycles/ms */
@ -468,6 +468,8 @@ hard_test:
if( verbose != 0 )
polarssl_printf( "passed\n" );
hard_test_done:
#if defined(POLARSSL_NET_C) && defined(POLARSSL_HAVE_TIME)
if( verbose != 0 )
polarssl_printf( " TIMING test #4 (net_usleep/ get_timer): " );