Skip Menu |

This queue is for tickets about the Template-Timer CPAN distribution.

Report information
The Basics
Id: 16914
Status: resolved
Priority: 0/
Queue: Template-Timer

People
Owner: Nobody in particular
Requestors: me [...] markstaggs.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)



Subject: make test (eval.t)
When running the make test portion of the install I had to add 'use Template;' to get the script to run. This is on Fedora Linux (Core 2). The following is the error message I received before the fix: $ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load....ok 1/1# Testing Template::Timer 0.04 t/00-load....ok t/eval.......ok 1/2Can't locate object method "new" via package "Template" at t/eval.t line 12. # Looks like you planned 2 tests but only ran 1. # Looks like your test died just after 1. t/eval.......dubious Test returned status 255 (wstat 65280, 0xff00) Scalar found where operator expected at (eval 155) line 1, near "'int' $__val" (Missing operator before $__val?) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/pod........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/eval.t 255 65280 2 2 100.00% 2 Failed 1/3 test scripts, 66.67% okay. 1/4 subtests failed, 75.00% okay.
I have also had this problem, on a debian sarge installation. Fixed by adding : use_ok( 'Template' ); in the begin block of eval.t, and changing number of tests to 4.
From: rbroom+perlrt [...] rbroom.com
I had the same, but also had an identical system that the test was working on. The only difference I found was that the working system had Template::Stash::XS compiled. I built this on the failing system and the test passes. I don't have time to track down the actual issue, but that's a hint at least. For reference, here's the Makefile.PL args used for Template on the failed system: TT_EXTRAS=n TT_XS_ENABLE=n TT_XS_DEFAULT=y TT_QUIET=n TT_ACCEPT=y I rebuilt Template with TT_XS_ENABLE=y to get Timer to test. (yeah, don't know why I had TT_XS_ENABLE=n with TT_XS_DEFAULT=y)
Fixed in 1.00.