Message-ID: <
43C3D80E.20704@sun.com>
Date: Tue, 10 Jan 2006 15:51:42 +0000
p4raw-id: //depot/perl@26773
push(@{$errs}, "_PATH_LOG not available in syslog.h");
return 0;
}
+ if (! -S $syslog_path) {
+ push(@{$errs}, "$syslog_path is not a socket");
+ return 0;
+ }
my $that = sockaddr_un($syslog_path);
if (!$that) {
push(@{$errs}, "can't locate $syslog_path");
$name = $1;
my $v = eval "${callpack}::$name()";
- if($v =~ /^\d+$/) {
+ if(defined($v) && $v =~ /^\d+$/) {
is( $@, '', "calling the constant $name as a function" );
like( $v, '/^\d+$/', "checking that $name is a number ($v)" );