Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/string PR/51822: Ngie Cooper: add additional ...



details:   https://anonhg.NetBSD.org/src/rev/0a85268470c9
branches:  trunk
changeset: 820581:0a85268470c9
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 11 18:07:37 2017 +0000

description:
PR/51822: Ngie Cooper: add additional t_memmem check

diffstat:

 tests/lib/libc/string/t_memmem.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 01b2b6fb5e1f -r 0a85268470c9 tests/lib/libc/string/t_memmem.c
--- a/tests/lib/libc/string/t_memmem.c  Wed Jan 11 18:05:54 2017 +0000
+++ b/tests/lib/libc/string/t_memmem.c  Wed Jan 11 18:07:37 2017 +0000
@@ -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 @@
 int lp6 = 1;
 char p7[] = "654";
 int lp7 = 3;
+char p8[] = "89abc";
+int lp8 = 5;
 
 char b0[] = "";
 int lb0 = 0;
@@ -89,6 +91,7 @@
 
        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)



Home | Main Index | Thread Index | Old Index