diff options
Diffstat (limited to 'gnu/usr.bin/perl/t/porting/test_bootstrap.t')
-rwxr-xr-x | gnu/usr.bin/perl/t/porting/test_bootstrap.t | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/t/porting/test_bootstrap.t b/gnu/usr.bin/perl/t/porting/test_bootstrap.t index d07e659dad6..654eaac9990 100755 --- a/gnu/usr.bin/perl/t/porting/test_bootstrap.t +++ b/gnu/usr.bin/perl/t/porting/test_bootstrap.t @@ -7,7 +7,10 @@ use strict; # This regression tests ensures that the rules aren't accidentally overlooked. -require './test.pl'; +BEGIN { + chdir 't'; + require './test.pl'; +} plan('no_plan'); @@ -46,7 +49,17 @@ while (my $file = <$fh>) { unless $file eq 'comp/require.t' } -# There are regression tests using test.pl that don't want PL_sawampersand set +# There are regression tests using test.pl that don't want PL_sawampersand +# set. Or at least that was the case until PL_sawampersand was disabled +# and replaced with copy-on-write. + +# We still allow PL_sawampersand to be enabled with +# -Accflags=-DPERL_SAWAMPERSAND, so when that is defined we can still run +# these tests. When it is not enabled, PL_sawampersand makes no observable +# difference so the tests fail. + +require Config; +exit unless "@{[Config::bincompat_options()]}" =~ /\bPERL_SAWAMPERSAND\b/; # This very much relies on a bug in the regexp implementation, but for now it's # the best way to work out whether PL_sawampersand is true. |