Deleted Added
full compact
fnmatch_testcases.h (302408) fnmatch_testcases.h (322524)
1/*-
2 * Copyright (c) 2010 Jilles Tjoelker
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2010 Jilles Tjoelker
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/lib/libc/tests/gen/fnmatch_testcases.h 290849 2015-11-15 05:13:33Z ngie $");
28__FBSDID("$FreeBSD: stable/11/lib/libc/tests/gen/fnmatch_testcases.h 322524 2017-08-15 00:54:16Z pfg $");
29
30#include <fnmatch.h>
31
32struct testcase {
33 const char *pattern;
34 const char *string;
35 int flags;
36 int result;

--- 89 unchanged lines hidden (view full) ---

126 { "\\*", "\\*", 0, FNM_NOMATCH },
127 { "\\?", "\\?", 0, FNM_NOMATCH },
128 { "\\[x]", "\\[x]", 0, FNM_NOMATCH },
129 { "\\[x]", "\\x", 0, FNM_NOMATCH },
130 { "\\[", "\\[", 0, FNM_NOMATCH },
131 { "\\(", "\\(", 0, FNM_NOMATCH },
132 { "\\a", "\\a", 0, FNM_NOMATCH },
133 { "\\", "\\", 0, FNM_NOMATCH },
29
30#include <fnmatch.h>
31
32struct testcase {
33 const char *pattern;
34 const char *string;
35 int flags;
36 int result;

--- 89 unchanged lines hidden (view full) ---

126 { "\\*", "\\*", 0, FNM_NOMATCH },
127 { "\\?", "\\?", 0, FNM_NOMATCH },
128 { "\\[x]", "\\[x]", 0, FNM_NOMATCH },
129 { "\\[x]", "\\x", 0, FNM_NOMATCH },
130 { "\\[", "\\[", 0, FNM_NOMATCH },
131 { "\\(", "\\(", 0, FNM_NOMATCH },
132 { "\\a", "\\a", 0, FNM_NOMATCH },
133 { "\\", "\\", 0, FNM_NOMATCH },
134 { "\\", "", 0, 0 },
134 { "\\", "", 0, FNM_NOMATCH },
135 { "\\*", "\\*", FNM_NOESCAPE, 0 },
136 { "\\?", "\\?", FNM_NOESCAPE, 0 },
137 { "\\", "\\", FNM_NOESCAPE, 0 },
138 { "\\\\", "\\", FNM_NOESCAPE, FNM_NOMATCH },
139 { "\\\\", "\\\\", FNM_NOESCAPE, 0 },
140 { "*\\*", "foo\\foo", FNM_NOESCAPE, 0 },
141 { "*\\*", "foo", FNM_NOESCAPE, FNM_NOMATCH },
142 { "*", ".", FNM_PERIOD, FNM_NOMATCH },

--- 34 unchanged lines hidden ---
135 { "\\*", "\\*", FNM_NOESCAPE, 0 },
136 { "\\?", "\\?", FNM_NOESCAPE, 0 },
137 { "\\", "\\", FNM_NOESCAPE, 0 },
138 { "\\\\", "\\", FNM_NOESCAPE, FNM_NOMATCH },
139 { "\\\\", "\\\\", FNM_NOESCAPE, 0 },
140 { "*\\*", "foo\\foo", FNM_NOESCAPE, 0 },
141 { "*\\*", "foo", FNM_NOESCAPE, FNM_NOMATCH },
142 { "*", ".", FNM_PERIOD, FNM_NOMATCH },

--- 34 unchanged lines hidden ---