workaround the assert fail with tollerance

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/tests/suites/test_suite_platform.function b/tests/suites/test_suite_platform.function
index 1d661b2..f4e12bf 100644
--- a/tests/suites/test_suite_platform.function
+++ b/tests/suites/test_suite_platform.function
@@ -84,7 +84,12 @@
     sleep_ms(delay_secs * 1000);
 
     elapsed_secs = mbedtls_time(NULL) - current;
-    TEST_ASSERT(elapsed_secs >= delay_secs);
+
+    /* Built-in mbedtls_time function returns the number of seconds since the
+     * Epoch. That is affected by discontinuous jumps and cause test fail.
+     * Workaround it with 1 seconds tollerance.
+     */
+    TEST_ASSERT(elapsed_secs >= delay_secs - 1);
     TEST_ASSERT(elapsed_secs < 4 + delay_secs);
     /* This goto is added to avoid warnings from the generated code. */
     goto exit;