raw: Add complete set of headers to test source files.
[swifty.git] / src / raw / test / test_sw_sendmsg.c
1 /*
2  * Test sw_sendmsg "syscall".
3  */
4
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <sys/types.h>
9 #include <unistd.h>
10 #include <sys/socket.h>
11 #include <netinet/in.h>
12 #include <errno.h>
13
14 #include "swift_raw.h"
15 #include "swift_types.h"
16
17 #include "debug.h"
18 #include "util.h"
19
20 #include "test_sw.h"
21 #include "test.h"
22
23 static void sendmsg_dummy(void);
24 static void sendmsg_invalid_descriptor(void);
25 static void sendmsg_descriptor_is_not_socket(void);
26 static void sendmsg_socket_is_not_bound(void);
27 static void sendmsg_ok(void);
28
29 void sendmsg_test_suite(void)
30 {
31         start_suite();
32         sendmsg_dummy();
33 }
34
35 static void sendmsg_dummy(void)
36 {
37         test(1 == 1);
38 }