Code

Smart-http tests: Improve coverage in test t5560
authorTarmigan Casebolt <tarmigan+git@gmail.com>
Sat, 2 Jan 2010 21:38:05 +0000 (13:38 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jan 2010 09:16:54 +0000 (01:16 -0800)
commit43015774c3a697abf8efee28e36238fc78cf45d1
tree447010a8a0d44c40b78dddbde2891a5a3077075d
parent8b2bd7cdacf71260dbc954316af2bed8e076c182
Smart-http tests: Improve coverage in test t5560

Commit 34b6cb8bb ("http-backend: Protect GIT_PROJECT_ROOT from /../
requests") added the path_info helper function to test t5560 but did
not use it.  We should use it as it provides another level of error
checking.

The /etc/.../passwd case is one that is not special (and the test
fails for reasons other than being aliased), so we remove that test
case.

Also rename the function from 'path_info' to 'expect_aliased'.

Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Tarmigan Casebolt <tarmigan+git@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5560-http-backend.sh