projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clarify reporting
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy
/
Test
/
Record
/
Fetch.pm
diff --git
a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm
b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm
index
6021ade
..
b63c22e
100644
(file)
--- 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.15 2006-11-14 16:18:51 mike Exp $
# See the "Main" test package for documentation
# See the "Main" test package for documentation
@@
-28,7
+28,10
@@
sub start {
sub completed_search {
my($conn, $task, $udata, $event) = @_;
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',
my @syntax = (
'canmarc',
'danmarc',
@@
-86,12
+89,12
@@
sub record {
}
} else {
$conn->log("irspy_test", "Retrieval of $syn record failed: ",
}
} else {
$conn->log("irspy_test", "Retrieval of $syn record failed: ",
- "exception unavailable");
+ "(exception unavailable)");
}
$conn->record()->store_result('record_fetch',
'syntax' => $syn,
}
$conn->record()->store_result('record_fetch',
'syntax' => $syn,
- 'ok' => defined $text);
+ 'ok' => defined $text ? 1 : 0);
return ZOOM::IRSpy::Status::TASK_DONE;
}
return ZOOM::IRSpy::Status::TASK_DONE;
}