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 Add test from PR/52499



details:   https://anonhg.NetBSD.org/src/rev/e69affad434a
branches:  trunk
changeset: 826244:e69affad434a
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 23 10:29:51 2017 +0000

description:
Add test from PR/52499

diffstat:

 tests/lib/libc/string/t_stresep.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 976f16d5342c -r e69affad434a tests/lib/libc/string/t_stresep.c
--- a/tests/lib/libc/string/t_stresep.c Wed Aug 23 10:27:41 2017 +0000
+++ b/tests/lib/libc/string/t_stresep.c Wed Aug 23 10:29:51 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_stresep.c,v 1.3 2013/02/15 23:56:32 christos Exp $ */
+/*     $NetBSD: t_stresep.c,v 1.4 2017/08/23 10:29:51 christos Exp $ */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -61,6 +61,12 @@
        expect("bar  foo");
        expect("   baz");
        expect("bar  ");
+
+       char brkstr2[] = "aa bb cc\\ \\ \\ \\ dd-";
+       q = brkstr2;
+       expect("aa");
+       expect("bb");
+       expect("cc    dd-");
 }
 
 ATF_TP_ADD_TCS(tp)



Home | Main Index | Thread Index | Old Index