diff mbox

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

Message ID 1450440117-5588-5-git-send-email-ivan.khoronzhuk@linaro.org
State Accepted
Commit 94b2de60ea9cc6d16a0a612679a9cca8c7f673bf
Headers show

Commit Message

Ivan Khoronzhuk Dec. 18, 2015, 12:01 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)