mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 19:27:42 +01:00
test: Add test case for fpurge(NULL)
This commit is contained in:
parent
cfb4d462a9
commit
d62f7d8fac
@ -32,6 +32,9 @@ main()
|
|||||||
static FILE fp_bad;
|
static FILE fp_bad;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
|
if (fpurge(NULL) == 0)
|
||||||
|
return 1;
|
||||||
|
|
||||||
if (fpurge(&fp_bad) == 0)
|
if (fpurge(&fp_bad) == 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user