Add the bytes field in the mptp_dest structure.
[swifty.git] / src / kernel / test / test_sendmsg.c
1 /*
2  * Test 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_types.h"
15
16 #include "debug.h"
17 #include "util.h"
18
19 #include "test_sw.h"
20 #include "test.h"
21
22 static void sendmsg_dummy(void);
23 static void sendmsg_invalid_descriptor(void);
24 static void sendmsg_descriptor_is_not_socket(void);
25 static void sendmsg_socket_is_not_bound(void);
26 static void sendmsg_ok(void);
27
28 void sendmsg_test_suite(void)
29 {
30         start_suite();
31         sendmsg_dummy();
32         sendmsg_invalid_descriptor();
33         sendmsg_descriptor_is_not_socket();
34         sendmsg_socket_is_not_bound();
35         sendmsg_ok();
36 }
37
38 static void sendmsg_dummy(void)
39 {
40         test (1 == 1);
41 }
42
43 static void sendmsg_invalid_descriptor(void)
44 {
45         test (1 == 0);
46 }
47
48 static void sendmsg_descriptor_is_not_socket(void)
49 {
50         test (1 == 0);
51 }
52
53 static void sendmsg_socket_is_not_bound(void)
54 {
55         test (1 == 0);
56 }
57
58 static void sendmsg_ok(void)
59 {
60         test (1 == 0);
61 }