Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 3307
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: abeltje [...] cpan.org
Cc:
AdminCc:

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



Subject: Test-suite not run in Windows
Hi, I just installed WWW::Mechanize-0.58 on windows and found that the test-suite is not run (and gives an error, so CPAN won't install) Attached is a patch to Makefile.PL which makes the tests available for windows with stock ActivePerl 5.8.0 (build 806) hth && good luck Abe
--- Makefile.PL.orig 2003-08-21 20:02:59.000000000 +0200 +++ Makefile.PL 2003-08-21 20:06:27.000000000 +0200 @@ -28,8 +28,11 @@ } } # failed connect -my $tests = 't/*.t'; -$tests .= ' t/live/*.t' unless $skiplive; +sub is_win32() { $^O eq 'MSWin32' } + +my $tests = is_win32 ? join " ", glob( 't/*.t' ) : 't/*.t'; +$tests .= is_win32 ? join " ", glob( 't/live/*.t' ) : ' t/live/*.t' + unless $skiplive; my $parms = { 'NAME' => 'WWW::Mechanize',
No need to test if the platform is windows
[guest - Mon Oct 27 01:48:22 2003]: Show quoted text
> > No need to test if the platform is windows
Huh?
This is fixed in 0.66 (or before).