X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FRecord%2FFetch.pm;h=a2f2369facdde4e7aa5e0b75eccebcec468835d2;hb=11d2c2c33ebbced2901f5a4587c3ac93dc3c5a9b;hp=6021ade6d06e985904baf1b9004023da9952e14e;hpb=095483b2bdb7d8f761aa85fe46e410621a726a56;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm index 6021ade..a2f2369 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.11 2006-10-31 12:42:32 mike Exp $ +# $Id: Fetch.pm,v 1.14 2006-11-03 13:37:33 mike Exp $ # See the "Main" test package for documentation @@ -28,7 +28,10 @@ sub start { sub completed_search { my($conn, $task, $udata, $event) = @_; - $conn->log("irspy_test", "Fetch test search succeeded"); + my $n = $task->{rs}->size(); + $conn->log("irspy_test", "Fetch test search found $n records"); + return ZOOM::IRSpy::Status::TEST_SKIPPED if $n == 0; + my @syntax = ( 'canmarc', 'danmarc', @@ -91,7 +94,7 @@ sub record { $conn->record()->store_result('record_fetch', 'syntax' => $syn, - 'ok' => defined $text); + 'ok' => defined $text ? 1 : 0); return ZOOM::IRSpy::Status::TASK_DONE; }