X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ftest.pl;h=0c315561405a56c95032e436c5dc84c56f2ccc65;hb=b60cf05ab72950309ce22f1294b53484e06a00ac;hp=52fefbf7abf464afec209d7c0cbfcb9f8c7aec2a;hpb=dcc7f48117e0d8d95c3ad7e7d270188fbf5e9ec8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/test.pl b/t/test.pl index 52fefbf..0c31556 100644 --- a/t/test.pl +++ b/t/test.pl @@ -379,12 +379,19 @@ sub _create_runperl { # Create the string to qx in runperl(). } } if ($args{switches}) { + local $Level = 2; + die "test.pl:runperl(): 'switches' must be an ARRAYREF " . _where() + unless ref $args{switches} eq "ARRAY"; _quote_args(\$runperl, $args{switches}); } if (defined $args{prog}) { + die "test.pl:runperl(): both 'prog' and 'progs' cannot be used " . _where() + if defined $args{progs}; $args{progs} = [$args{prog}] } if (defined $args{progs}) { + die "test.pl:runperl(): 'progs' must be an ARRAYREF " . _where() + unless ref $args{progs} eq "ARRAY"; foreach my $prog (@{$args{progs}}) { if ($is_mswin || $is_netware || $is_vms) { $runperl .= qq ( -e "$prog" );