From: Craig A. Berry Date: Sat, 20 Nov 2004 10:29:47 +0000 (-0600) Subject: warnings.t portability tweaks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c162e49af577414c7863a0dd3de0ccb3daf6d69d;p=p5sagit%2Fp5-mst-13.2.git warnings.t portability tweaks From: "Craig A. Berry" Message-ID: <419F70FB.7000100@mac.com> p4raw-id: //depot/perl@23525 --- diff --git a/t/lib/warnings/9uninit b/t/lib/warnings/9uninit index 4a3b3a3..d22e4cf 100644 --- a/t/lib/warnings/9uninit +++ b/t/lib/warnings/9uninit @@ -1166,7 +1166,6 @@ eval { syswrite $m1, $g1 }; # eval { syswrite STDERR, $m1 }; # XXX under utf8, can give # eval { syswrite STDERR, $m1, $g1 }; # XXX different warnings # eval { syswrite STDERR, $m1, $g1, $m2 }; -eval { my $x; flock $x, $g1 }; eval { my $x; socket $x, $m1, $g1, $m2 }; eval { my ($x,$y); socketpair $x, $y, $m1, $g1, $m2 }; EXPECT @@ -1178,14 +1177,32 @@ Use of uninitialized value $g1 in sysseek at - line 6. Use of uninitialized value $m1 in sysseek at - line 6. Use of uninitialized value $m1 in ref-to-glob cast at - line 7. Use of uninitialized value $g1 in syswrite at - line 7. -Use of uninitialized value $x in ref-to-glob cast at - line 11. -Use of uninitialized value $g1 in flock at - line 11. -Use of uninitialized value $m2 in socket at - line 12. -Use of uninitialized value $g1 in socket at - line 12. -Use of uninitialized value $m1 in socket at - line 12. -Use of uninitialized value $m2 in socketpair at - line 13. -Use of uninitialized value $g1 in socketpair at - line 13. -Use of uninitialized value $m1 in socketpair at - line 13. +Use of uninitialized value $m2 in socket at - line 11. +Use of uninitialized value $g1 in socket at - line 11. +Use of uninitialized value $m1 in socket at - line 11. +Use of uninitialized value $m2 in socketpair at - line 12. +Use of uninitialized value $g1 in socketpair at - line 12. +Use of uninitialized value $m1 in socketpair at - line 12. +######## +use Config; +BEGIN { + if ( !$Config{d_flock} && + !$Config{d_fcntl_can_lock} && + !$Config{d_lockf} ) { + print <