3 use POE::XS::Queue::Array;
7 or skip_all("You probably have a sane fork(), not testing");
9 $Config{useithreads} && $Config{useithreads} eq 'define'
10 or skip_all("No ithreads to support pseudo-fork");
17 my $q1 = POE::XS::Queue::Array->new;
18 $q1->enqueue(100, 101);
22 nok(1, !eval { $q1->isa("POE::XS::Queue::Array") },
23 "queue object should be magically unblessed");
27 nok(2, eval {$q1->isa("POE::XS::Queue::Array") },
28 "parent should still have an object");
31 # since we use fork, Test::More can't track test numbers, so we set them manually
33 my ($num, $ok, $msg) = @_;
36 print "ok $num # $msg\n";
39 print "not ok $num # $msg\n";
45 print "1..0 # $_[0]\n";