diff options
author | Alon Levy <alevy@redhat.com> | 2012-08-23 12:32:09 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-09-02 13:36:41 +0300 |
commit | caea7699434c20dceef8fc79d21b8eeb663fbf53 (patch) | |
tree | c52b0657f022b6895e140169b960b8554b88d79f /server/tests/test_display_no_ssl.c | |
parent | 897aaa7be51ab0b44436340cf6beedae03544199 (diff) | |
download | spice-caea7699434c20dceef8fc79d21b8eeb663fbf53.tar.gz spice-caea7699434c20dceef8fc79d21b8eeb663fbf53.tar.xz spice-caea7699434c20dceef8fc79d21b8eeb663fbf53.zip |
server/tests: introduce Test struct
Diffstat (limited to 'server/tests/test_display_no_ssl.c')
-rw-r--r-- | server/tests/test_display_no_ssl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/tests/test_display_no_ssl.c b/server/tests/test_display_no_ssl.c index a27bb001..67325cc9 100644 --- a/server/tests/test_display_no_ssl.c +++ b/server/tests/test_display_no_ssl.c @@ -10,7 +10,6 @@ #include <stdlib.h> #include "test_display_base.h" -SpiceServer *server; SpiceCoreInterface *core; SpiceTimer *ping_timer; @@ -38,11 +37,13 @@ int simple_commands[] = { int main(void) { + Test *test; + core = basic_event_loop_init(); - server = test_init(core); + test = test_new(core); //spice_server_set_image_compression(server, SPICE_IMAGE_COMPRESS_OFF); - test_add_display_interface(server); - test_set_simple_command_list(simple_commands, COUNT(simple_commands)); + test_add_display_interface(test); + test_set_simple_command_list(test, simple_commands, COUNT(simple_commands)); ping_timer = core->timer_add(pinger, NULL); core->timer_start(ping_timer, ping_ms); |