summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-28 00:39:41 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-28 00:39:41 +0000
commit60fa5490bcc7af366c07a6d8efcc344f0f6222c4 (patch)
treed669d5bf9ea2b3b53da62037ddb97ccc67a3ff05
parentfc01aea41d4411805bcc94ad08536ff3ca50eebd (diff)
check more return values
-rw-r--r--test/misc/fdopen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/misc/fdopen.c b/test/misc/fdopen.c
index 91f8a5c81..f64cfb6b9 100644
--- a/test/misc/fdopen.c
+++ b/test/misc/fdopen.c
@@ -29,8 +29,8 @@ main (int argc, char *argv[])
fp = fopen (name, "w");
assert (fp != NULL)
- fputs ("foobar and baz", fp);
- fclose (fp);
+ assert (fputs ("foobar and baz", fp) > 0);
+ assert (fclose (fp) == 0);
fp = NULL;
fd = open (name, O_RDWR|O_CREAT);
@@ -45,7 +45,7 @@ main (int argc, char *argv[])
the_end:
if (fp != NULL)
- fclose (fp);
+ assert (fclose (fp) == 0);
unlink (name);
return retval;