Run timing selftest on all platforms

Used to fail on our FreeBSD and Windows buildbots. Seems to be working at
least on my Darwin physical machine and on my Windows VM with MSYS2 now.
This commit is contained in:
Manuel Pégourié-Gonnard 2015-06-26 16:17:30 +02:00
parent 03db6b0da1
commit 633c6b6485

View File

@ -262,8 +262,7 @@ int main( int argc, char *argv[] )
/* Slow tests last */ /* Slow tests last */
/* Not stable enough on Windows and FreeBSD yet */ #if defined(MBEDTLS_TIMING_C)
#if __linux__ && defined(MBEDTLS_TIMING_C)
if( ( ret = mbedtls_timing_self_test( v ) ) != 0 ) if( ( ret = mbedtls_timing_self_test( v ) ) != 0 )
return( ret ); return( ret );
#endif #endif