Subject: | Empty quotes cause TAP::Harness->new( { exec => [ ... ] } ) to behave wierdly. |
Hi!
When invoking TAP::Harness->new( { exec => ... } ) and placing empty
quotes in the exec reference, TAP::Harness will hang after a test. I
attempted to look into this, but I couldn't figure out why.
As a wishlist item, it would be nice to remove empty strings from the
exec ref. This problem was found when this code was attempted
my $tap = TAP::Harness->new( { exec => ['perl',$extralibs,'...'] } );
and $extralibs was set to '';
The old Test::Harness code did this... fyi...
local $ENV{HARNESS_PERL} = "$EXECUTABLE_NAME $extra_libs ..."; and thus
wans't a problem.
FYI!
Thank you,
-daniel
#### test.pl
#!/usr/bin/env perl
use strict;
use warnings;
use English; # $EXECUTABLE_NAME ( aka $^X )
use TAP::Harness;
my $args = { exec => [ $EXECUTABLE_NAME, '' ] };
my $test = TAP::Harness->new( $args );
my $aggregator = $test->runtests( '01-test.pl' );
print $aggregator->failed(), "\n";
#### 01-test.pl
use Test::More qw | no_plan |;
ok ( 1, 'basic test');