summaryrefslogtreecommitdiff
path: root/tests/lib/libc/string
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-01-11 18:07:37 +0000
committerchristos <christos@NetBSD.org>2017-01-11 18:07:37 +0000
commita1a510a4c9ce1cee2df0fab66ca55133fd3f2648 (patch)
treeb26fd0dd1ffe10c67e3e15eade368719c70c89b6 /tests/lib/libc/string
parent3506e25abd56b924f8e5801b98672425339c8425 (diff)
PR/51822: Ngie Cooper: add additional t_memmem check
Diffstat (limited to 'tests/lib/libc/string')
-rw-r--r--tests/lib/libc/string/t_memmem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/libc/string/t_memmem.c b/tests/lib/libc/string/t_memmem.c
index 1e87af892bd..e20b0b7462b 100644
--- a/tests/lib/libc/string/t_memmem.c
+++ b/tests/lib/libc/string/t_memmem.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_memmem.c,v 1.2 2011/07/07 08:27:36 jruoho Exp $ */
+/* $NetBSD: t_memmem.c,v 1.3 2017/01/11 18:07:37 christos Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -51,6 +51,8 @@ char p6[] = "9";
int lp6 = 1;
char p7[] = "654";
int lp7 = 3;
+char p8[] = "89abc";
+int lp8 = 5;
char b0[] = "";
int lb0 = 0;
@@ -89,6 +91,7 @@ ATF_TC_BODY(memmem_basic, tc)
expect(memmem(b2, lb2, p4, lp4) == NULL);
expect(memmem(b2, lb2, p7, lp7) == NULL);
+ expect(memmem(b2, lb2, p8, lp8) == NULL);
}
ATF_TP_ADD_TCS(tp)