[server/tests PATCH 6/6] server/tests: fix timer for test_empty_success

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]