[Spice-devel] [server/tests PATCH 6/6] server/tests: fix timer for test_empty_success
Uri Lublin
uril at redhat.com
Tue Jul 9 09:15:30 PDT 2013
---
server/tests/test_empty_success.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/server/tests/test_empty_success.c b/server/tests/test_empty_success.c
index ccabe6b..0176a52 100644
--- a/server/tests/test_empty_success.c
+++ b/server/tests/test_empty_success.c
@@ -4,9 +4,15 @@
#include <spice.h>
+struct SpiceTimer {
+ int a,b;
+};
+
SpiceTimer* timer_add(SpiceTimerFunc func, void *opaque)
{
- return NULL;
+ static struct SpiceTimer t = {0,};
+
+ return &t;
}
void timer_start(SpiceTimer *timer, uint32_t ms)
@@ -57,5 +63,7 @@ int main(void)
spice_server_set_port(server, 5911);
spice_server_init(server, &core);
+ spice_server_destroy(server);
+
return 0;
}
--
1.7.1
More information about the Spice-devel
mailing list