1 #ifndef TEST_COMMON_H
2 #define TEST_COMMON_H
3 
4 #include "libxl.h"
5 
6 #include <assert.h>
7 #include <stdlib.h>
8 #include <unistd.h>
9 #include <fcntl.h>
10 #include <sys/stat.h>
11 #include <sys/types.h>
12 
13 void test_common_setup(int level);
14 
15 extern libxl_ctx *ctx;
16 
17 void test_common_get_now(void);
18 
19 extern struct timeval now;
20 
21 void test_common_beforepoll(void);
22 void test_common_dopoll(void);
23 void test_common_afterpoll(void);
24 
25 extern int poll_nfds, poll_nfds_allocd;
26 extern struct pollfd *poll_fds;
27 extern int poll_timeout;
28 
29 #endif /*TEST_COMMON_H*/
30