Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Prereq CPAN distribution.

Report information
The Basics
Id: 11825
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Test-Prereq

People
Owner: bdfoy [...] cpan.org
Requestors: rrwo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.026
Fixed in: (no value)



Subject: Example for Test::Prereq::Build does not work
Using the following code from the example: use Test; eval "use Test::Prereq::Build"; plan skip_all => "Test::Prereq::Build required to test dependencies" if $@; prereq_ok(); Removing "use Test" gives a syntax error: t\00-Prereqs-Build....Unquoted string "plan" may clash with future reserved word at t\00-Prereqs-Build.t line 3. syntax error at t\00-Prereqs-Build.t line 3, near "plan skip_all" Execution of t\00-Prereqs-Build.t aborted due to compilation errors. t\00-Prereqs-Build....dubious Test returned status 255 (wstat 65280, 0xff00) "perl Build test" outputs: t\00-Prereqs-Build....You tried to run a test without a plan! Gotta have a plan. at C:/Perl/site/lib/Test/Prereq.pm line 263 FAILED before any test output arrived
The examples for Test::Prereq should include Test::More. I've fixed this in version 1.028.