mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
0b02503384
This patch adds tests for the vsock_diag.ko module. These tests are not self-tests because they require manual set up of a KVM or VMware guest. Please see tools/testing/vsock/README for instructions. The control.h and timeout.h infrastructure can be used for additional AF_VSOCK tests in the future. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
15 lines
257 B
C
15 lines
257 B
C
#ifndef TIMEOUT_H
|
|
#define TIMEOUT_H
|
|
|
|
enum {
|
|
/* Default timeout */
|
|
TIMEOUT = 10 /* seconds */
|
|
};
|
|
|
|
void sigalrm(int signo);
|
|
void timeout_begin(unsigned int seconds);
|
|
void timeout_check(const char *operation);
|
|
void timeout_end(void);
|
|
|
|
#endif /* TIMEOUT_H */
|