Skip to content

Commit a5c4521

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

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
@@ -144,6 +144,10 @@ test_expect_success 'absolute path rejects the empty string' '
144144
test_must_fail test-path-utils absolute_path ""
145145
'
146146

147+
test_expect_failure 'real path rejects the empty string' '
148+
test_must_fail test-path-utils real_path ""
149+
'
150+
147151
test_expect_success SYMLINKS 'real path works as expected' '
148152
mkdir first &&
149153
ln -s ../.git first/.git &&

0 commit comments

Comments
 (0)