diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 1 | ||||
| -rw-r--r-- | tests/test_poll.c | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index b27b294..fa0bcdd 100644 --- a/tests/Makefile +++ b/tests/Makefile | |||
| @@ -31,6 +31,7 @@ TARGETS=test_memcpy_static_write \ | |||
| 31 | test_stpncpy_overwrite_under \ | 31 | test_stpncpy_overwrite_under \ |
| 32 | test_stpncpy_static_write \ | 32 | test_stpncpy_static_write \ |
| 33 | test_getcwd \ | 33 | test_getcwd \ |
| 34 | test_poll \ | ||
| 34 | 35 | ||
| 35 | .SILENT: | 36 | .SILENT: |
| 36 | 37 | ||
diff --git a/tests/test_poll.c b/tests/test_poll.c new file mode 100644 index 0000000..397aa3d --- /dev/null +++ b/tests/test_poll.c | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <poll.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | struct pollfd buffer[12] = {0}; | ||
| 7 | |||
| 8 | CHK_FAIL_START | ||
| 9 | poll(buffer, 14, NULL); | ||
| 10 | CHK_FAIL_END | ||
| 11 | |||
| 12 | puts(buffer); | ||
| 13 | return ret; | ||
| 14 | } | ||
