summaryrefslogtreecommitdiffstats
path: root/server/tests
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
commit86f7b490a90fa7af6e137357d91476abd1cd0e61 (patch)
treed1065578aa4f5aa83c9772216055bbba2ef2911f /server/tests
parent8b5be0609f5226234aaefdb9197b2e189b1a0339 (diff)
downloadspice-86f7b490a90fa7af6e137357d91476abd1cd0e61.tar.gz
spice-86f7b490a90fa7af6e137357d91476abd1cd0e61.tar.xz
spice-86f7b490a90fa7af6e137357d91476abd1cd0e61.zip
server/tests/basic_event_loop: strange assert failure; fix
Diffstat (limited to 'server/tests')
-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 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)