The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!env perl

use strict;use warnings;

use lib '../lib';
use lib 'lib';
use Test::More tests => 4;

use_ok('IPC::Transit') or exit;
use_ok('IPC::Transit::Test') or exit;

#clean out the queue if there's something in it
IPC::Transit::Test::clear_test_queue();
eval {
    local $SIG{ALRM} = sub { die "timed out\n" };
    alarm 1;
    ok not IPC::Transit::receive(qname => 'test', nonblock => 1);
    alarm 0;
};
ok not $@;