109
then
110
if test -e .git/created_test_file
111
then
112
- test_expect_success "$match_function (via ls-files): match dies on '$pattern' '$text'" "
112
+ test_expect_success EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): match dies on '$pattern' '$text'" "
113
printf '%s' '$text' >expect &&
114
test_must_fail git$ls_files_args ls-files -z -- '$pattern'
115
"
116
else
117
- test_expect_failure "$match_function (via ls-files): match skip '$pattern' '$text'" 'false'
117
+ test_expect_failure EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): match skip '$pattern' '$text'" 'false'
118
fi
119
elif test "$match_expect" = 1
120
then
121
if test -e .git/created_test_file
122
then
123
- test_expect_success "$match_function (via ls-files): match '$pattern' '$text'" "
123
+ test_expect_success EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): match '$pattern' '$text'" "
124
printf '%s' '$text' >expect &&
125
git$ls_files_args ls-files -z -- '$pattern' >actual.raw 2>actual.err &&
126
$match_stdout_stderr_cmp
127
"
128
else
129
- test_expect_failure "$match_function (via ls-files): match skip '$pattern' '$text'" 'false'
129
+ test_expect_failure EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): match skip '$pattern' '$text'" 'false'
130
fi
131
elif test "$match_expect" = 0
132
then
133
if test -e .git/created_test_file
134
then
135
- test_expect_success "$match_function (via ls-files): no match '$pattern' '$text'" "
135
+ test_expect_success EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): no match '$pattern' '$text'" "
136
>expect &&
137
git$ls_files_args ls-files -z -- '$pattern' >actual.raw 2>actual.err &&
138
$match_stdout_stderr_cmp
139
"
140
else
141
- test_expect_failure "$match_function (via ls-files): no match skip '$pattern' '$text'" 'false'
141
+ test_expect_failure EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): no match skip '$pattern' '$text'" 'false'
142
fi
143
else
144
test_expect_success "PANIC: Test framework error. Unknown matches value $match_expect" 'false'
174
pattern=${10}
175
fi
176
177
- test_expect_success 'cleanup after previous file test' '
177
+ test_expect_success EXPENSIVE_ON_WINDOWS 'cleanup after previous file test' '
178
if test -e .git/created_test_file
179
then
180
git reset &&
184
185
printf '%s' "$text" >.git/expected_test_file
186
187
- test_expect_success "setup match file test for $text" '
187
+ test_expect_success EXPENSIVE_ON_WINDOWS "setup match file test for $text" '
188
file=$(cat .git/expected_test_file) &&
189
if should_create_test_file "$file"
190
then