]> sourceware.org Git - glibc.git/commit
fgets: more tests
authorDJ Delorie <dj@redhat.com>
Wed, 7 Aug 2024 20:55:16 +0000 (16:55 -0400)
committerDJ Delorie <dj@redhat.com>
Wed, 4 Sep 2024 20:24:12 +0000 (16:24 -0400)
commit4945ffc88a8ad49280bae64165683ddfd12b2390
tree5fdd3053c2276b38c2d6a10510ac12666a50cccb
parented4bb289cf739f537deb735eaa01be531df084b9
fgets: more tests

Add more tests for unusual situations fgets() might see:

* zero size file
* zero sized buffer
* NULL buffer
* NUL data
* writable stream
* closed stream

Reviewed-by: Florian Weimer <fweimer@redhat.com>
stdio-common/Makefile
stdio-common/tst-fgets2.c [new file with mode: 0644]
This page took 0.05004 seconds and 5 git commands to generate.