Skip Menu |

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

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

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

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



Subject: Can't find scripts relative to the cwd
get_perl_cmd() cannot find a script if it's a file relative to the cwd. In addition, if it can't find the script the test passes. For example: $ cat > script #!/usr/bin/perl print "Hi"; $ perl -wle 'use Test::More tests => 1; use Test::Script::Run; run_ok("./script");' 1..1 couldn't find the script at /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/site_perl/5.12.2/Test/Script/Run.pm line 188. ok 1 - I think adding '.' to @BIN_DIRS would be convenient.
fixed in 0.05, and I also added '.' to default @BIN_DIRS thanks very much sunnavy On Fri Jan 07 01:22:34 2011, MSCHWERN wrote: Show quoted text
> get_perl_cmd() cannot find a script if it's a file relative to the > cwd. > In addition, if it can't find the script the test passes. > > For example: > > $ cat > script > #!/usr/bin/perl > > print "Hi"; > > $ perl -wle 'use Test::More tests => 1; use Test::Script::Run; > run_ok("./script");' > 1..1 > couldn't find the script at > /Users/schwern/perl5/perlbrew/perls/perl- > v5.12.2/lib/site_perl/5.12.2/Test/Script/Run.pm > line 188. > ok 1 - > > I think adding '.' to @BIN_DIRS would be convenient.