]> git.ipfire.org Git - thirdparty/git.git/commit - t/t0060-path-utils.sh
t0060: verify that basename() and dirname() work as expected
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 12 Jan 2016 07:57:57 +0000 (08:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2016 18:41:34 +0000 (10:41 -0800)
commit7d1aaa684d42964b8b287b8c9450184dfd5bce85
treef5b5a6d524c2474fd2be9dc8d48f2edcfb6b560c
parent824682ab51e3510817f7a7303decc9f9df38ee9a
t0060: verify that basename() and dirname() work as expected

Unfortunately, some libgen implementations yield outcomes different
from what Git expects. For example, mingw-w64-crt provides a basename()
function, that shortens `path0/` to `path`!

So let's verify that the basename() and dirname() functions we use
conform to what Git expects.

Derived-from-code-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0060-path-utils.sh
test-path-utils.c