test: Add test case for fpurge(NULL)

This commit is contained in:
Guillem Jover 2014-11-01 00:55:55 +01:00
parent cfb4d462a9
commit d62f7d8fac

View File

@ -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;