diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-29 14:23:03 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-29 14:23:03 +0000 |
commit | 10b9e8260c4c1410f5b8643f1a9b997c04b2e461 (patch) | |
tree | f3138320ef0bfbf590e754bb8108ba7a20fad416 /ext/Socket | |
parent | df1df145ec46da3489b48fd58c3178073e7e90db (diff) | |
download | perl-10b9e8260c4c1410f5b8643f1a9b997c04b2e461.tar.gz |
OS/390 seems to do length 0 udp reads, Nicholas says
skippage is for now the best cause of action.
p4raw-id: //depot/perl@14487
Diffstat (limited to 'ext/Socket')
-rw-r--r-- | ext/Socket/socketpair.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/Socket/socketpair.t b/ext/Socket/socketpair.t index d14ccb44d9..e30dd3f446 100644 --- a/ext/Socket/socketpair.t +++ b/ext/Socket/socketpair.t @@ -184,10 +184,13 @@ foreach $expect (@left) { } ok (shutdown(LEFT, 1), "shutdown left for writing"); + # eof uses buffering. eof is indicated by a sysread of zero. # but for a datagram socket there's no way it can know nothing will ever be # sent -{ +SKIP: { + skip "$^O does length 0 udp reads", 2 if ($^O eq 'os390'); + my $alarmed = 0; local $SIG{ALRM} = sub { $alarmed = 1; }; print "# Approximate forever as 3 seconds. Wait 'forever'...\n"; @@ -197,6 +200,7 @@ ok (shutdown(LEFT, 1), "shutdown left for writing"); "read on right should be interrupted"); is ($alarmed, 1, "alarm should have fired"); } + alarm 30; #ok (eof RIGHT, "right is at EOF"); |