summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/ext/IPC/SysV/t
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/ext/IPC/SysV/t')
-rwxr-xr-xcontrib/perl5/ext/IPC/SysV/t/msg.t41
-rwxr-xr-xcontrib/perl5/ext/IPC/SysV/t/sem.t51
2 files changed, 0 insertions, 92 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";
diff --git a/contrib/perl5/ext/IPC/SysV/t/sem.t b/contrib/perl5/ext/IPC/SysV/t/sem.t
deleted file mode 100755
index 9d6fff6..0000000
--- a/contrib/perl5/ext/IPC/SysV/t/sem.t
+++ /dev/null
@@ -1,51 +0,0 @@
-
-use IPC::SysV qw(
- SETALL
- IPC_PRIVATE
- IPC_CREAT
- IPC_RMID
- IPC_NOWAIT
- IPC_STAT
- S_IRWXU
- S_IRWXG
- S_IRWXO
-);
-use IPC::Semaphore;
-
-print "1..10\n";
-
-$sem = new IPC::Semaphore(IPC_PRIVATE, 10, S_IRWXU | S_IRWXG | S_IRWXO | IPC_CREAT)
- || die "semget: ",$!+0," $!\n";
-
-print "ok 1\n";
-
-my $st = $sem->stat || print "not ";
-print "ok 2\n";
-
-$sem->setall( (0) x 10) || print "not ";
-print "ok 3\n";
-
-my @sem = $sem->getall;
-print "not " unless join("",@sem) eq "0000000000";
-print "ok 4\n";
-
-$sem[2] = 1;
-$sem->setall( @sem ) || print "not ";
-print "ok 5\n";
-
-@sem = $sem->getall;
-print "not " unless join("",@sem) eq "0010000000";
-print "ok 6\n";
-
-my $ncnt = $sem->getncnt(0);
-print "not " if $sem->getncnt(0) || !defined($ncnt);
-print "ok 7\n";
-
-$sem->op(2,-1,IPC_NOWAIT) || print "not ";
-print "ok 8\n";
-
-print "not " if $sem->getncnt(0);
-print "ok 9\n";
-
-$sem->remove || print "not ";
-print "ok 10\n";
OpenPOWER on IntegriCloud