summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-07-05 13:59:47 +0200
committerAlon Levy <alevy@redhat.com>2011-07-05 14:08:30 +0200
commit0d4d34492ca7135f4ffa3bd529c3f00f9199f6e0 (patch)
treeabd2cb46cf19ca590fecce8cdf8f01ea506735a7
parent4efa6c16c243ca8f26b1745b0ebdb392cb248cd6 (diff)
server/tests/basic_event_loop: strange assert failure; fix
-rw-r--r--server/tests/basic_event_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c
index 8db4426..833f971 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)