This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8_heavy.pl: Improve debug output
[perl5.git] / lib / DB.t
index d5237a9..a1fadf3 100644 (file)
--- a/lib/DB.t
+++ b/lib/DB.t
@@ -1,8 +1,13 @@
-#!./perl -w
+#!./perl -Tw
 
 BEGIN {
         chdir 't' if -d 't';
         @INC = '../lib';
+       require Config;
+       if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
+               print "1..0 # Skip -- Perl configured without List::Util module\n";
+               exit 0;
+       }
 }
 
 # symbolic references used later
@@ -79,8 +84,10 @@ BEGIN {
 }
 
 # test DB::_clientname()
-is( DB::_clientname('foo=A(1)'), 'foo','DB::_clientname should return refname');
-is( DB::_clientname('bar'), '','DB::_clientname should not return non refname');
+is( DB::_clientname('foo=A(1)'), 'foo',
+    'DB::_clientname should return refname');
+is( DB::_clientname('bar'), undef,
+        'DB::_clientname should not return non refname');
 
 # test DB::next() and DB::step()
 {