summaryrefslogtreecommitdiff
path: root/test/misc
diff options
context:
space:
mode:
Diffstat (limited to 'test/misc')
-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;