t0060: verify that absolute_path() fails if passed the empty string
It doesn't, so mark the test as failing. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
Sep 7, 2012 at 00:40 UTC
17264bcc4f580d5e2a94703967236e770f6e236f
1 file changed
+4
t/t0060-path-utils.sh
+4
@@ -140,6 +140,10 @@ test_expect_success 'strip_path_suffix' '
140
c:/msysgit/libexec//git-core libexec/git-core)
141
'
142
143
+test_expect_failure 'absolute path rejects the empty string' '
144
+ test_must_fail test-path-utils absolute_path ""
145
+'
146
+
147
test_expect_success SYMLINKS 'real path works as expected' '
148
mkdir first &&
149
ln -s ../.git first/.git &&