From 3ab7b96f35bde556d23b3ebcc322dd50c12597c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 6 Jul 2015 17:17:55 +0200 Subject: [PATCH] Make hardclock selftest optional --- library/timing.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/timing.c b/library/timing.c index 5d58f529a..c5d8d42a1 100644 --- a/library/timing.c +++ b/library/timing.c @@ -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): " );