File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ testhere: # Run the tests from lib rather than blib
21
21
\t perl -Ilib -e 'use Test::Harness "runtests"; runtests \@ ARGV;' -- t/*.t
22
22
23
23
testpacked: pack # Test the packed version
24
- \t export PERLPP_NOUSE=1 PERLPP_CMD=" \\\" $secure_perl_path \\\" blib/perlpp"; \\
24
+ \t export PERLPP_NOUSE=1 PERLPP_PERLOPTS=" blib/perlpp"; \\
25
25
\t perl -e 'use Test::Harness "runtests"; runtests \@ ARGV;' -- t/*.t
26
26
EOT
27
27
} # postamble
Original file line number Diff line number Diff line change 2
2
# Some basic tests for perlpp
3
3
use rlib ' ./lib' ;
4
4
use PerlPPTest;
5
- plan tests => 1;
6
5
7
- my ($stdout , $stderr , @result );
8
- ($stdout , $stderr , @result ) = capture {
9
- local *STDIN ;
10
- close STDIN ;
11
- Text::PerlPP-> new-> Main([' -e' ,' say 42;' ]);
12
- };
6
+ if ($ENV {PERLPP_NOUSE } || 0) {
7
+ plan skip_all => ' Loading not tested in this configuration (PERLPP_NOUSE)' ;
13
8
14
- is($stdout , " 42\n " );
9
+ } else {
10
+ plan tests => 1;
11
+ my ($stdout , $stderr , @result ) = capture {
12
+ local *STDIN ;
13
+ close STDIN ;
14
+ Text::PerlPP-> new-> Main([' -e' ,' say 42;' ]);
15
+ };
16
+
17
+ is($stdout , " 42\n " );
18
+ }
15
19
16
20
done_testing();
17
21
# vi: set ts=4 sts=4 sw=4 et ai: #
You can’t perform that action at this time.
0 commit comments