From: Jarkko Hietaniemi Date: Wed, 27 Oct 1999 21:11:11 +0000 (+0000) Subject: Do not block if no message queues available. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8f753cb54274cceba5865fd4e206073865f6e190;p=p5sagit%2Fp5-mst-13.2.git Do not block if no message queues available. p4raw-id: //depot/cfgperl@4473 --- diff --git a/t/lib/ipc_sysv.t b/t/lib/ipc_sysv.t index 00a157b..9777292 100755 --- a/t/lib/ipc_sysv.t +++ b/t/lib/ipc_sysv.t @@ -77,8 +77,34 @@ if ($Config{'d_msgget'} eq 'define' && my $msgtype = 1; my $msgtext = "hello"; - msgsnd($msg,pack("L a*",$msgtype,$msgtext),0) or print "not "; + my $test2bad; + my $test5bad; + my $test6bad; + + unless (msgsnd($msg,pack("L a*",$msgtype,$msgtext),IPC_NOWAIT)) { + print "not "; + $test2bad = 1; + } print "ok 2\n"; + if ($test2bad) { + print <