diff options
| author | jvoisin | 2025-10-31 15:18:10 +0100 |
|---|---|---|
| committer | jvoisin | 2025-11-11 14:09:16 +0100 |
| commit | fe3e4269959ea7534722aa2664a3cac69d9109cf (patch) | |
| tree | cfb4a11fa1c2a14798b1bf1b56facdd9ea8ea170 /tests/test_FD_SET_negative.c | |
| parent | 558f28473a1dea3d314156f2f3c45f078433ff57 (diff) | |
Add a testsuite
Co-Authored-By: q66 <q66@chimera-linux.org>
Diffstat (limited to 'tests/test_FD_SET_negative.c')
| -rw-r--r-- | tests/test_FD_SET_negative.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_FD_SET_negative.c b/tests/test_FD_SET_negative.c new file mode 100644 index 0000000..df0aa0c --- /dev/null +++ b/tests/test_FD_SET_negative.c | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <sys/select.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | fd_set rfds; | ||
| 7 | |||
| 8 | CHK_FAIL_START | ||
| 9 | FD_SET(-1, &rfds); | ||
| 10 | CHK_FAIL_END | ||
| 11 | |||
| 12 | puts((const char*)&rfds); | ||
| 13 | return ret; | ||
| 14 | } | ||
