Clarify reporting
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Test / Record / Fetch.pm
index 6ed0edb..b63c22e 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Fetch.pm,v 1.12 2006-11-01 09:56:50 sondberg Exp $
+# $Id: Fetch.pm,v 1.15 2006-11-14 16:18:51 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',
@@ -86,7 +89,7 @@ sub record {
        }
     } else {
        $conn->log("irspy_test", "Retrieval of $syn record failed: ",
-                  "exception unavailable");
+                  "(exception unavailable)");
     }
 
     $conn->record()->store_result('record_fetch',