Lines Matching refs:t
76 struct testcase *t; in ATF_TC_BODY() local
79 t = &testcases[i]; in ATF_TC_BODY()
80 flags = t->flags; in ATF_TC_BODY()
82 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
83 if (result != t->result) in ATF_TC_BODY()
85 if (strchr(t->pattern, '\\') == NULL && in ATF_TC_BODY()
88 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
89 if (result != t->result) in ATF_TC_BODY()
91 flags = t->flags; in ATF_TC_BODY()
93 if (strchr(t->pattern, '\\') != NULL && in ATF_TC_BODY()
94 strchr(t->string, '\\') == NULL && in ATF_TC_BODY()
95 t->result == FNM_NOMATCH && in ATF_TC_BODY()
98 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
99 if (result != t->result) in ATF_TC_BODY()
101 flags = t->flags; in ATF_TC_BODY()
103 if ((t->string[0] != '.' || t->pattern[0] == '.' || in ATF_TC_BODY()
104 t->result == FNM_NOMATCH) && in ATF_TC_BODY()
107 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
108 if (result != t->result) in ATF_TC_BODY()
110 flags = t->flags; in ATF_TC_BODY()
112 if ((strchr(t->string, '/') == NULL || in ATF_TC_BODY()
113 t->result == FNM_NOMATCH) && in ATF_TC_BODY()
116 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
117 if (result != t->result) in ATF_TC_BODY()
119 flags = t->flags; in ATF_TC_BODY()
121 if ((((t->string[0] != '.' || t->pattern[0] == '.') && in ATF_TC_BODY()
122 strstr(t->string, "/.") == NULL) || in ATF_TC_BODY()
123 t->result == FNM_NOMATCH) && in ATF_TC_BODY()
126 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
127 if (result != t->result) in ATF_TC_BODY()
129 flags = t->flags; in ATF_TC_BODY()
131 if ((((t->string[0] != '.' || t->pattern[0] == '.') && in ATF_TC_BODY()
132 strchr(t->string, '/') == NULL) || in ATF_TC_BODY()
133 t->result == FNM_NOMATCH) && in ATF_TC_BODY()
136 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
137 if (result != t->result) in ATF_TC_BODY()
139 flags = t->flags; in ATF_TC_BODY()
141 if ((strchr(t->string, '/') == NULL || t->result == 0) in ATF_TC_BODY()
144 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
145 if (result != t->result) in ATF_TC_BODY()
147 flags = t->flags; in ATF_TC_BODY()
149 if (t->result == 0 && !(flags & FNM_CASEFOLD)) { in ATF_TC_BODY()
151 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
152 if (result != t->result) in ATF_TC_BODY()
154 flags = t->flags; in ATF_TC_BODY()
156 if (strchr(t->pattern, '\\') == NULL && in ATF_TC_BODY()
157 t->result == 0 && in ATF_TC_BODY()
160 result = fnmatch(t->pattern, t->string, flags); in ATF_TC_BODY()
161 if (result != t->result) in ATF_TC_BODY()
163 flags = t->flags; in ATF_TC_BODY()
167 ATF_CHECK(result == t->result); in ATF_TC_BODY()
168 if (result == t->result) in ATF_TC_BODY()
170 t->pattern, t->string, flags_to_string(flags), result); in ATF_TC_BODY()
173 t->pattern, t->string, flags_to_string(flags), in ATF_TC_BODY()
174 t->result, result); in ATF_TC_BODY()