[Templates] make test fails for Template-2.15 in t/fileline.t
David Dick
david_dick@iprimus.com.au
Fri, 21 Jul 2006 20:10:59 +1000
G'day all,
I've got an issue with getting 'make test' to run successfully on the
following platforms
-> debian 3.1 perl v5.8.4
-> fedora core 4 perl v5.8.6
to replicate, i downloaded Template-Toolkit-2.15.tar.gz from
search.cpan.org and issued a
perl Makefile.PL
make
make test
the make test died like so
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/vmethods/*.t
t/args................ok
t/autoform............skipped
all skipped: Text::Autoformat module not installed
t/base................ok
t/binop...............ok
*ALL OK TESTS SNIPPED*
t/file................ok
t/fileline............ok 8/11FAILED 9: - template text 3 did not match
expected
t/fileline............FAILED test 9
Failed 1/11 tests, 90.91% okay
t/filter..............ok
and when i run a "/usr/bin/perl -Iblib/lib -Iblib/arch t/fileline.t"
from within the Template-Toolkit-2.15 directory i get the following
1..11
ok 1 - running test_expect()
ok 2 - template processor is engaged
ok 3 - input read and split into 4 tests
ok 4 - template text 1 processed OK: [% place = 'World' -%]\nHello [% ...
ok 5 - template text 1 matched expected
ok 6 - template text 2 processed OK: [% INCLUDE warning -%]\nfile: [% ...
ok 7 - template text 2 matched expected
ok 8 - template text 3 processed OK: [% INCLUDE warning -%]\nfile: [% ...
MATCH FAILED
input: [[% INCLUDE warning -%]\nfile: [% file.chunk(-16).last
%]\nline: [% line %]\nwarn: [% warn %]\n]
expect: [Hello\nWorld\nfile: (eval 10)\nline: 10\nwarn: Argument ""
isn't numeric in addition (+)]
output: [Hello\nWorld\nfile: (eval 9)\nline: 10\nwarn: Argument "" isn't
numeric in addition (+)]
FAILED 9: - template text 3 did not match expected
not ok 9 - template text 3 did not match expected
ok 10 - template text 4 processed OK: [% TRY; \n INCLUDE chomp; \n ...
ok 11 - template text 4 matched expected
does anyone have any idea what could be causing this?