Problem: test_timers frequently fails on travis-ci

Solution: relaxed test assertions, based on the actual time passed,
instead of assuming that this equals to the time slept
This commit is contained in:
sigiesec
2018-02-03 12:31:39 +01:00
committed by Simon Giesecke
parent 3baefc66ea
commit 88d8c768d1
6 changed files with 80 additions and 42 deletions

View File

@@ -541,8 +541,14 @@ ZMQ_EXPORT void zmq_atomic_counter_destroy (void **counter_p);
/* Starts the stopwatch. Returns the handle to the watch. */
ZMQ_EXPORT void *zmq_stopwatch_start (void);
#ifdef ZMQ_BUILD_DRAFT_API
/* Returns the number of microseconds elapsed since the stopwatch was */
/* started, but does not stop or deallocate the stopwatch. */
ZMQ_EXPORT unsigned long zmq_stopwatch_intermediate (void *watch_);
#endif
/* Stops the stopwatch. Returns the number of microseconds elapsed since */
/* the stopwatch was started. */
/* the stopwatch was started, and deallocates that watch. */
ZMQ_EXPORT unsigned long zmq_stopwatch_stop (void *watch_);
/* Sleeps for specified number of seconds. */