X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FPing.pm;h=090c29fc786b4c32514fc529eb68c5c712a5daf1;hp=b1789c7d4e79dc6ad901ba488b8f40e933cb1439;hb=507778500ea1f4148316483a9551fe09c98d7f9c;hpb=d9f6af66371aa4465711ff39fd0b8a5d699f363e diff --git a/lib/ZOOM/IRSpy/Test/Ping.pm b/lib/ZOOM/IRSpy/Test/Ping.pm index b1789c7..090c29f 100644 --- a/lib/ZOOM/IRSpy/Test/Ping.pm +++ b/lib/ZOOM/IRSpy/Test/Ping.pm @@ -1,4 +1,4 @@ -# $Id: Ping.pm,v 1.2 2006-06-21 14:35:09 mike Exp $ +# $Id: Ping.pm,v 1.3 2006-06-21 16:10:18 mike Exp $ # See the "Main" test package for documentation @@ -19,15 +19,18 @@ sub run { my $pod = $irspy->pod(); $pod->callback(ZOOM::Event::CONNECT, \&connected); - my $err = $pod->wait(); + my $err = $pod->wait($irspy); return 0; } sub connected { - my($conn, $state, $rs, $event) = @_; - print $conn->option("host"), ": connected\n"; + my($conn, $irspy, $rs, $event) = @_; + + my $rec = $irspy->record($conn); + $irspy->log("irspy_test", $conn->option("host"), " connected"); + ### Note the successful connection in $rec return 0; }