#!./perl -w
$|=1;
BEGIN {
print "1..0\n";
exit 0;
}
}
# Tests Todo:
# 'main' as root
package test; # test from somewhere other than main
use Safe 1.00;
my $last_test; # initalised at end
print "1..$last_test\n";
my $t = 1;
my $cpt;
# create and destroy some automatic Safe compartments first
foreach(1..3) {
$foo = 42;
# check 'main' has been changed:
# check we can't see our test package:
# Note that we *must* use $cpt->varglob here because if we used
# $Root::foo etc we would still see the original values!
# This seems to be because the compiler has created an extra ref.
}
print "ok $last_test\n";
BEGIN { $last_test = 28 }