File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -482,11 +482,11 @@ sub select_a_perl {
482
482
}
483
483
484
484
485
- # Validate the list of perl=label on the command line.
486
- # Return a list of [ exe, label ] pairs.
485
+ # Validate the list of perl=label (+ cmdline options) on the command line.
486
+ # Return a list of [ exe, label, cmdline-options ] tuples, ie PUTs
487
487
488
488
sub process_puts {
489
- my @results ;
489
+ my @res_puts ; # returned, each item is [ perlexe, label, @putargs ]
490
490
my %seen ;
491
491
my @putargs ; # collect not-perls into args per PUT
492
492
@@ -499,13 +499,17 @@ sub process_puts {
499
499
500
500
my $r = qx( $perl -e 'print qq(ok\n )' 2>&1) ;
501
501
if ($r eq " ok\n " ) {
502
- push @results , [ $perl , $label , reverse @putargs ];
502
+ push @res_puts , [ $perl , $label , reverse @putargs ];
503
503
@putargs = ();
504
+ warn " Added Perl-Under-Test: [ @{[@{$res_puts [-1]}]} ]\n "
505
+ if $OPTS {verbose };
504
506
} else {
507
+ warn " putargs: @putargs + $p , a not-perl: $r \n "
508
+ if $OPTS {verbose };
505
509
push @putargs , $p ; # not-perl
506
510
}
507
511
}
508
- return reverse @results ;
512
+ return reverse @res_puts ;
509
513
}
510
514
511
515
You can’t perform that action at this time.
0 commit comments