diff options
Diffstat (limited to 'tests/test_fgets_dynamic.c')
| -rw-r--r-- | tests/test_fgets_dynamic.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_fgets_dynamic.c b/tests/test_fgets_dynamic.c new file mode 100644 index 0000000..751ca79 --- /dev/null +++ b/tests/test_fgets_dynamic.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 | char buffer[8] = {0}; | ||
| 8 | |||
| 9 | CHK_FAIL_START | ||
| 10 | (void)fgets(buffer, argc, NULL); | ||
| 11 | CHK_FAIL_END | ||
| 12 | |||
| 13 | puts(buffer); | ||
| 14 | return ret; | ||
| 15 | } | ||
