@@ -14,7 +14,10 @@ test_expect_success 'add p4 files with wildcards in the names' '
1414 printf "file2\nhas\nsome\nrandom\ntext\n" >file2 &&
1515 p4 add file2 &&
1616 echo file-wild-hash >file-wild#hash &&
17- echo file-wild-star >file-wild\*star &&
17+ if test_have_prereq NOT_MINGW NOT_CYGWIN
18+ then
19+ echo file-wild-star >file-wild\*star
20+ fi &&
1821 echo file-wild-at >file-wild@at &&
1922 echo file-wild-percent >file-wild%percent &&
2023 p4 add -f file-wild* &&
@@ -28,7 +31,10 @@ test_expect_success 'wildcard files git p4 clone' '
2831 (
2932 cd "$git" &&
3033 test -f file-wild#hash &&
31- test -f file-wild\*star &&
34+ if test_have_prereq NOT_MINGW NOT_CYGWIN
35+ then
36+ test -f file-wild\*star
37+ fi &&
3238 test -f file-wild@at &&
3339 test -f file-wild%percent
3440 )
@@ -40,7 +46,10 @@ test_expect_success 'wildcard files submit back to p4, add' '
4046 (
4147 cd "$git" &&
4248 echo git-wild-hash >git-wild#hash &&
43- echo git-wild-star >git-wild\*star &&
49+ if test_have_prereq NOT_MINGW NOT_CYGWIN
50+ then
51+ echo git-wild-star >git-wild\*star
52+ fi &&
4453 echo git-wild-at >git-wild@at &&
4554 echo git-wild-percent >git-wild%percent &&
4655 git add git-wild* &&
@@ -51,7 +60,10 @@ test_expect_success 'wildcard files submit back to p4, add' '
5160 (
5261 cd "$cli" &&
5362 test_path_is_file git-wild#hash &&
54- test_path_is_file git-wild\*star &&
63+ if test_have_prereq NOT_MINGW NOT_CYGWIN
64+ then
65+ test_path_is_file git-wild\*star
66+ fi &&
5567 test_path_is_file git-wild@at &&
5668 test_path_is_file git-wild%percent
5769 )
@@ -63,7 +75,10 @@ test_expect_success 'wildcard files submit back to p4, modify' '
6375 (
6476 cd "$git" &&
6577 echo new-line >>git-wild#hash &&
66- echo new-line >>git-wild\*star &&
78+ if test_have_prereq NOT_MINGW NOT_CYGWIN
79+ then
80+ echo new-line >>git-wild\*star
81+ fi &&
6782 echo new-line >>git-wild@at &&
6883 echo new-line >>git-wild%percent &&
6984 git add git-wild* &&
@@ -74,7 +89,10 @@ test_expect_success 'wildcard files submit back to p4, modify' '
7489 (
7590 cd "$cli" &&
7691 test_line_count = 2 git-wild#hash &&
77- test_line_count = 2 git-wild\*star &&
92+ if test_have_prereq NOT_MINGW NOT_CYGWIN
93+ then
94+ test_line_count = 2 git-wild\*star
95+ fi &&
7896 test_line_count = 2 git-wild@at &&
7997 test_line_count = 2 git-wild%percent
8098 )
@@ -87,7 +105,7 @@ test_expect_success 'wildcard files submit back to p4, copy' '
87105 cd "$git" &&
88106 cp file2 git-wild-cp#hash &&
89107 git add git-wild-cp#hash &&
90- cp git-wild\*star file-wild-3 &&
108+ cp git-wild#hash file-wild-3 &&
91109 git add file-wild-3 &&
92110 git commit -m "wildcard copies" &&
93111 git config git-p4.detectCopies true &&
@@ -134,7 +152,10 @@ test_expect_success 'wildcard files submit back to p4, delete' '
134152 (
135153 cd "$cli" &&
136154 test_path_is_missing git-wild#hash &&
137- test_path_is_missing git-wild\*star &&
155+ if test_have_prereq NOT_MINGW NOT_CYGWIN
156+ then
157+ test_path_is_missing git-wild\*star
158+ fi &&
138159 test_path_is_missing git-wild@at &&
139160 test_path_is_missing git-wild%percent
140161 )
0 commit comments