aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2009-03-13 23:00:15 +0100
committerJohannes Sixt <j6t@kdbg.org>2009-03-22 17:49:52 +0100
commit6fd1106aa4f921dd8e80895ed837072adfd665f1 (patch)
tree6252b20406818670f1077cf9eddd2229f8f3c571 /t/test-lib.sh
parentee9fb68c392cc76cf2a56762eb1c0712ae722f08 (diff)
downloadgit-6fd1106aa4f921dd8e80895ed837072adfd665f1.tar.gz
git-6fd1106aa4f921dd8e80895ed837072adfd665f1.tar.xz
t3700: Skip a test with backslashes in pathspec
The test verifies that glob special characters can be escaped with backslashes. In particular, the string fo\[ou\]bar is given to git. On Windows, this does not work because backslashes are first of all directory separators, and first thing git does with a pathspec from the command line is to convert backslashes to forward slashes. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index f134e7356..b4b626e83 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -688,9 +688,11 @@ case $(uname -s) in
builtin pwd -W
}
# no POSIX permissions
+ # backslashes in pathspec are converted to '/'
;;
*)
test_set_prereq POSIXPERM
+ test_set_prereq BSLASHPSPEC
;;
esac