6
use if (-d 't'), lib => 't';
8
use Test::More tests => 2;
10
# Confirm that values in %^H leak across file boundaries prior to patchlevel 33311 if Devel::Pragma is not used
12
# we can't assume brokenness as the tests may be
13
# run against bleadperls with change #33311 applied
19
$^H{'Devel::Pragma::Test'} = 1;
24
$already_fixed = test_1::test();
30
skip('patchlevel > 33311', 1) if ($already_fixed);
31
ok (not(test_12::test()), '%^H leaks across file boundaries if Devel::Pragma is not used');
36
use Devel::Pragma qw(my_hints);
43
skip('patchlevel > 33311', 1) if ($already_fixed);
44
ok(lexical2::test(), "Devel::Pragma doesn't leak across file boundaries");
8
use Test::More tests => 4;
10
# Confirm that values in %^H don't leak across require()
13
use Devel::Pragma qw(:all);
15
BEGIN { hints->{'Devel::Pragma::Test'} = 1 }
16
BEGIN { is($^H{'Devel::Pragma::Test'}, 1) }
20
BEGIN { is($^H{'Devel::Pragma::Test'}, 1) }
24
is($hh->{'Devel::Pragma::Test'}, undef);