This queue is for tickets about the Catalyst-Devel CPAN distribution.

Report information
The Basics
Id:
52466
Status:
resolved
Priority:
Low/Low

People
Owner:
bobtfish [...] bobtfish.net
Requestors:
GRAF [...] cpan.org
m.nooning [...] comcast.net
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
  • 1.21_01
  • 1.22
Fixed in:
(no value)



Subject: Test failure
prove -v t/generated_app.t t/generated_app.t .. String found where operator expected at t/generated_app.t line 108, near "subtest "Generated app test: $fn"" (Do you need to predeclare subtest?) syntax error at t/generated_app.t line 108, near "subtest "Generated app test: $fn"" syntax error at t/generated_app.t line 112, near "}" Can't use global @_ in "my" at t/generated_app.t line 115, near "= @_" syntax error at t/generated_app.t line 119, near "}" Execution of t/generated_app.t aborted due to compilation errors. The reason is usage of Test::More::subtest, which is new in Test::More 0.94 So either Makefile.PL must require Test::More 0.94 or t/generated_app.t must avoid subtest().
On Sun Dec 06 04:14:42 2009, GRAF wrote:
Show quoted text
> The reason is usage of Test::More::subtest, which is new in Test::More
0.94
Show quoted text
> So either Makefile.PL must require Test::More 0.94 or t/generated_app.t > must avoid subtest().
I clearly fail at reading the Test::Simple dist changelog correctly. I depended on the version _after_ subtest was seen in a dev release, but: 0.90 Thu Jul 2 13:18:25 PDT 2009 Other * This is a stable release for 5.10.1. It does not include the subtest() work in 0.89_01. This has been corrected in subversion and will be in a new release shortly, thanks for the bug report.
The new rev 1.23 still has test failures on Windows XP, Perl 5.8.8, due to t\generated_app.t not finding the files to be executable. I am trying to install Catalyst-Authentication-Store-DBIx-Class-0.1082, which depends upon Catalyst::Model::DBIC::Schema, which needs Catalyst::Devel. I tried in my msys window, and in my Visual Studio window, and in my Windows prompt box. I get the same thing in all three. C:\temp\Catalyst-Devel-1.23>nmake test Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\msys\1.0\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch ')" t/01use.t t/02pod.t t/03podcoverage.t t/back_compat.t t/generated_app.t t/get_sharedir_file.t t/optional_h ttp-server-restart.t t/render_file_contents.t t/render_share_dir_file.t t/01use.t ......................... ok t/02pod.t ......................... skipped: set TEST_POD to enable this test t/03podcoverage.t ................. skipped: set TEST_POD to enable this test t/back_compat.t ................... ok t/generated_app.t ................. # Generated app is in C:\DOCUME~1\Malcolm\LOCALS~1\Temp\ifewVjAz9S t/generated_app.t ................. 6/? # Failed test 'script\testapp_cgi.pl is executable' # at t/generated_app.t line 124. t/generated_app.t ................. 25/? # Failed test 'script\testapp_fastcgi.pl is executable' # at t/generated_app.t line 124. # Failed test 'script\testapp_server.pl is executable' # at t/generated_app.t line 124. # Failed test 'script\testapp_test.pl is executable' t/generated_app.t ................. 31/? # at t/generated_app.t line 124. # Failed test 'script\testapp_create.pl is executable' # at t/generated_app.t line 124. t/generated_app.t ................. 44/? # Failed test 'Exit status ok for 'make'' t/generated_app.t ................. 46/? # at t/generated_app.t line 108. # got: '2' # expected: '0' # STDOUT: # STDERR: # "make": *** No rule to make target `C:\Perl\libConfig.pm', needed by `Makefile'. Stop. You said to run 0 tests at t\02pod.t line 10. Compilation failed in require at t/generated_app.t line 140. # Child (Generated app test: t\02pod.t) exited without calling finalize() # Failed test 'Generated app test: t\02pod.t' # at C:/Perl/site/lib/Test/Builder.pm line 227. # Tests were run but no plan was declared and done_testing() was not seen. cannot remove path when cwd is C:/DOCUME~1/Malcolm/LOCALS~1/Temp/ifewVjAz9S/TestApp for C:\DOCUME~1\Malcolm\LO CALS~1\Temp\ifewVjAz9S: at C:/Perl/site/lib/File/Temp.pm line 902 t/generated_app.t ................. Dubious, test returned 9 (wstat 2304, 0x900) Failed 7/48 subtests t/get_sharedir_file.t ............. ok t/optional_http-server-restart.t .. skipped: set TEST_HTTP to enable this test t/render_file_contents.t .......... ok t/render_share_dir_file.t ......... ok Test Summary Report ------------------- t/generated_app.t (Wstat: 2304 Tests: 48 Failed: 7) Failed tests: 24, 27, 30, 33, 36, 46, 48 Non-zero exit status: 9 Parse errors: No plan found in TAP output Files=9, Tests=62, 17 wallclock secs ( 0.08 usr + 0.03 sys = 0.11 CPU) Result: FAIL Failed 1/9 test programs. 7/62 subtests failed. NMAKE : fatal error U1077: 'C:\msys\1.0\bin\perl.exe' : return code '0xff' Stop.
Hmmmmmmmm. "prove" seems to have a problem, too. Anything I can try? C:\temp\Catalyst-Devel-1.23>prove t\generated_app.t t\generated_app.t .. Can't locate Catalyst/Devel.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at t\generated_app.t line 8. BEGIN failed--compilation aborted at t\generated_app.t line 8. t\generated_app.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t\generated_app.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=1, Tests=0, 1 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 CPU) Result: FAIL
There have been some additional win32 fixes, see: http://lists.scsys.co.uk/pipermail/catalyst/2009-December/024030.html http://dev.catalyst.perl.org/svnweb/Catalyst/revision/?rev=12224 These (and some other fixes) are going to be released as 1.24 shortly.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.