aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test.c b/test.c
index 862f14f..7db60e6 100644
--- a/test.c
+++ b/test.c
@@ -209,7 +209,9 @@ main(int argc, char *argv[])
exit(0);
}
close(fds[1]);
+ test(!errno);
test(!libsha1_sum_fd(fds[0], LIBSHA1_1, buf));
+ errno = 0; /* malloc(3) as been found to set errno=ENOENT on success */
test(waitpid(pid, &status, 0) == pid);
test(!status);
close(fds[0]);