Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.535 kb
use strict;
use Test::More;
use Test::Fatal;
BEGIN {
use_ok "ZeroMQ::Raw", qw(
zmq_init
zmq_term
);
}
subtest 'sane creation/destroy' => sub {
is exception {
my $context = zmq_init(5);
isa_ok $context, "ZeroMQ::Raw::Context";
zmq_term( $context );
}, undef, "sane allocation / cleanup for context";
is exception {
my $context = zmq_init();
zmq_term( $context );
zmq_term( $context );
}, undef, "double zmq_term should not die";
};
done_testing;
Jump to Line
Something went wrong with that request. Please try again.