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