}
}
-use POSIX qw(fcntl_h signal_h limits_h _exit getcwd open read strftime write);
+use POSIX qw(fcntl_h signal_h limits_h _exit getcwd open read strftime write
+ errno);
use strict subs;
$| = 1;
-print "1..27\n";
+print "1..29\n";
$Is_W32 = $^O eq 'MSWin32';
$Is_NetWare = $^O eq 'NetWare';
try_strftime(27, "Fri Mar 31 00:00:00 2000 091", 0,0,0, 31,2,100);
&POSIX::setlocale(&POSIX::LC_TIME, $lc) if $Config{d_setlocale};
+{
+ for my $test (0, 1) {
+ $! = 0;
+ # POSIX::errno is autoloaded.
+ # Autoloading requires many system calls.
+ # errno() looks at $! to generate its result.
+ # Autoloading should not munge the value.
+ my $foo = $!;
+ my $errno = POSIX::errno();
+ print "not " unless $errno == $foo;
+ print "ok ", 28 + $test, "\n";
+ }
+}
+
$| = 0;
# The following line assumes buffered output, which may be not true with EMX:
print '@#!*$@(!@#$' unless ($^O eq 'os2' || $^O eq 'uwin' || $^O eq 'os390' ||
}
}
my $save = $@;
+ local $!; # Do not munge the value.
eval { local $SIG{__DIE__}; require $filename };
if ($@) {
if (substr($sub,-9) eq '::DESTROY') {