diff mbox

[API-NEXT,v4,4/6] validation: time: add test convertsion on 0

Message ID 1450369889-4310-5-git-send-email-ivan.khoronzhuk@linaro.org
State Superseded
Headers show

Commit Message

Ivan Khoronzhuk Dec. 17, 2015, 4:31 p.m. UTC
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
---
 test/validation/time/time.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/test/validation/time/time.c b/test/validation/time/time.c
index 4040b9f..ce6666f 100644
--- a/test/validation/time/time.c
+++ b/test/validation/time/time.c
@@ -50,6 +50,10 @@  void time_test_odp_conversion(void)
 	upper_limit = ns1 + TOLERANCE;
 	lower_limit = ns1 - TOLERANCE;
 	CU_ASSERT((ns2 <= upper_limit) && (ns2 >= lower_limit));
+
+	/* test on 0 */
+	ns1 = odp_time_to_ns(ODP_TIME_NULL);
+	CU_ASSERT(ns1 == 0);
 }
 
 void time_test_monotony(void)