X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=t%2F19-events.t;h=e104f3d3edf9fa9d5364dd3271b4102f06355fa6;hb=8b4ecbf35382b09c398f84c17726f4f7d56951de;hp=87cc242308354d4532e1a16769230da249ce2e9b;hpb=9367a4fba43e514afb0b234e6b57dfda223ff208;p=ZOOM-Perl-moved-to-github.git diff --git a/t/19-events.t b/t/19-events.t index 87cc242..e104f3d 100644 --- a/t/19-events.t +++ b/t/19-events.t @@ -1,4 +1,4 @@ -# $Id: 19-events.t,v 1.5 2006-04-12 12:07:32 mike Exp $ +# $Id: 19-events.t,v 1.8 2007-02-22 20:38:11 mike Exp $ # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 19-events.t' @@ -17,7 +17,7 @@ my($errcode, $errmsg, $addinfo) = (undef, "dummy", "dummy"); my $options = Net::Z3950::ZOOM::options_create(); Net::Z3950::ZOOM::options_set($options, async => 1); -my $host = "indexdata.com/gils"; +my $host = "z3950.indexdata.com/gils"; 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); @@ -32,8 +32,10 @@ ok($val == -2, "non-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