summaryrefslogtreecommitdiff
path: root/tests/test_send_static.c
diff options
context:
space:
mode:
authorjvoisin2023-07-10 23:46:28 +0200
committerjvoisin2023-07-10 23:46:28 +0200
commit906b7f6d576b10a8f20d858e379595c9a94cabfc (patch)
tree7e98c418bab79ca45f02d49f6d4707ee9aec763f /tests/test_send_static.c
parent875b469a6dd588702a4d84a9e8f3f4002a482021 (diff)
Add some dynamic tests for sys/socket.h
Diffstat (limited to 'tests/test_send_static.c')
-rw-r--r--tests/test_send_static.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_send_static.c b/tests/test_send_static.c
new file mode 100644
index 0000000..f65811f
--- /dev/null
+++ b/tests/test_send_static.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}