This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Jerry spotted that as a result of change 34483 which upgrades blead to
authorNicholas Clark <nick@ccl4.org>
Tue, 21 Oct 2008 20:00:16 +0000 (20:00 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 21 Oct 2008 20:00:16 +0000 (20:00 +0000)
Test::Simple 0.82, lib/DB.t is now issuing a warning. His original
suggestion was ok(!defined ...) - he, Merijn and I independently
refined this to isnt(..., undef)

p4raw-id: //depot/perl@34554

lib/DB.t

index f665291..a1fadf3 100644 (file)
--- a/lib/DB.t
+++ b/lib/DB.t
@@ -86,7 +86,7 @@ BEGIN {
 # test DB::_clientname()
 is( DB::_clientname('foo=A(1)'), 'foo',
     'DB::_clientname should return refname');
 # test DB::_clientname()
 is( DB::_clientname('foo=A(1)'), 'foo',
     'DB::_clientname should return refname');
-cmp_ok( DB::_clientname('bar'), 'eq', '',
+is( DB::_clientname('bar'), undef,
         'DB::_clientname should not return non refname');
 
 # test DB::next() and DB::step()
         'DB::_clientname should not return non refname');
 
 # test DB::next() and DB::step()