mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
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:
parent
4fe81e238b
commit
15296d06bd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user