summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2013-08-11 21:54:20 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2013-08-11 21:54:20 +0000
commit88dae73d360e8bfa607ae9fbee4bc0b73ec54d65 (patch)
tree7428ec19494ca72617af22514974a224cc7b9368
parent6c43122a42aa8889921916b319ed3203c19315b9 (diff)
Notes
-rw-r--r--tools/regression/lib/libc/gen/test-fnmatch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/regression/lib/libc/gen/test-fnmatch.c b/tools/regression/lib/libc/gen/test-fnmatch.c
index 2544067c1366..fd33574643ef 100644
--- a/tools/regression/lib/libc/gen/test-fnmatch.c
+++ b/tools/regression/lib/libc/gen/test-fnmatch.c
@@ -135,6 +135,8 @@ struct testcase {
"\\[", "\\[", 0, FNM_NOMATCH,
"\\(", "\\(", 0, FNM_NOMATCH,
"\\a", "\\a", 0, FNM_NOMATCH,
+ "\\", "\\", 0, FNM_NOMATCH,
+ "\\", "", 0, 0,
"\\*", "\\*", FNM_NOESCAPE, 0,
"\\?", "\\?", FNM_NOESCAPE, 0,
"\\", "\\", FNM_NOESCAPE, 0,
@@ -236,6 +238,8 @@ write_sh_tests(const char *progname, int num)
if (strchr(t->pattern, '\'') != NULL ||
strchr(t->string, '\'') != NULL)
continue;
+ if (t->flags == 0 && strcmp(t->pattern, "\\") == 0)
+ continue;
if (num == 1 && t->flags == 0)
printf("test%smatch '%s' '%s'\n",
t->result == FNM_NOMATCH ? "no" : "",