Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t0060: verify that absolute_path() fails if passed the empty string
author
Michael Haggerty
<mhagger@alum.mit.edu>
Thu, 6 Sep 2012 22:40:58 +0000
(
00:40
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 6 Sep 2012 23:19:58 +0000
(16:19 -0700)
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>
t/t0060-path-utils.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
8da650b
)
diff --git
a/t/t0060-path-utils.sh
b/t/t0060-path-utils.sh
index c8db144c330452ca37fa94db41c5248c7ce4fedb..d91e5167503d2cecc2ae2d83a20b1ba1a71a5b0f 100755
(executable)
--- 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 &&