From 7e844cf618d67675928fb4c6fadc6cc16db19d19 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 18 Jan 2017 01:16:40 -0800 Subject: Fixes for valgrind issues. --- tests/platform.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/platform.c') diff --git a/tests/platform.c b/tests/platform.c index fb8ee2a7..5bfdc367 100644 --- a/tests/platform.c +++ b/tests/platform.c @@ -72,13 +72,12 @@ nop(void) return (0); } -TestMain("Platform Operations", { +Main({ + nni_init(); + + Test("Platform Operations", { // This is required for anything else to work - int rv = nni_plat_init(nop); - Convey("Platform init worked", { - So(rv == 0); - }) Convey("The clock works", { uint64_t now = getms(); @@ -205,4 +204,6 @@ TestMain("Platform Operations", { nni_mtx_unlock(&arg.mx); }) }) + }) + nni_fini(); }) -- cgit v1.2.3-70-g09d2