diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-03 23:05:20 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-03 23:05:20 +0200 |
| commit | 027fc4547c7a18b20972809964029621d4bdbe3b (patch) | |
| tree | eb4eebf229ce3d209095386c950fa16384330d41 | |
| parent | Ensure HWCAP_SHA1-check does not modify errno (diff) | |
| download | libsha1-1.1.5.tar.gz libsha1-1.1.5.tar.bz2 libsha1-1.1.5.tar.xz | |
test.c: let libsha1_sum_fd (malloc) modify errno1.1.5
Signed-off-by: Mattias Andrée <m@maandree.se>
| -rw-r--r-- | test.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]); |
