diff options
| author | Garett D'Amore <garrett@damore.org> | 2017-01-01 20:14:36 -0800 |
|---|---|---|
| committer | Garett D'Amore <garrett@damore.org> | 2017-01-01 20:14:36 -0800 |
| commit | e5f24dee2d115d6a7f51cd4cae0b086c5be5c0de (patch) | |
| tree | 577a0b1dc04f1c452d3a6e47cb4f8e25917752e3 /tests/platform.c | |
| parent | 5402f3277115d043158b1585a4bb67fc67fa0155 (diff) | |
| download | nng-e5f24dee2d115d6a7f51cd4cae0b086c5be5c0de.tar.gz nng-e5f24dee2d115d6a7f51cd4cae0b086c5be5c0de.tar.bz2 nng-e5f24dee2d115d6a7f51cd4cae0b086c5be5c0de.zip | |
Valgrind test fixes (leaks due to unreaped threads.)
Diffstat (limited to 'tests/platform.c')
| -rw-r--r-- | tests/platform.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/platform.c b/tests/platform.c index aa14ffeb..d408959c 100644 --- a/tests/platform.c +++ b/tests/platform.c @@ -141,10 +141,14 @@ TestMain("Platform Operations", { Convey("It ran", { nni_usleep(50000); // for context switch So(val == 1); + nni_thr_fini(&thr); }) Convey("We can reap it", { nni_thr_fini(&thr); }) + Reset({ + nni_thr_fini(&thr); + }) }) }) Convey("Condition variables work", { @@ -198,5 +202,9 @@ TestMain("Platform Operations", { nni_mtx_unlock(&arg.mx); nni_thr_fini(&thr); }) + + Reset({ + nni_thr_fini(&thr); + }) }) -})
\ No newline at end of file +}) |
