X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3703-add-magic-pathspec.sh;h=5115de7036c38a9464dfdab0e13519a872902991;hb=69f4e08f535d4e5a035069a64d1ebaea7be55d83;hp=e508246c0c904ec01775040d9fb0cc32b4b33dc2;hpb=f67d2e82d6d2fd385d3d20e8d348eaf69dc95041;p=git.git diff --git a/t/t3703-add-magic-pathspec.sh b/t/t3703-add-magic-pathspec.sh index e508246c0..5115de703 100755 --- a/t/t3703-add-magic-pathspec.sh +++ b/t/t3703-add-magic-pathspec.sh @@ -38,17 +38,17 @@ cat >expected <":(icase)ha" && - test_must_fail git add -n ":(icase)ha" && - git add -n "./:(icase)ha" -' - if mkdir ":" 2>/dev/null then test_set_prereq COLON_DIR fi +test_expect_success COLON_DIR 'a file with the same (long) magic name exists' ' + : >":(icase)ha" && + test_must_fail git add -n ":(icase)ha" && + git add -n "./:(icase)ha" +' + test_expect_success COLON_DIR 'a file with the same (short) magic name exists' ' : >":/bar" && test_must_fail git add -n :/bar &&