Commit 7eebed56 authored by sigiesec's avatar sigiesec

Problem: no test for zmq_timers_timeout without any active timers

Solution: add test
parent 6147e45a
......@@ -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);
}
......
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