mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Add a test with an active_later event at event_base_free time.
This commit is contained in:
parent
95acdaa353
commit
1c3147f5e7
@ -1406,6 +1406,13 @@ test_active_later(void *ptr)
|
||||
tt_int_op(n_write_a_byte_cb, >, 100);
|
||||
tt_int_op(n_read_and_drain_cb, >, 100);
|
||||
tt_int_op(n_activate_other_event_cb, >, 100);
|
||||
|
||||
/* Now leave this one around, so that event_free sees it and removes
|
||||
* it. */
|
||||
event_active_later_(&ev3, EV_READ);
|
||||
event_base_assert_ok_(data->base);
|
||||
event_base_free(data->base);
|
||||
data->base = NULL;
|
||||
end:
|
||||
;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user