aboutsummaryrefslogtreecommitdiff
path: root/t/t0060-path-utils.sh
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-09-07 00:41:00 +0200
committerJunio C Hamano <gitster@pobox.com>2012-09-06 16:19:58 -0700
commita5c45218b63ce7ac6f5a4a48c4312a1e37e01f3f (patch)
treeefa7e90c90420897960d378a902d712eaa320761 /t/t0060-path-utils.sh
parenta0601dc11fab5b4525a348b2ad6c9bb92529a281 (diff)
downloadgit-a5c45218b63ce7ac6f5a4a48c4312a1e37e01f3f.tar.gz
git-a5c45218b63ce7ac6f5a4a48c4312a1e37e01f3f.tar.xz
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>
Diffstat (limited to 't/t0060-path-utils.sh')
-rwxr-xr-xt/t0060-path-utils.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index 924aa607d..1118056a1 100755
--- a/t/t0060-path-utils.sh
+++ b/t/t0060-path-utils.sh
@@ -144,6 +144,10 @@ test_expect_success 'absolute path rejects the empty string' '
test_must_fail test-path-utils absolute_path ""
'
+test_expect_failure 'real path rejects the empty string' '
+ test_must_fail test-path-utils real_path ""
+'
+
test_expect_success SYMLINKS 'real path works as expected' '
mkdir first &&
ln -s ../.git first/.git &&