From: mhagger@alum.mit.edu Date: Tue, 04 Sep 2012 08:14:24 GMT Subject: [PATCH 1/7] t0000: verify that absolute_path() fails if passed the empty string Message-ID: <1346746470-23127-2-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1346746470-23127-1-git-send-email-mhagger@alum.mit.edu> From: Michael Haggerty It doesn't, so mark the test as failing. Signed-off-by: Michael Haggerty --- t/t0000-basic.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh index ccb5435..7347fb8 100755 --- a/t/t0000-basic.sh +++ b/t/t0000-basic.sh @@ -450,6 +450,10 @@ test_expect_success 'update-index D/F conflict' ' test $numpath0 = 1 ' +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 && -- 1.7.11.3