diff options
Diffstat (limited to 'tests/platform.c')
| -rw-r--r-- | tests/platform.c | 11 |
1 files changed, 6 insertions, 5 deletions
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(); }) |
