summaryrefslogtreecommitdiff
path: root/tests/test_FD_SET_SETSIZE.c
diff options
context:
space:
mode:
authorjvoisin2023-07-10 23:34:34 +0200
committerjvoisin2023-07-10 23:36:08 +0200
commit875b469a6dd588702a4d84a9e8f3f4002a482021 (patch)
tree6ac774df36336a88683fb81a8f95aa9f5dcff59d /tests/test_FD_SET_SETSIZE.c
parent874c40f5bc16819f4ddd0eaa0fc19e9f344a6cc8 (diff)
Add tests for sys/socket
Diffstat (limited to 'tests/test_FD_SET_SETSIZE.c')
-rw-r--r--tests/test_FD_SET_SETSIZE.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_FD_SET_SETSIZE.c b/tests/test_FD_SET_SETSIZE.c
new file mode 100644
index 0000000..87e197e
--- /dev/null
+++ b/tests/test_FD_SET_SETSIZE.c
@@ -0,0 +1,14 @@
1#include "common.h"
2
3#include <sys/select.h>
4
5int main(int argc, char** argv) {
6 fd_set rfds;
7
8 CHK_FAIL_START
9 FD_SET(FD_SETSIZE, &rfds);
10 CHK_FAIL_END
11
12 puts((const char*)&rfds);
13 return ret;
14}