Skip Menu |

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

Report information
The Basics
Id: 24735
Status: resolved
Priority: 0/
Queue: Test-Without-Module

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

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: Test::Without::Module does not work anymore with Tk
(Broken in 0.09, rt did not let me specify the value) The following works fine: $ perl -MTk -e 'tkinit->Menu' (no output) Using Test::Without::Module breaks it: $ perl -MTest::Without::Module=Foo::Bar -MTk -e 'tkinit->Menu' Can't locate /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Widget/Menu.al in @INC (@INC contains: CODE(0x80a546c) /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/lib/perl5/site_perl/5.8.8/mach/Tk/Widget.pm line 301. However, it works again if I specify a blib path containing Tk: $ perl -MTest::Without::Module=Foo::Bar -Mblib=/home/e/eserte/work/svk-checkouts/Tk -MTk -e 'tkinit->Menu' There was no problem with a former version of the module (I think 0.06 was installed on my machine). Regards, Slaven
On Fri Feb 02 02:33:02 2007, SREZIC wrote: Show quoted text
> (Broken in 0.09, rt did not let me specify the value) > > The following works fine: > > $ perl -MTk -e 'tkinit->Menu' > (no output) > > Using Test::Without::Module breaks it: > > $ > perl -MTest::Without::Module=Foo::Bar -MTk -e 'tkinit->Menu' > Can't locate > /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Widget/Menu.al in @INC > (@INC contains: CODE(0x80a546c) /usr/local/lib/perl5/5.8.8/BSDPAN > /usr/local/lib/perl5/site_perl/5.8.8/mach > /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl > /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at > /usr/local/lib/perl5/site_perl/5.8.8/mach/Tk/Widget.pm line 301. > > However, it works again if I specify a blib path containing Tk: > > $ perl -MTest::Without::Module=Foo::Bar > -Mblib=/home/e/eserte/work/svk-checkouts/Tk -MTk -e 'tkinit->Menu' > > There was no problem with a former version of the module (I think 0.06 > was installed on my machine). > > Regards, > Slaven
Also no success with Test::Without::Module 0.11 and perl5.10.0, perl5.8.8 or perl5.6.2.
Subject: Re: [rt.cpan.org #24735] Test::Without::Module does not work anymore with Tk
Date: Sat, 20 Oct 2007 14:41:46 +0200
To: bug-Test-Without-Module [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Hallo Slaven, Show quoted text
>> The following works fine: >> >> $ perl -MTk -e 'tkinit->Menu' >> (no output) >> >> Using Test::Without::Module breaks it: >> >> $ >> perl -MTest::Without::Module=Foo::Bar -MTk -e 'tkinit->Menu'
In fact, I was able to reduce it to the following oneliner: perl -e "BEGIN{unshift @INC, sub{warn $@ if $@}};" -MTk -e "tkinit->Menu" I'm not sure if that's a bug in Perl or in my module due to touching/not preserving $@, but I've removed that line and it now works. v0.12 is on its way to CPAN. Thanks for reporting this bug and prodding me again! -max