Unit test for event_get_struct_event_size()

This commit is contained in:
Nick Mathewson 2010-06-21 12:23:32 -04:00
parent 9659eced03
commit 7510aac3b9

View File

@ -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