# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 19-events.t'
use strict;
use warnings;
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 19-events.t'
use strict;
use warnings;
my($errcode, $errmsg, $addinfo) = (undef, "dummy", "dummy");
my $options = Net::Z3950::ZOOM::options_create();
Net::Z3950::ZOOM::options_set($options, async => 1);
my($errcode, $errmsg, $addinfo) = (undef, "dummy", "dummy");
my $options = Net::Z3950::ZOOM::options_create();
Net::Z3950::ZOOM::options_set($options, async => 1);
my $conn = Net::Z3950::ZOOM::connection_create($options);
Net::Z3950::ZOOM::connection_connect($conn, $host, 0);
$errcode = Net::Z3950::ZOOM::connection_error($conn, $errmsg, $addinfo);
my $conn = Net::Z3950::ZOOM::connection_create($options);
Net::Z3950::ZOOM::connection_connect($conn, $host, 0);
$errcode = Net::Z3950::ZOOM::connection_error($conn, $errmsg, $addinfo);
$val = Net::Z3950::ZOOM::event([]);
ok($val == -3, "empty array reference argument rejected");
$val = Net::Z3950::ZOOM::event([]);
ok($val == -3, "empty array reference argument rejected");
-$val = Net::Z3950::ZOOM::event([1..32767]);
-ok($val == -4, "huge array reference argument rejected");
+# The old test for giant array reference can't be done now that the
+# corresponding array internal to the glue-code is allocated
+# dynamically.
+ok(1, "huge array reference argument rejected");
# Test the sequence of events that come from just creating the
# connection: there's the physical connect; the sending the Init
# Test the sequence of events that come from just creating the
# connection: there's the physical connect; the sending the Init