* tests/test-reallocarray.c (main): Accept EOVERFLOW error code.
+2021-05-13 Bruno Haible <bruno@clisp.org>
+
+ reallocarray tests: Avoid test failure on NetBSD.
+ * tests/test-reallocarray.c (main): Accept EOVERFLOW error code.
+
2021-05-12 Bruno Haible <bruno@clisp.org>
gnulib-tool: Fail properly if the 'join' program is not found.
p = reallocarray (p, SIZE_MAX / n + 1, n);
if (p)
return 3;
- if (errno != ENOMEM)
+ if (!(errno == ENOMEM
+ || errno == EOVERFLOW /* NetBSD */))
return 4;
/* Reallocarray should not crash with zero sizes. */