#!./perl
BEGIN {
chdir 't' if -d 't';
}
require "./test.pl";
BEGIN { $Orig_Bits = $^H }
# make sure that all those 'use vmsish' calls didn't do anything.
}
SKIP: {
#========== vmsish status ==========
{
{
}
# and lexical scoping
}
{
}
#========== vmsish exit, messages ==========
{
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
$msg =~ s/\n/\\n/g; # keep output on one line
local *TEST;
$msg =~ s/\n/\\n/g; # keep output on one line
}
#========== vmsish time ==========
{
# Make sure apparent local time isn't GMT
}
# Unless we are prepared to parse the timezone rules here and figure out
# what the correct offset was when the file was last revised, we need to
# use a file for which the current offset is known to be valid. That's why
# we create a file rather than using an existing one for the stat() test.
{
# but that didn't get it in our current scope
$vmstime = time;
}
$utctime = time;
# We allow lots of leeway (10 sec) difference for these tests,
# since it's unlikely local time will differ from UTC by so small
# an amount, and it renders the test resistant to delays from
# things like stat() on a file mounted over a slow network link.
print "# UTC: @utclocal\n# VMS: @vmslocal\n";
$utcval = $utcgmtime[5] * 31536000 + $utcgmtime[7] * 86400 +
$utcgmtime[2] * 3600 + $utcgmtime[1] * 60 + $utcgmtime[0];
$vmsval = $vmsgmtime[5] * 31536000 + $vmsgmtime[7] * 86400 +
$vmsgmtime[2] * 3600 + $vmsgmtime[1] * 60 + $vmsgmtime[0];
print "# UTC: @utcgmtime\n# VMS: @vmsgmtime\n";
}
}
#====== need this to make sure error messages come out, even if
# they were turned off in invoking procedure
sub do_a_perl {
local *P;
close P;
return $x;
}