Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 76853
Status: resolved
Priority: 0/
Queue: Test-File

People
Owner: BAREFOOT [...] cpan.org
Requestors: DARKSMO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.33
Fixed in: 1.34



Hello, I am trying to build Test::File in MsWin, but the test links.t is failing. The failure is due to "You tried to plan twice at t\links.t line 8.", which is the same reported by CPAN testers. This is because you are calling "plan" twice on MsWin. The first time you call it implicitly when you do: use Test::More tests => 37; The second time you call: plan skip_all => "This system doesn't do symlinks"; A fix to this would be starting test.t in the following way: use strict; use Test::Builder::Tester; use Test::More; use Test::File; my $can_symlink = eval { symlink("",""); 1 }; if ( $can_symlink ) { plan tests => 37; } else { plan skip_all => "This system doesn't do symlinks"; } ......
Okay, I've incorporated your code and released a dev version 1.33_01, which I will try to promote to full this weekend, barring negative feedback from you (or CPAN Testers). Let me know if you see anything else. Thx for the bug report.