From 73ce5080c7839579fcaf323aba5644c7b85933c6 Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand - Tux" Date: Sat, 27 Sep 2014 13:26:18 +0200 Subject: [PATCH] Add alternative test results for 5.21.5 and up (PADMY) --- ChangeLog | 3 +++ t/30_DDump-s.t | 36 +++++++++++++++++++++++++++++++----- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 849def6..6b1ca70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +0.41 - 2014-09-27, H.Merijn Brand + * Add alternative test results for 5.21.5 and up (PADMY) + 0.40 - 2014-02-27, H.Merijn Brand * Upped copyright to 2014 * Guard Perl::Tidy against stupid user options in .perltidyrc diff --git a/t/30_DDump-s.t b/t/30_DDump-s.t index c9a13d0..6511948 100644 --- a/t/30_DDump-s.t +++ b/t/30_DDump-s.t @@ -52,7 +52,7 @@ foreach my $test (@tests) { $dump =~ s/\bUV = /IV = /g if $] < 5.008; $dump =~ s/,?\bIsUV\b//g if $] < 5.008; - my @expect = split m/(?<=\n)\|\n+/ => $expect; + my @expect = split m/(?<=\n)\|(?:\s*#.*)?\n+/ => $expect; $in =~ s/[\s\n]+/ /g; @@ -79,11 +79,16 @@ SV = PV(0x****) at 0x**** PV = 0x**** ""\0 CUR = 0 LEN = 8 -| +| # as of 5.19.3 SV = PV(0x****) at 0x**** REFCNT = 1 FLAGS = (PADMY) PV = 0 +| # as of 5.21.5 +SV = PV(0x****) at 0x**** + REFCNT = 1 + FLAGS = () + PV = 0 == 0 -- @@ -94,12 +99,18 @@ SV = PVIV(0x****) at 0x**** PV = 0x**** ""\0 CUR = 0 LEN = 8 -| +| # as of 5.19.3 SV = PVIV(0x****) at 0x**** REFCNT = 1 FLAGS = (PADMY,IOK,pIOK) IV = 0 PV = 0 +| # as of 5.21.5 +SV = PVIV(0x****) at 0x**** + REFCNT = 1 + FLAGS = (IOK,pIOK) + IV = 0 + PV = 0 == 1 -- @@ -110,12 +121,18 @@ SV = PVIV(0x****) at 0x**** PV = 0x**** ""\0 CUR = 0 LEN = 8 -| +| # as of 5.19.3 SV = PVIV(0x****) at 0x**** REFCNT = 1 FLAGS = (PADMY,IOK,pIOK) IV = 1 PV = 0 +| # as of 5.21.5 +SV = PVIV(0x****) at 0x**** + REFCNT = 1 + FLAGS = (IOK,pIOK) + IV = 1 + PV = 0 == "" -- @@ -126,7 +143,7 @@ SV = PVIV(0x****) at 0x**** PV = 0x**** ""\0 CUR = 0 LEN = 8 -| +| # as of 5.19.3 SV = PVIV(0x****) at 0x**** REFCNT = 1 FLAGS = (PADMY,POK,IsCOW,pPOK) @@ -135,3 +152,12 @@ SV = PVIV(0x****) at 0x**** CUR = 0 LEN = 8 COW_REFCNT = 0 +| # as of 5.21.5 +SV = PVIV(0x****) at 0x**** + REFCNT = 1 + FLAGS = (POK,IsCOW,pPOK) + IV = 1 + PV = 0x**** ""\0 + CUR = 0 + LEN = 8 + COW_REFCNT = 0 -- 2.11.4.GIT