ta: os_test: fix TA time wrap test

In the TA time wrap test, the TA time is set to its maximum value. After
one second delay, the TA time was compared to the system time.

The comparaison with the system time might not be pertinent as it is
most likely more than dozen seconds.

Compare the wrapped time to a fixed value instead.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/ta/os_test/os_test.c b/ta/os_test/os_test.c
index d6edb3d..d40e8f9 100644
--- a/ta/os_test/os_test.c
+++ b/ta/os_test/os_test.c
@@ -635,10 +635,9 @@
 	printf("TA time %u.%03u\n", (unsigned int)t.seconds,
 	       (unsigned int)t.millis);
 
-	if (t.seconds > sys_t.seconds) {
-		EMSG("Unexpected wrapped time %u.%03u (sys_t %u.%03u)\n",
-		     (unsigned int)t.seconds, (unsigned int)t.millis,
-		     (unsigned int)sys_t.seconds, (unsigned int)sys_t.millis);
+	if (t.seconds > 1) {
+		EMSG("Unexpected wrapped time %u.%03u\n",
+		     (unsigned int)t.seconds, (unsigned int)t.millis);
 		return TEE_ERROR_BAD_STATE;
 	}