Commit f9592870 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

timer: add some test cases

parent 35664fc8
......@@ -55,6 +55,17 @@ int main (void)
vlc_mutex_init (&data.lock);
data.count = 0;
val = vlc_timer_create (&data.timer, callback, &data);
assert (val == 0);
vlc_timer_destroy (data.timer);
assert (data.count == 0);
val = vlc_timer_create (&data.timer, callback, &data);
assert (val == 0);
vlc_timer_schedule (data.timer, false, CLOCK_FREQ << 20, CLOCK_FREQ);
vlc_timer_destroy (data.timer);
assert (data.count == 0);
val = vlc_timer_create (&data.timer, callback, &data);
assert (val == 0);
......
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