Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Add another case related to the ones from...
details: https://anonhg.NetBSD.org/src/rev/2a3909f2b6d0
branches: trunk
changeset: 348629:2a3909f2b6d0
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Oct 31 05:08:53 2016 +0000
description:
Add another case related to the ones from PR 49278: [A-\\].
diffstat:
tests/lib/libc/gen/t_fnmatch.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 0cd93f1a42f4 -r 2a3909f2b6d0 tests/lib/libc/gen/t_fnmatch.c
--- a/tests/lib/libc/gen/t_fnmatch.c Mon Oct 31 04:57:10 2016 +0000
+++ b/tests/lib/libc/gen/t_fnmatch.c Mon Oct 31 05:08:53 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fnmatch.c,v 1.6 2014/10/12 22:33:41 christos Exp $ */
+/* $NetBSD: t_fnmatch.c,v 1.7 2016/10/31 05:08:53 dholland Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fnmatch.c,v 1.6 2014/10/12 22:33:41 christos Exp $");
+__RCSID("$NetBSD: t_fnmatch.c,v 1.7 2016/10/31 05:08:53 dholland Exp $");
#include <atf-c.h>
#include <fnmatch.h>
@@ -166,6 +166,7 @@
ATF_CHECK(fnmatch("[!]a-]", "b", 0) == 0);
ATF_CHECK(fnmatch("[]-_]", "^", 0) == 0); /* range: ']', '^', '_' */
ATF_CHECK(fnmatch("[!]-_]", "X", 0) == 0);
+ ATF_CHECK(fnmatch("[A-\\\\]", "[", 0) == 0);
ATF_CHECK(fnmatch("[a-z]/[a-z]", "a/b", 0) == 0);
ATF_CHECK(fnmatch("[*]/b", "*/b", 0) == 0);
ATF_CHECK(fnmatch("[?]/b", "?/b", 0) == 0);
Home |
Main Index |
Thread Index |
Old Index