t9700: Use Test::More->builder, not $Test::Builder::Test
commit635155fa3d825570080d727245a76e666bbae145
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 26 Jun 2010 12:42:41 +0000 (26 12:42 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Jun 2010 17:24:55 +0000 (27 10:24 -0700)
treed725ebff725e3b6439ad8ed49ccebbaa26fe0b52
parent335f87871fe5aa6b3fd55b2b4e80f16fe9681483
t9700: Use Test::More->builder, not $Test::Builder::Test

$Test::Builder::Test was only made into an `our' variable in 0.94
released in September 2009, older distros are more likely to have 0.92
or earlier. Use the singleton Test::More->builder constructor instead.

The exit() call was also unportable to <0.94. Just output a meaningful
exit code if the ->is_passing method exists. The t9700-perl-git.sh
test only cares about stderr output, so this doesn't affect test
results when using older Test::More modules.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9700/test.pl