diff options
author | Uri Lublin <uril@redhat.com> | 2013-07-09 17:01:10 +0300 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2013-07-16 23:37:28 +0300 |
commit | 8511c747d12eaa3e60baf56316cb66b3ef0b7501 (patch) | |
tree | 5a83a60b11ff3a9642b2948fd8b7268d00b2013b /server/tests | |
parent | 3ede55b2ba602fd08870a007caea56ecb31022b3 (diff) | |
download | spice-8511c747d12eaa3e60baf56316cb66b3ef0b7501.tar.gz spice-8511c747d12eaa3e60baf56316cb66b3ef0b7501.tar.xz spice-8511c747d12eaa3e60baf56316cb66b3ef0b7501.zip |
server/tests: fix timer for test_empty_success
Diffstat (limited to 'server/tests')
-rw-r--r-- | 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 ccabe6b4..0176a52c 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; } |