mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
try to reproduce random assert fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@@ -84,7 +84,8 @@ void time_delay_seconds(int delay_secs)
|
||||
sleep_ms(delay_secs * 1000);
|
||||
|
||||
elapsed_secs = mbedtls_time(NULL) - current;
|
||||
TEST_ASSERT(elapsed_secs >= delay_secs && elapsed_secs < 4 + delay_secs);
|
||||
TEST_ASSERT(elapsed_secs >= delay_secs);
|
||||
TEST_ASSERT(elapsed_secs < 4 + delay_secs);
|
||||
/* This goto is added to avoid warnings from the generated code. */
|
||||
goto exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user