aboutsummaryrefslogtreecommitdiff
path: root/tests/gtfetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gtfetch.c')
-rw-r--r--tests/gtfetch.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/gtfetch.c b/tests/gtfetch.c
index c1ea45e..5070fcc 100644
--- a/tests/gtfetch.c
+++ b/tests/gtfetch.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <errno.h>
#include "gdbm.h"
#include "progname.h"
@@ -130,6 +131,11 @@ main (int argc, char **argv)
fputc ('\n', stdout);
}
- gdbm_close (dbf);
+ if (gdbm_close (dbf))
+ {
+ fprintf (stderr, "gdbm_close: %s; %s\n", gdbm_strerror (gdbm_errno),
+ strerror (errno));
+ rc = 3;
+ }
exit (rc);
}

Return to:

Send suggestions and report system problems to the System administrator.