7 require Config; import Config;
8 if ($Config{'extensions'} !~ /\bOpcode\b/
9 && $Config{'extensions'} !~ /\bPOSIX\b/
10 && $Config{'osname'} ne 'VMS')
21 use Test::More tests => 1;
27 # Attempt to change the opmask from within the safe compartment
28 $safe->reval( qq{\$_[1] = q/\0/ x } . ceil( Opcode::opcodes / 8 ) );
30 # Check that it didn't work
31 $safe->reval( q{$x + $y} );
32 like( $@, qr/^'?addition \(\+\)'? trapped by operation mask/,
33 'opmask still in place' );