Commit d62f7d8facf087b5e93508067ec228864fe76990

Guillem Jover 2014-11-01T00:55:55

test: Add test case for fpurge(NULL)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/test/fpurge.c b/test/fpurge.c
index 8f2e996..03f107f 100644
--- a/test/fpurge.c
+++ b/test/fpurge.c
@@ -32,6 +32,9 @@ main()
 	static FILE fp_bad;
 	FILE *fp;
 
+	if (fpurge(NULL) == 0)
+		return 1;
+
 	if (fpurge(&fp_bad) == 0)
 		return 1;