Add counters for MPTP buffers and syscalls.
[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         sendmsg_invalid_descriptor();
34         sendmsg_descriptor_is_not_socket();
35         sendmsg_socket_is_not_bound();
36         sendmsg_ok();
37 }
38
39 static void sendmsg_dummy(void)
40 {
41         test (1 == 1);
42 }
43
44 static void sendmsg_invalid_descriptor(void)
45 {
46         test (1 == 0);
47 }
48
49 static void sendmsg_descriptor_is_not_socket(void)
50 {
51         test (1 == 0);
52 }
53
54 static void sendmsg_socket_is_not_bound(void)
55 {
56         test (1 == 0);
57 }
58
59 static void sendmsg_ok(void)
60 {
61         test (1 == 0);
62 }