[perl #39012] another REIFY bug
[p5sagit/p5-mst-13.2.git] / t / comp / hints.t
index ce923cc..d15a44a 100644 (file)
@@ -2,6 +2,12 @@
 
 # Tests the scoping of $^H and %^H
 
+BEGIN {
+    chdir 't' if -d 't';
+    @INC = qw(. ../lib);
+}
+
+
 BEGIN { print "1..15\n"; }
 BEGIN {
     print "not " if exists $^H{foo};
@@ -11,7 +17,7 @@ BEGIN {
 }
 {
     # simulate a pragma -- don't forget HINT_LOCALIZE_HH
-    BEGIN { $^H |= 0x00020000; $^H{foo} = "a"; }
+    BEGIN { $^H |= 0x04020000; $^H{foo} = "a"; }
     BEGIN {
        print "not " if $^H{foo} ne "a";
        print "ok 3 - \$^H{foo} is now 'a'\n";
@@ -44,7 +50,7 @@ BEGIN {
     # op_entereval should keep the pragmas it was compiled with
     eval q*
        print "not " if $^H{foo} ne "a";
-       print "ok 13 - \$^H{foo} is 'a' at eval-\"\" time # TODO\n";
+       print "ok 13 - \$^H{foo} is 'a' at eval-\"\" time\n";
        print "not " unless $^H & 0x00020000;
        print "ok 14 - \$^H contains HINT_LOCALIZE_HH at eval\"\"-time\n";
     *;