From: Mike Taylor Date: Mon, 29 Jan 2007 17:32:57 +0000 (+0000) Subject: Error on search (e.g. unsupported use attribute) falls through to X-Git-Tag: CPAN-v1.02~54^2~582 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=7a264d637bba0a27b5c8e22a29f8f37e3eaba764 Error on search (e.g. unsupported use attribute) falls through to trying next query on list rather than failing outright. --- diff --git a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm index 049e169..9c2663f 100644 --- a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm +++ b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm @@ -1,4 +1,4 @@ -# $Id: Fetch.pm,v 1.19 2007-01-29 17:24:51 mike Exp $ +# $Id: Fetch.pm,v 1.20 2007-01-29 17:32:57 mike Exp $ # See the "Main" test package for documentation @@ -30,7 +30,7 @@ sub start { # But how? So far we search for title: 1=4 $conn->irspy_search_pqf($queries[0], { queryindex => 0 }, {}, ZOOM::Event::RECV_SEARCH, \&completed_search, - exception => \&search_error); + exception => \&completed_search); } @@ -46,7 +46,7 @@ sub completed_search { $conn->log("irspy_test", "Trying another search ..."); $conn->irspy_search_pqf($queries[$n], { queryindex => $n }, {}, ZOOM::Event::RECV_SEARCH, \&completed_search, - exception => \&search_error); + exception => \&completed_search); return ZOOM::IRSpy::Status::TASK_DONE; } else { return ZOOM::IRSpy::Status::TEST_SKIPPED; @@ -133,7 +133,7 @@ sub _fetch_record { } -sub search_error { +sub __UNUSED_search_error { my($conn, $task, $test_args, $exception) = @_; $conn->log("irspy_test", "Initial search failed: ", $exception);