t3703: skip more tests using colons in file names on Windows
Use the same test and prerequisite as introduced in similar fix in 650af7ae8bdf92bd92df2. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Alex Riesen committed
Jun 7, 2011 at 11:49 UTC
038e2e5656b13058bc9596ef44647e190e96e493
1 file changed
+6
-6
t/t3703-add-magic-pathspec.sh
+6
-6
@@ -38,17 +38,17 @@ cat >expected <<EOF
38
add 'sub/foo'
39
EOF
40
41
-test_expect_success 'a file with the same (long) magic name exists' '
42
- : >":(icase)ha" &&
43
- test_must_fail git add -n ":(icase)ha" &&
44
- git add -n "./:(icase)ha"
45
-'
46
-
41
if mkdir ":" 2>/dev/null
42
then
43
test_set_prereq COLON_DIR
44
fi
45
46
+test_expect_success COLON_DIR 'a file with the same (long) magic name exists' '
47
+ : >":(icase)ha" &&
48
+ test_must_fail git add -n ":(icase)ha" &&
49
+ git add -n "./:(icase)ha"
50
+'
51
+
52
test_expect_success COLON_DIR 'a file with the same (short) magic name exists' '
53
: >":/bar" &&
54
test_must_fail git add -n :/bar &&