t0060: verify that real_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:41 UTC
a5c45218b63ce7ac6f5a4a48c4312a1e37e01f3f
1 file changed
+4
t/t0060-path-utils.sh
+4
@@ -144,6 +144,10 @@ test_expect_success 'absolute path rejects the empty string' '
144
test_must_fail test-path-utils absolute_path ""
145
'
146
147
+test_expect_failure 'real path rejects the empty string' '
148
+ test_must_fail test-path-utils real_path ""
149
+'
150
+
151
test_expect_success SYMLINKS 'real path works as expected' '
152
mkdir first &&
153
ln -s ../.git first/.git &&