mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04: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
|
#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[] = {
|
struct testcase_t main_testcases[] = {
|
||||||
/* Some converted-over tests */
|
/* Some converted-over tests */
|
||||||
{ "methods", test_methods, TT_FORK, NULL, NULL },
|
{ "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 },
|
{ "mm_functions", test_mm_functions, TT_FORK, NULL, NULL },
|
||||||
BASIC(many_events, TT_ISOLATED),
|
BASIC(many_events, TT_ISOLATED),
|
||||||
|
|
||||||
|
{ "struct_event_size", test_struct_event_size, 0, NULL, NULL },
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
LEGACY(fork, TT_ISOLATED),
|
LEGACY(fork, TT_ISOLATED),
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user