mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 23:05:03 -04:00
Check event_base correctness at end of each unit test
This commit is contained in:
parent
27737d55ae
commit
3312b02036
@ -76,6 +76,7 @@
|
||||
#include "tinytest.h"
|
||||
#include "tinytest_macros.h"
|
||||
#include "../iocp-internal.h"
|
||||
#include "../event-internal.h"
|
||||
|
||||
long
|
||||
timeval_msec_diff(const struct timeval *start, const struct timeval *end)
|
||||
@ -254,8 +255,10 @@ basic_test_cleanup(const struct testcase_t *testcase, void *ptr)
|
||||
}
|
||||
|
||||
if (testcase->flags & TT_NEED_BASE) {
|
||||
if (data->base)
|
||||
if (data->base) {
|
||||
event_base_assert_ok(data->base);
|
||||
event_base_free(data->base);
|
||||
}
|
||||
}
|
||||
|
||||
free(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user