Events check: allow for multiple Connect events
[ZOOM-Perl-moved-to-github.git] / t / 19-events.t
index 983c2e1..e7745f9 100644 (file)
@@ -1,5 +1,3 @@
-# $Id: 19-events.t,v 1.7 2006-11-02 17:48:26 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'
 
@@ -32,8 +30,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
@@ -45,7 +45,7 @@ ok($val == -4, "huge array reference argument rejected");
 # on any of the connections we pass in.
 
 assert_event_stream($conn, 
-                   Net::Z3950::ZOOM::EVENT_CONNECT,
+                   -(Net::Z3950::ZOOM::EVENT_CONNECT),
                    Net::Z3950::ZOOM::EVENT_SEND_APDU,
                    Net::Z3950::ZOOM::EVENT_SEND_DATA,
                    Net::Z3950::ZOOM::EVENT_RECV_DATA,