Use libevent_global_shutdown() to clean up in unit tests.

This bumps coverage up by a few lines. Every little bit helps.
This commit is contained in:
Nick Mathewson 2012-03-22 18:24:43 -04:00
parent 4fe81e238b
commit 15296d06bd

View File

@ -264,6 +264,9 @@ basic_test_cleanup(const struct testcase_t *testcase, void *ptr)
}
}
if (testcase->flags & TT_FORK)
libevent_global_shutdown();
free(data);
return 1;
@ -393,6 +396,8 @@ main(int argc, const char **argv)
if (tinytest_main(argc,argv,testgroups))
return 1;
libevent_global_shutdown();
return 0;
}