Skip to content

Commit

Permalink
t0060: verify that absolute_path() fails if passed the empty string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mhagger authored and gitster committed Sep 6, 2012
1 parent 8da650b commit 17264bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/t0060-path-utils.sh
Expand Up @@ -140,6 +140,10 @@ test_expect_success 'strip_path_suffix' '
c:/msysgit/libexec//git-core libexec/git-core)
'

test_expect_failure 'absolute path rejects the empty string' '
test_must_fail test-path-utils absolute_path ""
'

test_expect_success SYMLINKS 'real path works as expected' '
mkdir first &&
ln -s ../.git first/.git &&
Expand Down

0 comments on commit 17264bc

Please sign in to comment.