summaryrefslogtreecommitdiff
path: root/lib/DB.t
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2001-11-27 11:11:49 -0600
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-28 00:52:19 +0000
commiteca89c5aec5fdc75755d569b277e8d7a65800f20 (patch)
treec83fbd2055470d9d7b0a884b7f0346386f5e4546 /lib/DB.t
parentaecce72843f2792d1d97805e84d7856bc662116a (diff)
downloadperl-eca89c5aec5fdc75755d569b277e8d7a65800f20.tar.gz
fix lib/DB.t on VMS
Message-Id: <5.1.0.14.2.20011127164513.01bf1ec0@exchi01> p4raw-id: //depot/perl@13331
Diffstat (limited to 'lib/DB.t')
-rw-r--r--lib/DB.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DB.t b/lib/DB.t
index 06dda903e9..0b4548cf2e 100644
--- a/lib/DB.t
+++ b/lib/DB.t
@@ -54,6 +54,8 @@ BEGIN {
# test DB::save()
{
+ no warnings 'uninitialized';
+
# assigning a number to $! seems to produce an error message, when read
local ($@, $,, $/, $\, $^W, $!) = (1 .. 5);
DB::save();
@@ -107,7 +109,7 @@ is( DB::_clientname('bar'), '','DB::_clientname should not return non refname');
my $line = __LINE__ + 1;
my @ret = eval { DB->backtrace() };
- like( $ret[0], qr/file.+$0/, 'DB::backtrace() should report current file');
+ like( $ret[0], qr/file.+\Q$0\Q/, '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' );