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.