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:
parent
6147e45a07
commit
7eebed56a5
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user