event-loop-test: Confirm distant timers do not fire
authorManuel Stoeckl <code@mstoeckl.com>
Thu, 16 Jan 2020 13:07:41 +0000 (08:07 -0500)
committerSimon Ser <contact@emersion.fr>
Tue, 21 Jan 2020 11:31:35 +0000 (11:31 +0000)
commit75d14834570bb0c851e792b520814888fb324c08
treec0a50c1fa357e6ab0ddf4291c64f0806b0d73633
parenta0d941e411820e6d49a528757f53fd0f6ce53f3e
event-loop-test: Confirm distant timers do not fire

This change expands the `event_loop_timer` test to use two different
timers with different timeouts; it now implicitly checks that e.g.
both timers do not expire at the same time, and that the first timer
expiring does not prevent the second from doing so. (While such failure
modes are unlikely with timer event sources based on individual
timerfds, they are possible when multiple timers share a common timerfd.)

Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
tests/event-loop-test.c