@@ -14,10 +14,10 @@ my @testcases=(
14
14
# $err_re (stderr output, if any)]
15
15
16
16
# %Defs
17
- [' -D foo=42' , ' <?:macro say $Text::PerlPP:: Defs{foo}; ?>' , qr / ^42/ ],
18
- [' -D incfile=' . $incfn , ' <?:macro Include $Text::PerlPP:: Defs{incfile}; ?>' ,
17
+ [' -D foo=42' , ' <?:macro say $PSelf->{ Defs}-> {foo}; ?>' , qr / ^42/ ],
18
+ [' -D incfile=' . $incfn , ' <?:macro $PSelf-> Include( $PSelf->{ Defs}-> {incfile} ) ; ?>' ,
19
19
qr / ^a4b/ ],
20
- [' -s incfile=' . $incfn , ' <?:macro Include $Text::PerlPP:: Sets{incfile}; ?>' ,
20
+ [' -s incfile=' . $incfn , ' <?:macro $PSelf-> Include( $PSelf->{ Sets}-> {incfile} ) ; ?>' ,
21
21
qr / ^a4b/ ],
22
22
[' ' , ' <?:immediate say "print 128;"; ?>' ,qr / ^128$ / ],
23
23
@@ -29,8 +29,8 @@ for my $lrTest (@testcases) {
29
29
my ($opts , $testin , $out_re , $err_re ) = @$lrTest ;
30
30
31
31
my ($out , $err );
32
- print STDERR CMD . " $opts " , " <<<'" , $testin , " '\n " ;
33
- run3 CMD . " $opts " , \$testin , \$out , \$err ;
32
+ diag " perlpp $opts " , " <<<'" , $testin , " '\n " ;
33
+ run_perlpp $opts , \$testin , \$out , \$err ;
34
34
35
35
if (defined $out_re ) {
36
36
like($out , $out_re );
0 commit comments