Skip to content

Commit 17264bc

Browse files
mhaggergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8da650b commit 17264bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t0060-path-utils.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ test_expect_success 'strip_path_suffix' '
140140
c:/msysgit/libexec//git-core libexec/git-core)
141141
'
142142

143+
test_expect_failure 'absolute path rejects the empty string' '
144+
test_must_fail test-path-utils absolute_path ""
145+
'
146+
143147
test_expect_success SYMLINKS 'real path works as expected' '
144148
mkdir first &&
145149
ln -s ../.git first/.git &&

0 commit comments

Comments
 (0)