summaryrefslogtreecommitdiff
path: root/tests/test_send.c
diff options
context:
space:
mode:
authorjvoisin2023-07-10 23:20:32 +0200
committerjvoisin2023-07-10 23:20:32 +0200
commit874c40f5bc16819f4ddd0eaa0fc19e9f344a6cc8 (patch)
tree2280a8bf4eedfb520b5e70f071ebc673c674ae3b /tests/test_send.c
parent106785b6bba515566637a028a602061fdef1e184 (diff)
Add tests for sys/socket.h
Diffstat (limited to 'tests/test_send.c')
-rw-r--r--tests/test_send.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_send.c b/tests/test_send.c
new file mode 100644
index 0000000..f65811f
--- /dev/null
+++ b/tests/test_send.c
@@ -0,0 +1,14 @@
1#include "common.h"
2
3#include <sys/socket.h>
4
5int main(int argc, char** argv) {
6 char buffer[12] = {0};
7
8 CHK_FAIL_START
9 send(0, buffer, 14, 0);
10 CHK_FAIL_END
11
12 puts(buffer);
13 return ret;
14}