summaryrefslogtreecommitdiff
path: root/tests/test-reallocarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-reallocarray.c')
-rw-r--r--tests/test-reallocarray.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-reallocarray.c b/tests/test-reallocarray.c
index 6de355e6bd..8067542d58 100644
--- a/tests/test-reallocarray.c
+++ b/tests/test-reallocarray.c
@@ -41,7 +41,8 @@ main ()
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. */