0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

Problem: no test for zmq_timers_timeout without any active timers

Solution: add test
This commit is contained in:
sigiesec 2017-08-23 10:31:44 +02:00
parent 6147e45a07
commit 7eebed56a5

View File

@ -136,6 +136,10 @@ void test_corner_cases ()
rc = zmq_timers_cancel (timers, timer_id);
assert (rc == -1 && errno == EINVAL);
// timeout without any timers active
rc = zmq_timers_timeout(timers);
assert (rc == -1);
rc = zmq_timers_destroy (&timers);
assert (rc == 0);
}