-
Notifications
You must be signed in to change notification settings - Fork 2
/
expect-cygwin-test-failures.patch
242 lines (225 loc) · 8.8 KB
/
expect-cygwin-test-failures.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
--- a/git-v2.38.2/t/t0301-credential-cache.sh 2022-12-11 00:32:48.000000000 +0000
+++ b/git-v2.38.2/t/t0301-credential-cache.sh 2022-12-11 13:31:52.820186800 +0000
@@ -30,7 +30,8 @@ test_atexit 'git credential-cache exit'
# test that the daemon works with no special setup
helper_test cache
-test_expect_success 'socket defaults to ~/.cache/git/credential/socket' '
+# https://github.com/me-and/Cygwin-Git/issues/51
+test_expect_failure 'socket defaults to ~/.cache/git/credential/socket' '
test_when_finished "
git credential-cache exit &&
rmdir -p .cache/git/credential/
@@ -44,7 +45,8 @@ export XDG_CACHE_HOME
# test behavior when XDG_CACHE_HOME is set
helper_test cache
-test_expect_success "use custom XDG_CACHE_HOME if set and default sockets are not created" '
+# https://github.com/me-and/Cygwin-Git/issues/51
+test_expect_failure "use custom XDG_CACHE_HOME if set and default sockets are not created" '
test_when_finished "git credential-cache exit" &&
test_path_is_socket "$XDG_CACHE_HOME/git/credential/socket" &&
test_path_is_missing "$HOME/.git-credential-cache/socket" &&
@@ -52,7 +54,8 @@ test_expect_success "use custom XDG_CACH
'
unset XDG_CACHE_HOME
-test_expect_success 'credential-cache --socket option overrides default location' '
+# https://github.com/me-and/Cygwin-Git/issues/51
+test_expect_failure 'credential-cache --socket option overrides default location' '
test_when_finished "
git credential-cache exit --socket \"\$HOME/dir/socket\" &&
rmdir \"\$HOME/dir\"
@@ -66,7 +69,8 @@ test_expect_success 'credential-cache --
test_path_is_socket "$HOME/dir/socket"
'
-test_expect_success "use custom XDG_CACHE_HOME even if xdg socket exists" '
+# https://github.com/me-and/Cygwin-Git/issues/51
+test_expect_failure "use custom XDG_CACHE_HOME even if xdg socket exists" '
test_when_finished "
git credential-cache exit &&
sane_unset XDG_CACHE_HOME
@@ -89,7 +93,8 @@ test_expect_success "use custom XDG_CACH
test_path_is_socket "$XDG_CACHE_HOME/git/credential/socket"
'
-test_expect_success 'use user socket if user directory exists' '
+# https://github.com/me-and/Cygwin-Git/issues/51
+test_expect_failure 'use user socket if user directory exists' '
test_when_finished "
git credential-cache exit &&
rmdir \"\$HOME/.git-credential-cache/\"
@@ -105,7 +110,8 @@ test_expect_success 'use user socket if
test_path_is_socket "$HOME/.git-credential-cache/socket"
'
-test_expect_success SYMLINKS 'use user socket if user directory is a symlink to a directory' '
+# https://github.com/me-and/Cygwin-Git/issues/51
+test_expect_failure SYMLINKS 'use user socket if user directory is a symlink to a directory' '
test_when_finished "
git credential-cache exit &&
rmdir \"\$HOME/dir/\" &&
--- a/git-v2.42.0/t/t1301-shared-repo.sh 2023-05-16 06:33:41 +0000
+++ b/git-v2.42.0/t/t1301-shared-repo.sh 2023-10-17 09:01:37 +0100
@@ -74,7 +74,8 @@ test_expect_success 'template can set core.bare but overridden by command line'
test_path_exists subdir/.git/HEAD
'
-test_expect_success POSIXPERM 'update-server-info honors core.sharedRepository' '
+# https://github.com/cygporter/git/issues/58
+test_expect_failure POSIXPERM 'update-server-info honors core.sharedRepository' '
: > a1 &&
git add a1 &&
test_tick &&
@@ -106,7 +107,8 @@ do
git config core.sharedrepository "$u" &&
umask 0277 &&
- test_expect_success POSIXPERM "shared = $u ($y) ro" '
+ # https://github.com/cygporter/git/issues/58
+ test_expect_failure POSIXPERM "shared = $u ($y) ro" '
rm -f .git/info/refs &&
git update-server-info &&
--- a/git-v2.38.2/t/t3070-wildmatch.sh 2022-12-11 00:32:48.000000000 +0000
+++ b/git-v2.38.2/t/t3070-wildmatch.sh 2022-12-11 15:08:33.604989200 +0000
@@ -120,7 +120,18 @@ match_with_ls_files() {
then
if test -e .git/created_test_file
then
- test_expect_success EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): match '$pattern' '$text'" "
+ # https://github.com/me-and/Cygwin-Git/issues/42
+ # This is a very rough first attempt to characterise
+ # what will and will not cause faulures; it may be
+ # completely incorrect.
+ if [[ "$pattern" = *\\* ]] && [[ "$pattern" != *\\\\-* ]] && [[ "$pattern" != *\\\\,* ]] && [[ "$pattern" != *\[\\\[* ]] && ! [[ "$pattern" = '[\1-\3]' && "$text" = 3 ]]
+ then
+ local result=failure
+ else
+ local result=success
+ fi
+
+ test_expect_$result EXPENSIVE_ON_WINDOWS "ALPHA $match_function (via ls-files): match '$pattern' '$text'" "
printf '%s' '$text' >expect &&
git$ls_files_args ls-files -z -- '$pattern' >actual.raw 2>actual.err &&
$match_stdout_stderr_cmp
@@ -132,7 +143,17 @@ match_with_ls_files() {
then
if test -e .git/created_test_file
then
- test_expect_success EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): no match '$pattern' '$text'" "
+ # https://github.com/me-and/Cygwin-Git/issues/42
+ # This is a very rough first attempt to characterise
+ # what will and will not cause faulures; it may be
+ # completely incorrect.
+ if [[ "$pattern" = *\\\\* ]]
+ then
+ local result=failure
+ else
+ local result=success
+ fi
+ test_expect_$result EXPENSIVE_ON_WINDOWS "$match_function (via ls-files): no match '$pattern' '$text'" "
>expect &&
git$ls_files_args ls-files -z -- '$pattern' >actual.raw 2>actual.err &&
$match_stdout_stderr_cmp
--- a/git-v2.38.2/t/t5500-fetch-pack.sh 2022-12-11 00:32:48.000000000 +0000
+++ b/git-v2.38.2/t/t5500-fetch-pack.sh 2022-12-11 15:31:14.023095700 +0000
@@ -762,7 +762,8 @@ do
# file with scheme
for p in file
do
- test_expect_success !MINGW "fetch-pack --diag-url $p://$h/$r" '
+ # https://github.com/me-and/Cygwin-Git/issues/45
+ test_expect_failure !MINGW "fetch-pack --diag-url $p://$h/$r" '
check_prot_path $p://$h/$r $p "/$r"
'
test_expect_success MINGW "fetch-pack --diag-url $p://$h/$r" '
@@ -772,7 +773,8 @@ do
check_prot_path $p:///$r $p "/$r"
'
# No "/~" -> "~" conversion for file
- test_expect_success !MINGW "fetch-pack --diag-url $p://$h/~$r" '
+ # https://github.com/me-and/Cygwin-Git/issues/45
+ test_expect_failure !MINGW "fetch-pack --diag-url $p://$h/~$r" '
check_prot_path $p://$h/~$r $p "/~$r"
'
test_expect_success MINGW "fetch-pack --diag-url $p://$h/~$r" '
@@ -794,11 +796,19 @@ do
p=ssh
for h in host [::1]
do
- test_expect_success "fetch-pack --diag-url $h:$r" '
+ # https://github.com/me-and/Cygwin-Git/issues/45
+ if [[ "$h" = 'host' ]]
+ then
+ local result=success
+ else
+ local result=failure
+ fi
+
+ test_expect_$result "fetch-pack --diag-url $h:$r" '
check_prot_host_port_path $h:$r $p "$h" NONE "$r"
'
# Do "/~" -> "~" conversion
- test_expect_success "fetch-pack --diag-url $h:/~$r" '
+ test_expect_$result "fetch-pack --diag-url $h:/~$r" '
check_prot_host_port_path $h:/~$r $p "$h" NONE "~$r"
'
done
--- a/git-v2.42.0/t/t5580-unc-paths.sh
+++ b/git-v2.42.0/t/t5580-unc-paths.sh
@@ -40,28 +40,33 @@ test_expect_success setup '
test_commit initial
'
-test_expect_success clone '
+# https://github.com/cygporter/git/issues/59
+test_expect_failure clone '
git clone "file://$UNCPATH" clone
'
-test_expect_success 'clone without file://' '
+# https://github.com/cygporter/git/issues/59
+test_expect_failure 'clone without file://' '
git clone "$UNCPATH" clone-without-file
'
-test_expect_success 'clone with backslashed path' '
+# https://github.com/cygporter/git/issues/59
+test_expect_failure 'clone with backslashed path' '
BACKSLASHED="$(echo "$UNCPATH" | tr / \\\\)" &&
git clone "$BACKSLASHED" backslashed
'
-test_expect_success fetch '
+# https://github.com/cygporter/git/issues/59
+test_expect_failure fetch '
git init to-fetch &&
(
cd to-fetch &&
git fetch "$UNCPATH" main
)
'
-test_expect_success push '
+# https://github.com/cygporter/git/issues/43
+test_expect_failure push '
(
cd clone &&
git checkout -b to-push &&
@@ -78,7 +83,8 @@ test_expect_success MINGW 'remote nick cannot contain backslashes' '
test_i18ngrep ! "unable to access" err
'
-test_expect_success 'unc alternates' '
+# https://github.com/cygporter/git/issues/59
+test_expect_failure 'unc alternates' '
tree="$(git rev-parse HEAD:)" &&
mkdir test-unc-alternate &&
(
--- a/git-v2.38.2/t/t5601-clone.sh 2022-12-11 00:32:48.000000000 +0000
+++ b/git-v2.38.2/t/t5601-clone.sh 2022-12-11 15:05:25.695555200 +0000
@@ -532,7 +532,8 @@ done
#ipv6
for repo in rep rep/home/project 123
do
- test_expect_success "clone [::1]:$repo" '
+ # https://github.com/me-and/Cygwin-Git/issues/46
+ test_expect_failure "clone [::1]:$repo" '
test_clone_url [::1]:$repo ::1 "$repo"
'
done
@@ -541,7 +542,8 @@ test_expect_success "clone host:/~repo"
test_clone_url host:/~repo host "~repo"
'
-test_expect_success "clone [::1]:/~repo" '
+# https://github.com/me-and/Cygwin-Git/issues/46
+test_expect_failure "clone [::1]:/~repo" '
test_clone_url [::1]:/~repo ::1 "~repo"
'