From 874c40f5bc16819f4ddd0eaa0fc19e9f344a6cc8 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 10 Jul 2023 23:20:32 +0200 Subject: Add tests for sys/socket.h --- tests/test_send.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_send.c (limited to 'tests/test_send.c') 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 @@ +#include "common.h" + +#include + +int main(int argc, char** argv) { + char buffer[12] = {0}; + + CHK_FAIL_START + send(0, buffer, 14, 0); + CHK_FAIL_END + + puts(buffer); + return ret; +} -- cgit v1.3