Commit 8f5037d4 authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

add tests for the time shifted event descriptor

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 2175557f
...@@ -315,4 +315,9 @@ ...@@ -315,4 +315,9 @@
<array name="i_event_name" len_name="i_event_name_length" min_size="0" max_size="124" /> <array name="i_event_name" len_name="i_event_name_length" min_size="0" max_size="124" />
</descriptor> </descriptor>
<descriptor name="time shifted event" sname="tshifted_ev" fname="TimeShiftedEvent">
<integer name="i_ref_service_id" bitcount="16" default="0"/>
<integer name="i_ref_event_id" bitcount="16" default="0"/>
</descriptor>
</dr> </dr>
...@@ -2029,6 +2029,37 @@ static int main_short_event_2(void) ...@@ -2029,6 +2029,37 @@ static int main_short_event_2(void)
return i_err; return i_err;
} }
/* time shifted event */
static int main_tshifted_ev_(void)
{
BOZO_VARS(tshifted_ev);
BOZO_START(time shifted event);
/* check i_ref_service_id */
BOZO_init_integer(i_ref_service_id, 0);
BOZO_init_integer(i_ref_event_id, 0);
BOZO_begin_integer(i_ref_service_id, 16)
BOZO_DOJOB(TimeShiftedEvent);
BOZO_check_integer(i_ref_service_id, 16)
BOZO_CLEAN();
BOZO_end_integer(i_ref_service_id, 16)
/* check i_ref_event_id */
BOZO_init_integer(i_ref_service_id, 0);
BOZO_init_integer(i_ref_event_id, 0);
BOZO_begin_integer(i_ref_event_id, 16)
BOZO_DOJOB(TimeShiftedEvent);
BOZO_check_integer(i_ref_event_id, 16)
BOZO_CLEAN();
BOZO_end_integer(i_ref_event_id, 16)
BOZO_END(time shifted event);
return i_err;
}
/* main function */ /* main function */
int main(void) int main(void)
...@@ -2076,6 +2107,7 @@ int main(void) ...@@ -2076,6 +2107,7 @@ int main(void)
i_err |= main_short_event_0(); i_err |= main_short_event_0();
i_err |= main_short_event_1(); i_err |= main_short_event_1();
i_err |= main_short_event_2(); i_err |= main_short_event_2();
i_err |= main_tshifted_ev_();
if(i_err) if(i_err)
fprintf(stderr, "At least one test has FAILED !!!\n"); fprintf(stderr, "At least one test has FAILED !!!\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment