From: Michael Haggerty Date: Thu, 06 Sep 2012 22:41:00 GMT Subject: [PATCH v2 4/8] t0060: verify that real_path() fails if passed the empty string Message-ID: <1346971264-23744-5-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1346971264-23744-1-git-send-email-mhagger@alum.mit.edu> It doesn't, so mark the test as failing. Signed-off-by: Michael Haggerty --- t/t0060-path-utils.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh index 924aa60..1118056 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 && -- 1.7.11.3