BEGIN {
print "not " if exists $^H{foo};
print "ok 1 - \$^H{foo} doesn't exist initially\n";
- print "not " if $^H & 0x00020000;
- print "ok 2 - \$^H doesn't contain HINT_LOCALIZE_HH initially\n";
+ if (${^OPEN}) {
+ print "not " unless $^H & 0x00020000;
+ print "ok 2 - \$^H contains HINT_LOCALIZE_HH initially with ${^OPEN}\n";
+ } else {
+ print "not " if $^H & 0x00020000;
+ print "ok 2 - \$^H doesn't contain HINT_LOCALIZE_HH initially\n";
+ }
}
{
# simulate a pragma -- don't forget HINT_LOCALIZE_HH
CHECK {
print "not " if exists $^H{foo};
print "ok 9 - \$^H{foo} doesn't exist when compilation complete\n";
- print "not " if $^H & 0x00020000;
- print "ok 10 - \$^H doesn't contain HINT_LOCALIZE_HH when compilation complete\n";
+ if (${^OPEN}) {
+ print "not " unless $^H & 0x00020000;
+ print "ok 10 - \$^H contains HINT_LOCALIZE_HH when compilation complete with ${^OPEN}\n";
+ } else {
+ print "not " if $^H & 0x00020000;
+ print "ok 10 - \$^H doesn't contain HINT_LOCALIZE_HH when compilation complete\n";
+ }
}
print "not " if exists $^H{foo};
print "ok 11 - \$^H{foo} doesn't exist at runtime\n";
- print "not " if $^H & 0x00020000;
- print "ok 12 - \$^H doesn't contain HINT_LOCALIZE_HH at run-time\n";
+ if (${^OPEN}) {
+ print "not " unless $^H & 0x00020000;
+ print "ok 12 - \$^H contains HINT_LOCALIZE_HH at run-time with ${^OPEN}\n";
+ } else {
+ print "not " if $^H & 0x00020000;
+ print "ok 12 - \$^H doesn't contain HINT_LOCALIZE_HH at run-time\n";
+ }
# op_entereval should keep the pragmas it was compiled with
eval q*
print "not " if $^H{foo} ne "a";
BEGIN {
print "not " if exists $^H{foo};
print "ok 7 - \$^H{foo} doesn't exist while finishing compilation\n";
- print "not " if $^H & 0x00020000;
- print "ok 8 - \$^H doesn't contain HINT_LOCALIZE_HH while finishing compilation\n";
+ if (${^OPEN}) {
+ print "not " unless $^H & 0x00020000;
+ print "ok 8 - \$^H contains HINT_LOCALIZE_HH while finishing compilation with ${^OPEN}\n";
+ } else {
+ print "not " if $^H & 0x00020000;
+ print "ok 8 - \$^H doesn't contain HINT_LOCALIZE_HH while finishing compilation\n";
+ }
}
require 'test.pl';