Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-09-07 02:40:58 +0400
committerJunio C Hamano <gitster@pobox.com>2012-09-07 03:19:58 +0400
commit17264bcc4f580d5e2a94703967236e770f6e236f (patch)
treea7f851f4f68a7a7b4484ca8f6934c40c87cef2c6 /t/t0060-path-utils.sh
parent8da650b456d8fd744abf401a67535acbdd6c22c7 (diff)
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 <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0060-path-utils.sh')
-rwxr-xr-xt/t0060-path-utils.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index c8db144c33..d91e516750 100755
--- a/t/t0060-path-utils.sh
+++ b/t/t0060-path-utils.sh
@@ -140,6 +140,10 @@ test_expect_success 'strip_path_suffix' '
c:/msysgit/libexec//git-core libexec/git-core)
'
+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 &&