mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Unit test for event_get_struct_event_size()
This commit is contained in:
parent
9659eced03
commit
7510aac3b9
@ -2167,6 +2167,14 @@ end:
|
||||
#undef MANY
|
||||
}
|
||||
|
||||
static void
|
||||
test_struct_event_size(void *arg)
|
||||
{
|
||||
tt_int_op(event_get_struct_event_size(), <=, sizeof(struct event));
|
||||
end:
|
||||
;
|
||||
}
|
||||
|
||||
struct testcase_t main_testcases[] = {
|
||||
/* Some converted-over tests */
|
||||
{ "methods", test_methods, TT_FORK, NULL, NULL },
|
||||
@ -2212,6 +2220,8 @@ struct testcase_t main_testcases[] = {
|
||||
{ "mm_functions", test_mm_functions, TT_FORK, NULL, NULL },
|
||||
BASIC(many_events, TT_ISOLATED),
|
||||
|
||||
{ "struct_event_size", test_struct_event_size, 0, NULL, NULL },
|
||||
|
||||
#ifndef WIN32
|
||||
LEGACY(fork, TT_ISOLATED),
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user