Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the App-Info CPAN distribution.

Report information
The Basics
Id: 21281
Status: resolved
Priority: 0/
Queue: App-Info

People
Owner: Nobody in particular
Requestors: alexchorny [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.49
Fixed in: 0.51



Subject: multiple test failures on Win32
ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread Binary build 813. example: t\apache........... # Failed test 'Apache is installed' # in t\apache.t at line 40. # Failed test 'Get name' # in t\apache.t at line 41. # got: undef # expected: 'Apache' # Failed test 'Test Version' # in t\apache.t at line 42. # got: undef # expected: '1.3.31' # Failed test 'Test major version' # in t\apache.t at line 43. # got: undef # expected: '1' P.S. ok on Vanilla Perl and RedHat. ------- Alexandr Ciornii, http://chorny.net
From: Alexandr Ciornii <alexchorny [...] gmail.com>
It does not fails when installing with CPANPLUS, but fails when testing from command prompt. Same behaviour for ActiveState and Vanilla.
Subject: Re: [rt.cpan.org #21281] multiple test failures on Win32
Date: Fri, 22 Sep 2006 09:20:50 -0700
To: bug-App-Info [...] rt.cpan.org
From: "David E. Wheeler" <david [...] kineticode.com>
On Sep 2, 2006, at 09:42, alexchorny@gmail.com via RT wrote: Show quoted text
> ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread > Binary build 813.
I have the same Perl on Win32, build 815. Show quoted text
> example: > t\apache........... > # Failed test 'Apache is installed' > # in t\apache.t at line 40. > > # Failed test 'Get name' > # in t\apache.t at line 41. > # got: undef > # expected: 'Apache' > > # Failed test 'Test Version' > # in t\apache.t at line 42. > # got: undef > # expected: '1.3.31' > > # Failed test 'Test major version' > # in t\apache.t at line 43. > # got: undef > # expected: '1' > > > P.S. ok on Vanilla Perl and RedHat.
Curious. I don't get these failures with my ActivePerl, either in DOS or under cygwin. And the code in t/apache2.t is nearly identical, yet you get no failures there? Would you apply this patch and let me know what the output is? Index: t/apache.t =================================================================== --- t/apache.t (revision 2968) +++ t/apache.t (working copy) @@ -25,6 +25,8 @@ mod_imap mod_actions mod_userdir mod_alias mod_rewrite mod_access mod_auth mod_so mod_setenvif mod_ssl mod_perl); +diag("httpd$ext"); +diag("myapxs$ext"); ok( my $apache = App::Info::HTTPD::Apache->new( search_bin_dirs => $bin_dir, search_exe_names => "httpd$ext", Thanks.
Subject: Funny error
From: Alexandr Ciornii <alexchorny [...] gmail.com>
On Sep 22 12:21:09 2006, david @ kineticode.com wrote: Show quoted text
> On Sep 2, 2006, at 09:42, alexchorny @ gmail.com via RT wrote: >
> > ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread > > Binary build 813.
> > I have the same Perl on Win32, build 815. > > Curious. I don't get these failures with my ActivePerl, either in DOS > or under cygwin. And the code in t/apache2.t is nearly identical, yet > you get no failures there?
When I do `nmake test` without previous `nmake`, or `perl Build test` without previous `perl Build`, blib/ is created, but t/scripts/ is not. When doing this separately all tests pass. ------- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #21281] Funny error
Date: Fri, 22 Sep 2006 11:49:48 -0700
To: bug-App-Info [...] rt.cpan.org
From: "David E. Wheeler" <david [...] kineticode.com>
On Sep 22, 2006, at 10:51, alexchorny@gmail.com via RT wrote: Show quoted text
> When I do `nmake test` without previous `nmake`, or `perl Build test` > without previous `perl Build`, blib/ is created, but t/scripts/ is > not. > When doing this separately all tests pass.
Oh, I get it. This patch fixes the problem. Index: Build.PL =================================================================== --- Build.PL (revision 2968) +++ Build.PL (working copy) @@ -3,10 +3,10 @@ my $class = Module::Build->subclass( class => 'My::Builder', code => q{ - sub ACTION_build { + sub ACTION_code { use File::Spec::Functions; my $self = shift; - $self->SUPER::ACTION_build(@_); + $self->SUPER::ACTION_code(@_); # Copy the test scripts and then set the shebang line and make # sure that they're executable. my $from_dir = $self->localize_file_path("t/bin"); Best, David