This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta 47836a13cc4c999c9b3589c6797d6769b52c37fd
[perl5.git] / lib / DB.t
index 7e809be..e4ee074 100644 (file)
--- a/lib/DB.t
+++ b/lib/DB.t
@@ -4,7 +4,7 @@ BEGIN {
         chdir 't' if -d 't';
         @INC = '../lib';
        require Config;
-       if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){
+       if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
                print "1..0 # Skip -- Perl configured without List::Util module\n";
                exit 0;
        }
@@ -86,7 +86,7 @@ BEGIN {
 # 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()
@@ -126,7 +126,7 @@ cmp_ok( DB::_clientname('bar'), 'eq', '',
         my @ret = eval { DB->backtrace() };
         like( $ret[0], qr/file.+\Q$0\E/, 'DB::backtrace() should report current file');
         like( $ret[0], qr/line $line/, '... should report calling line number' );
-        like( $ret[0], qr/eval {...}/, '... should catch eval BLOCK' );
+        like( $ret[0], qr/eval\Q {...}/, '... should catch eval BLOCK' );
 
         @ret = eval "one(2)";
         is( scalar @ret, 1, '... should report from provided stack frame number' );
@@ -337,7 +337,7 @@ SKIP: {
                 '... should increment past lines with no events' );
                 
         ok( ! defined DB::_find_subline('sirnotappearinginthisfilm'),
-                '... should not find nonexistant sub' );
+                '... should not find nonexistent sub' );
 }
 
 # test DB::clr_breaks()