diff options
| author | Alon Levy <alevy@redhat.com> | 2011-07-05 13:59:47 +0200 |
|---|---|---|
| committer | Alon Levy <alevy@redhat.com> | 2011-07-05 14:08:30 +0200 |
| commit | 86f7b490a90fa7af6e137357d91476abd1cd0e61 (patch) | |
| tree | d1065578aa4f5aa83c9772216055bbba2ef2911f /server/tests/basic_event_loop.c | |
| parent | 8b5be0609f5226234aaefdb9197b2e189b1a0339 (diff) | |
server/tests/basic_event_loop: strange assert failure; fix
Diffstat (limited to 'server/tests/basic_event_loop.c')
| -rw-r--r-- | server/tests/basic_event_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c index 8db4426e..833f971d 100644 --- a/server/tests/basic_event_loop.c +++ b/server/tests/basic_event_loop.c @@ -159,11 +159,11 @@ static void add_ms_to_timeval(struct timeval *tv, int ms) static void timer_start(SpiceTimer *timer, uint32_t ms) { + ASSERT(ms); gettimeofday(&timer->tv_start, NULL); timer->ms = ms; // already add ms to timer value add_ms_to_timeval(&timer->tv_start, ms); - ASSERT(timer->ms); } static void timer_cancel(SpiceTimer *timer) |
