diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-18 01:16:40 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-18 01:16:40 -0800 |
| commit | 7e844cf618d67675928fb4c6fadc6cc16db19d19 (patch) | |
| tree | cbb6b64780e01f14722887a72f6f727530fc4ef9 /tests/platform.c | |
| parent | 37582a286039f44cc7d8d3b0790e83c03a1ee5bc (diff) | |
| download | nng-7e844cf618d67675928fb4c6fadc6cc16db19d19.tar.gz nng-7e844cf618d67675928fb4c6fadc6cc16db19d19.tar.bz2 nng-7e844cf618d67675928fb4c6fadc6cc16db19d19.zip | |
Fixes for valgrind issues.
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(); }) |
