summaryrefslogtreecommitdiff
path: root/t/op/override.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/override.t')
-rw-r--r--t/op/override.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/op/override.t b/t/op/override.t
index ab2cbf1515..be39cf9330 100644
--- a/t/op/override.t
+++ b/t/op/override.t
@@ -49,8 +49,14 @@ is( $r, "Foo.pm" );
eval "use Foo::Bar";
is( $r, join($dirsep, "Foo", "Bar.pm") );
-eval "use 5.006";
-is( $r, "5.006" );
+# Under PERL_UNICODE, %^H is set, causing Perl_utilize to require
+# feature.pm after 5.006, in order to turn off features. Stop that
+# from interfering with this test by unsetting HINT_LOCALIZE_HH.
+{
+ BEGIN { $^H &= ~0x00020000 } # HINT_LOCALIZE_HH
+ eval "use 5.006";
+ is( $r, "5.006" );
+}
{
local $_ = 'foo.pm';