diff options
author | Slaven Rezic <slaven@rezic.de> | 2002-11-18 12:09:51 +0100 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-11-25 02:37:07 +0000 |
commit | 6bf47b083ef4085da3ab3288ed9331208cbe862c (patch) | |
tree | cca79781ce7a669658bcdd748f34677bcf84bec4 /ext/Devel/Peek | |
parent | 9d7f88ddd9ec1f324b7625b5481fe9d2002a2554 (diff) | |
download | perl-6bf47b083ef4085da3ab3288ed9331208cbe862c.tar.gz |
add support for STASH and MAGIC information for REFs to sv_dump().
Subject: [PATCH]
Message-Id: <200211181009.gAIA9pFG034877@vran.herceg.de>
p4raw-id: //depot/perl@18177
Diffstat (limited to 'ext/Devel/Peek')
-rw-r--r-- | ext/Devel/Peek/Peek.t | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/ext/Devel/Peek/Peek.t b/ext/Devel/Peek/Peek.t index ad34935d54..6bbdfde391 100644 --- a/ext/Devel/Peek/Peek.t +++ b/ext/Devel/Peek/Peek.t @@ -12,7 +12,7 @@ BEGIN { use Devel::Peek; -print "1..21\n"; +print "1..22\n"; our $DEBUG = 0; open(SAVERR, ">&STDERR") or die "Can't dup STDERR: $!"; @@ -440,3 +440,24 @@ do_test(21, END { 1 while unlink("peek$$"); } + +# blessed refs +do_test(22, + bless(\\undef, 'Foobar'), +'SV = RV\\($ADDR\\) at $ADDR + REFCNT = 1 + FLAGS = \\(ROK\\) + RV = $ADDR + SV = PVMG\\($ADDR\\) at $ADDR + REFCNT = 2 + FLAGS = \\(OBJECT,ROK\\) + IV = \d+ + NV = \d+ + RV = $ADDR + SV = NULL\\(0x0\\) at $ADDR + REFCNT = \d+ + FLAGS = \\(READONLY\\) + PV = $ADDR "" + CUR = 0 + LEN = 0 + STASH = $ADDR\s+"Foobar"'); |