summaryrefslogtreecommitdiff
path: root/tests/test_recv.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_recv.c
parent106785b6bba515566637a028a602061fdef1e184 (diff)
Add tests for sys/socket.h
Diffstat (limited to 'tests/test_recv.c')
-rw-r--r--tests/test_recv.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_recv.c b/tests/test_recv.c
new file mode 100644
index 0000000..21592eb
--- /dev/null
+++ b/tests/test_recv.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 recv(0, buffer, 14, 0);
10 CHK_FAIL_END
11
12 puts(buffer);
13 return ret;
14}