From 5010ade9ae74a45c3a9c06d498dbe64f9187747c Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 1 Aug 2007 15:11:20 +0000 Subject: [PATCH] Test whether $record is defined before checking its contents. --- lib/ZOOM/IRSpy/Test/ResultSet/Named.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm b/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm index fc1cc64..eb3a342 100644 --- a/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm +++ b/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm @@ -1,4 +1,4 @@ -# $Id: Named.pm,v 1.5 2007-03-15 11:38:53 mike Exp $ +# $Id: Named.pm,v 1.6 2007-08-01 15:11:20 mike Exp $ # See the "Main" test package for documentation @@ -86,7 +86,7 @@ sub completed_search_b { $error = 'hitcount'; } - if ($record ne $test_args->{'record_a'}) { + if (!defined $record || $record ne $test_args->{'record_a'}) { $conn->log('irspy_test', 'Named result set not supported: ', 'Mis-matching records'); $error = 'record'; -- 1.7.10.4