aboutsummaryrefslogtreecommitdiff
path: root/tests/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/platform.c')
-rw-r--r--tests/platform.c10
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
+})