summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/ext/IPC/SysV/t/msg.t
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-05-16 10:09:28 +0000
committermarkm <markm@FreeBSD.org>2002-05-16 10:09:28 +0000
commitf56e05005c751822074f0a22aa9a98d2eb189924 (patch)
treee28fc632241c9d248069d45dd9ab2a41fa64868f /contrib/perl5/ext/IPC/SysV/t/msg.t
parent344ddc14973a1519f100f54051dcb068069fe43c (diff)
downloadFreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.zip
FreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.tar.gz
Perl is no longer in base. Long live the port!
Diffstat (limited to 'contrib/perl5/ext/IPC/SysV/t/msg.t')
-rwxr-xr-xcontrib/perl5/ext/IPC/SysV/t/msg.t41
1 files changed, 0 insertions, 41 deletions
diff --git a/contrib/perl5/ext/IPC/SysV/t/msg.t b/contrib/perl5/ext/IPC/SysV/t/msg.t
deleted file mode 100755
index 2a982f0..0000000
--- a/contrib/perl5/ext/IPC/SysV/t/msg.t
+++ /dev/null
@@ -1,41 +0,0 @@
-use IPC::SysV qw(IPC_PRIVATE IPC_RMID IPC_NOWAIT IPC_STAT S_IRWXU S_IRWXG S_IRWXO);
-
-use IPC::Msg;
-#Creating a message queue
-
-print "1..9\n";
-
-$msq = new IPC::Msg(IPC_PRIVATE, S_IRWXU | S_IRWXG | S_IRWXO)
- || die "msgget: ",$!+0," $!\n";
-
-print "ok 1\n";
-
-#Putting a message on the queue
-$msgtype = 1;
-$msg = "hello";
-$msq->snd($msgtype,$msg,0) || print "not ";
-print "ok 2\n";
-
-#Check if there are messages on the queue
-$ds = $msq->stat() or print "not ";
-print "ok 3\n";
-
-print "not " unless $ds && $ds->qnum() == 1;
-print "ok 4\n";
-
-#Retreiving a message from the queue
-$rmsgtype = 0; # Give me any type
-$rmsgtype = $msq->rcv($rmsg,256,$rmsgtype,IPC_NOWAIT) || print "not ";
-print "ok 5\n";
-
-print "not " unless $rmsgtype == $msgtype && $rmsg eq $msg;
-print "ok 6\n";
-
-$ds = $msq->stat() or print "not ";
-print "ok 7\n";
-
-print "not " unless $ds && $ds->qnum() == 0;
-print "ok 8\n";
-
-$msq->remove || print "not ";
-print "ok 9\n";
OpenPOWER on IntegriCloud