From: Michael Haggerty Date: Thu, 6 Sep 2012 22:41:00 +0000 (+0200) Subject: t0060: verify that real_path() fails if passed the empty string X-Git-Tag: v1.8.0-rc0~57^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a5c45218b63ce7ac6f5a4a48c4312a1e37e01f3f 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh index 924aa607d7..1118056a1f 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 &&