Skip Menu |

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

Report information
The Basics
Id: 55592
Status: resolved
Priority: 0/
Queue: Test-Script-Run

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

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



Subject: run_script() breaks on FreeBSD due to odd interaction with IPC3::Run + FindBin
I didn't have time to debug this properly but on FreeBSD doing: 1. git clone git://github.com/avar/hailo.git 2. cd hailo 2. git checkout 0.29 3. prove -Ilib t/command/shell.t Will break with errors about FindBin being unable to find the 'hailo' commend that's being tested. I'm not sure whether this is due to some error in Test::Script::Run or because Hailo/Command.pm tries to find out what it is with FindBin and running things under IPC3::Run on FreeBSD somehow breaks that.
On Mon Mar 15 10:09:34 2010, AVAR wrote: Show quoted text
> I didn't have time to debug this properly but on FreeBSD doing: > > 1. git clone git://github.com/avar/hailo.git > 2. cd hailo > 2. git checkout 0.29 > 3. prove -Ilib t/command/shell.t > > Will break with errors about FindBin being unable to find the 'hailo' > commend that's being tested. I'm not sure whether this is due to some > error in Test::Script::Run or because Hailo/Command.pm tries to find
out Show quoted text
> what it is with FindBin and running things under IPC3::Run on FreeBSD > somehow breaks that.
Yeah this was due to IPC3::Run not playing nice with FindBin. See http://github.com/avar/hailo/commit/42346c8ac8fcc4b0aa7f0b3ddee263c2dc9c 7741 for a workaround I used using Dir::Self. This should probably be resolved as invalid, but maybe there's something IPC3::Run can do to work around this...
thanks for reporting and making the problem clear and fixable :) On Mon Mar 15 10:54:09 2010, AVAR wrote: Show quoted text
> On Mon Mar 15 10:09:34 2010, AVAR wrote:
> > I didn't have time to debug this properly but on FreeBSD doing: > > > > 1. git clone git://github.com/avar/hailo.git > > 2. cd hailo > > 2. git checkout 0.29 > > 3. prove -Ilib t/command/shell.t > > > > Will break with errors about FindBin being unable to find the 'hailo' > > commend that's being tested. I'm not sure whether this is due to some > > error in Test::Script::Run or because Hailo/Command.pm tries to find
> out
> > what it is with FindBin and running things under IPC3::Run on FreeBSD > > somehow breaks that.
> > Yeah this was due to IPC3::Run not playing nice with FindBin. See > http://github.com/avar/hailo/commit/42346c8ac8fcc4b0aa7f0b3ddee263c2dc9c > 7741 for a workaround I used using Dir::Self. > > This should probably be resolved as invalid, but maybe there's something > IPC3::Run can do to work around this... >