[Koha-devel] Test failure in 3.10.0

Robin Sheat robin at catalyst.net.nz
Mon Nov 26 05:54:34 CET 2012


There is a syntax error in the test cases. I don't really know how to
fix it or I would.

This is (not surprisingly) breaking the package build for 3.10.0, so
could someone who knows what's going on here please take a look ASAP.

http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9142


$ KOHA_CONF=~/koha-dev/etc/koha-conf.xml t/Calendar.t 
1..22
ok 1 - use Koha::Calendar;
ok 2 - use C4::Calendar;
String found where operator expected at t/Calendar.t line 130, near
"subtest '\'Datedue\' tests'"
	(Do you need to predeclare subtest?)
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 131.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 134.
"my" variable $dt masks earlier declaration in same scope at
t/Calendar.t line 135.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 137.
"my" variable $dt masks earlier declaration in same scope at
t/Calendar.t line 137.
"my" variable $one_day_dur masks earlier declaration in same scope at
t/Calendar.t line 137.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 141.
"my" variable $dt masks earlier declaration in same scope at
t/Calendar.t line 141.
"my" variable $two_day_dur masks earlier declaration in same scope at
t/Calendar.t line 141.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 145.
"my" variable $test_dt masks earlier declaration in same scope at
t/Calendar.t line 145.
"my" variable $seven_day_dur masks earlier declaration in same scope at
t/Calendar.t line 145.
String found where operator expected at t/Calendar.t line 151, near
"subtest '\'Calendar\' tests'"
	(Do you need to predeclare subtest?)
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 152.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 155.
"my" variable $dt masks earlier declaration in same scope at
t/Calendar.t line 156.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 158.
"my" variable $dt masks earlier declaration in same scope at
t/Calendar.t line 158.
"my" variable $one_day_dur masks earlier declaration in same scope at
t/Calendar.t line 158.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 162.
"my" variable $test_dt masks earlier declaration in same scope at
t/Calendar.t line 162.
"my" variable $seven_day_dur masks earlier declaration in same scope at
t/Calendar.t line 162.
String found where operator expected at t/Calendar.t line 168, near
"subtest '\'Days\' tests'"
	(Do you need to predeclare subtest?)
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 169.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 172.
"my" variable $dt masks earlier declaration in same scope at
t/Calendar.t line 173.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 175.
"my" variable $dt masks earlier declaration in same scope at
t/Calendar.t line 175.
"my" variable $one_day_dur masks earlier declaration in same scope at
t/Calendar.t line 175.
"my" variable $cal masks earlier declaration in same scope at
t/Calendar.t line 179.
"my" variable $test_dt masks earlier declaration in same scope at
t/Calendar.t line 179.
"my" variable $seven_day_dur masks earlier declaration in same scope at
t/Calendar.t line 179.
syntax error at t/Calendar.t line 130, near "subtest '\'Datedue\'
tests'"
syntax error at t/Calendar.t line 148, near "}"
syntax error at t/Calendar.t line 165, near "}"
syntax error at t/Calendar.t line 182, near "}"
Execution of t/Calendar.t aborted due to compilation errors.
# Looks like you planned 22 tests but ran 2.
# Looks like your test exited with 255 just after 2.


-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20121126/80c41099/attachment.pgp>


More information about the Koha-devel mailing list