aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-04 11:34:58 +0200
committerMattias Andrée <m@maandree.se>2026-05-04 11:34:58 +0200
commit88749b1c04888ea965720cb8f2ec60c32075386c (patch)
tree7c3471162ba98d6513863fa8e06b0c4133b7084a /test.c
parentfix doc (diff)
downloadlibsha2-1.1.4.tar.gz
libsha2-1.1.4.tar.bz2
libsha2-1.1.4.tar.xz
Fix aarch64 support1.1.4
Signed-off-by: Mattias Andrée <m@maandree.se>
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 42e0597..b5fba45 100644
--- a/test.c
+++ b/test.c
@@ -349,7 +349,9 @@ main(int argc, char *argv[])
exit(0);
}
close(fds[1]);
+ test(!errno);
test(!libsha2_sum_fd(fds[0], LIBSHA2_256, 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]);