From 0f79babd4b95bf287728721ac4e24533917207fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 9 Apr 2014 09:56:16 +0200 Subject: [PATCH] Disable timing_selftest() for now --- library/timing.c | 3 +++ programs/test/selftest.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/library/timing.c b/library/timing.c index 7085b3b6a..d8b5b4628 100644 --- a/library/timing.c +++ b/library/timing.c @@ -326,6 +326,9 @@ void m_sleep( int milliseconds ) /* * Checkup routine + * + * Warning: this is work in progress, some tests may not be reliable enough + * yet! False positives may happen. */ int timing_self_test( int verbose ) { diff --git a/programs/test/selftest.c b/programs/test/selftest.c index 82477e507..ba6e1d5c4 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -195,7 +195,10 @@ int main( int argc, char *argv[] ) #endif #endif -#if defined(POLARSSL_TIMING_C) +/* + * Not reliable enough yet + */ +#if 0 && defined(POLARSSL_TIMING_C) if( ( ret = timing_self_test( v ) ) != 0 ) return( ret ); #endif