Skip Menu |

This queue is for tickets about the POE-Component-Child CPAN distribution.

Report information
The Basics
Id: 6192
Status: resolved
Priority: 0/
Queue: POE-Component-Child

People
Owner: ecalder [...] cpan.org
Requestors: rcaputo [...] pobox.com
Cc:
AdminCc:

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



Date: Sun, 2 May 2004 19:25:48 -0400
From: Rocco Caputo <rcaputo [...] pobox.com>
To: bug-POE-Component-Child [...] rt.cpan.org
Subject: test failure on Mac OS X
CPAN Terminal> install POE::Component::Child Installing: POE::Component::Child WARNING: This key is not certified with a trusted signature! Primary key fingerprint: 2E66 557A B97C 19C7 91AF 8E20 328D A867 450F 89EC WARNING: This key is not certified with a trusted signature! Primary key fingerprint: 2E66 557A B97C 19C7 91AF 8E20 328D A867 450F 89EC ==> MISSING Signature file! <== Checking if your kit is complete... Looks good Writing Makefile for POE::Component::Child PERL_DL_NONLAZY=1 /sw/perl/583-multi/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl Argument "0.28_04" isn't numeric in subroutine entry at blib/lib/POE/Component/Child.pm line 29. 1..16 ok 1 - use PoCo::Child ok 2 - session created ok 3 - component 1 ok 4 - component 2 ok 5 - component 3 not ok 6 - dir change # Failed test (test.pl at line 165) ok 7 - client write tested ok 8 - standard output ok 9 - callback references ok 10 - quit method Argument "0.28_04" isn't numeric in numeric ge (>=) at blib/lib/POE/Component/Child.pm line 230. ok 11 - standard error ok 12 - done event ok 13 - killed ok 14 - died tested ok 15 - dir change restored ok 16 - all tests successful # Looks like you failed 1 tests of 16. make: *** [test_dynamic] Error 1 MAKE TEST failed! - Invalid argument in CPANPLUS::Internals::Make::_make at Sun May 2 19:18:39 2004 at /sw/perl/583-multi/site-lib/CPANPLUS/Internals/Make.pm line 503 An error occurred handling module POE::Component::Child in CPANPLUS::Internals::Install::_install_module at Sun May 2 19:18:39 2004 at /sw/perl/583-multi/site-lib/CPANPLUS/Internals/Install.pm line 170 Installing failed! in CPANPLUS::Backend::install at Sun May 2 19:18:39 2004 at /sw/perl/583-multi/site-lib/CPANPLUS/Backend.pm line 255 Error installing POE::Component::Child Problem installing one or more modules *** You can view the complete error buffer by pressing 'p' *** -- Rocco Caputo
Date: Sun, 2 May 2004 23:11:29 -0400
From: Rocco Caputo <rcaputo [...] pobox.com>
To: POE-Component-Child <bug-POE-Component-Child [...] rt.cpan.org>
Subject: Re: [cpan #6192] AutoReply: test failure on Mac OS X
RT-Send-Cc:
The problem is that /tmp is a symlink to /private/tmp: poerbook:~ root# ls -l / | grep tmp lrwxr-xr-x 1 root admin 11 18 Feb 13:56 tmp -> private/tmp The dir change is successful, but the current directory is not the one expected by the tests. This is probably not specific to Mac OS X, but it just happens here by default. -- Rocco Caputo
hmm... so if you do: # cd /tmp # pwd you don't get /tmp?? on my linux box qx/pwd/ returns whatever qx/chdir/ sets the current directory to. if this doesn't work on OSX, what am I supposed to do?
Show quoted text
> PERL_DL_NONLAZY=1 /sw/perl/583-multi/bin/perl "-Iblib/lib" "- > Iblib/arch" test.pl > Argument "0.28_04" isn't numeric in subroutine entry at > blib/lib/POE/Component/Child.pm line 29. > [...] > ok 10 - quit method > Argument "0.28_04" isn't numeric in numeric ge (>=) at > blib/lib/POE/Component/Child.pm line 230.
this popped up in another bug report... I'm not sure what to do about it... it complains about 28 but I'm running POE 0.23 (or greater)! help? the line that causes this problem looks like this: Show quoted text
> use POE 0.23 qw(Wheel::Run Filter::Line Driver::SysRW);
[rcaputo@pobox.com - Fri May 7 11:09:46 2004]: Show quoted text
> 1) poerbook:/tmp% pwd > /tmp > 1) poerbook:/tmp% /bin/pwd > /private/tmp > 1) poerbook:/tmp%
now I'm even more confused. here's what I'm doing: $TMPDIR = tempdir(CLEANUP => 1); $t3 = POE::Component::Child->new( events => \%t3, debug => $debug, chdir => $TMPDIR, ); ok(defined $t3 && $t3->isa('POE::Component::Child'), "component 3"); $t3->run("pwd"); the idea here is that I want to test whether Child changes directory by running `pwd` - this should be the internal pwd, not the one in /bin and thus $TMPDIR which is /tmp should match the output of `pwd`... this works on linux... wtf??
[rcaputo@pobox.com - Fri May 7 11:09:46 2004]: Show quoted text
> The external pwd(1) utility resolves symbolic links. It can be made > to look at $PWD instead, but it doesn't do that by default.
oh.... I get it. when I do a system("pwd") I'm not getting the shell's command which is what I want. /bin/pwd doesn't have any parameters so I can change it's behaviour so I guess I'll just have to do: $t3->run("sh -c pwd"); instead. which is weird... because now I wonder why this works in linux since the behaviour in Linux seems to be the same. would you test that for me as I don't have an OSX box? the line you need to change is 105 in test.pl - if it works, I'll patch and re-release (will probably fix the other problem with it first though). thx!
all right. in the end I figured I don't want to have to care whether OSX's /tmp is a link so what I did was to patch the test script so it creates the temporary directory it needs off the current working directory instead of the default /tmp. that way the shell pwd and the /bin/pwd return the same thing. the patch is included in the 1.33 release now on CPAN.