diff options
author | Alon Levy <alevy@redhat.com> | 2011-09-07 20:37:29 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-10-25 09:20:42 +0200 |
commit | 691afbbab56cb7b42bafd97b80221b8486d6cc10 (patch) | |
tree | c30055c7f433df54afa1e877bfd2d830d92b88f0 | |
parent | 2c92a5471216318765cf309b1ffa68ea0ffab9c0 (diff) | |
download | spice-691afbbab56cb7b42bafd97b80221b8486d6cc10.tar.gz spice-691afbbab56cb7b42bafd97b80221b8486d6cc10.tar.xz spice-691afbbab56cb7b42bafd97b80221b8486d6cc10.zip |
server/tests: print pthread id on channel_event
-rw-r--r-- | server/tests/basic_event_loop.c | 6 | ||||
-rw-r--r-- | server/tests/test_display_no_ssl.c | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c index 1d54ed09..5f0b7ce9 100644 --- a/server/tests/basic_event_loop.c +++ b/server/tests/basic_event_loop.c @@ -1,6 +1,10 @@ #include <stdlib.h> #include <stdio.h> #include <sys/time.h> +#include <strings.h> +#include <signal.h> +#include <string.h> +#include <pthread.h> #include "test_util.h" #include "basic_event_loop.h" @@ -221,7 +225,7 @@ static void watch_remove(SpiceWatch *watch) static void channel_event(int event, SpiceChannelEventInfo *info) { - NOT_IMPLEMENTED + printf("got event %d, pthreadid %x\n", event, pthread_self()); } SpiceTimer *get_next_timer(void) diff --git a/server/tests/test_display_no_ssl.c b/server/tests/test_display_no_ssl.c index 7edc8dc7..a7fa4c51 100644 --- a/server/tests/test_display_no_ssl.c +++ b/server/tests/test_display_no_ssl.c @@ -288,4 +288,3 @@ int main() return 0; } - |