[Spice-commits] server/tests
Alon Levy
alon at kemper.freedesktop.org
Tue Jul 5 05:21:52 PDT 2011
server/tests/basic_event_loop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 86f7b490a90fa7af6e137357d91476abd1cd0e61
Author: Alon Levy <alevy at redhat.com>
Date: Tue Jul 5 13:59:47 2011 +0200
server/tests/basic_event_loop: strange assert failure; fix
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)
More information about the Spice-commits
mailing list