From 451c6562d5120443f1fa8fe8fc2641a3d16832af Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Fri, 20 Mar 2009 13:20:02 +0100 Subject: [PATCH] Added Test::NoWarnings --- ChangeLog | 4 +++- Makefile.PL | 9 +++++---- sandbox/genMETA.pl | 37 ++++++++++++++++++++----------------- t/10_DDumper.t | 3 ++- t/20_DPeek.t | 3 ++- t/21_DDisplay.t | 3 ++- t/30_DDump-s.t | 3 ++- t/31_DDump-s.t | 3 ++- t/40_DDump-h.t | 3 ++- t/41_DDump-h.t | 3 ++- t/50_DDual.t | 3 ++- t/51_triplevar.t | 3 ++- 12 files changed, 46 insertions(+), 31 deletions(-) diff --git a/ChangeLog b/ChangeLog index c6dccee..7d7db3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,9 @@ -2009-03-02 0.26 - H.Merijn Brand +2009-03-06 0.26 - H.Merijn Brand * Upped copyright to 2009 * Corrected paren placement for bless (...) + * Documentation fixes + * Added Test::NoWarnings 2008-11-24 0.25 - H.Merijn Brand diff --git a/Makefile.PL b/Makefile.PL index 716172f..6e379e0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -12,10 +12,11 @@ my %wm = ( ABSTRACT => "Extended/Modified debugging utilities", AUTHOR => "H.Merijn Brand ", VERSION_FROM => "Peek.pm", - PREREQ_PM => { "DynaLoader" => 0, - "Data::Dumper" => 0, - "Test::More" => 0, - "Test::Harness" => 0, + PREREQ_PM => { "DynaLoader" => 0, + "Data::Dumper" => 0, + "Test::More" => 0, + "Test::Harness" => 0, + "Test::NoWarnings" => 0, }, clean => { FILES => join " ", qw( Peek.c.gcov diff --git a/sandbox/genMETA.pl b/sandbox/genMETA.pl index c15263b..fc3eebb 100755 --- a/sandbox/genMETA.pl +++ b/sandbox/genMETA.pl @@ -59,28 +59,31 @@ else { __END__ --- #YAML:1.1 -name: Data::Peek -version: VERSION -abstract: Modified and extended debugging facilities -license: perl +name: Data::Peek +version: VERSION +abstract: Modified and extended debugging facilities +license: perl author: - H.Merijn Brand -generated_by: Author -distribution_type: module +generated_by: Author +distribution_type: module provides: Data::Peek: - file: Peek.pm - version: VERSION + file: Peek.pm + version: VERSION requires: - perl: 5.006 - DynaLoader: 0 + perl: 5.006 + DynaLoader: 0 +recommends: + perl: 5.008005 build_requires: - perl: 5.006 - Data::Dumper: 0 - Test::Harness: 0 - Test::More: 0 + perl: 5.006 + Data::Dumper: 0 + Test::Harness: 0 + Test::More: 0 + Test::NoWarnings: 0 resources: - license: http://dev.perl.org/licenses/ + license: http://dev.perl.org/licenses/ meta-spec: - version: 1.4 - url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 + url: http://module-build.sourceforge.net/META-spec-v1.4.html diff --git a/t/10_DDumper.t b/t/10_DDumper.t index c7d36d2..ed8afd8 100644 --- a/t/10_DDumper.t +++ b/t/10_DDumper.t @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::More tests => 42; +use Test::More tests => 43; +use Test::NoWarnings; BEGIN { use_ok "Data::Peek"; diff --git a/t/20_DPeek.t b/t/20_DPeek.t index c557f8a..c04cc08 100644 --- a/t/20_DPeek.t +++ b/t/20_DPeek.t @@ -4,6 +4,7 @@ use strict; use warnings; use Test::More; +use Test::NoWarnings; use Data::Peek; @@ -14,7 +15,7 @@ if ($peek =~ m/^Your perl did not/) { plan skip_all => $peek; } else { - plan tests => 49; + plan tests => 50; } like (DPeek ($/), qr'^PVMG\("\\(n|12)"\\0\)', '$/'); diff --git a/t/21_DDisplay.t b/t/21_DDisplay.t index 5853caf..208b20b 100644 --- a/t/21_DDisplay.t +++ b/t/21_DDisplay.t @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; +use Test::NoWarnings; use Data::Peek; diff --git a/t/30_DDump-s.t b/t/30_DDump-s.t index 10af961..7856465 100644 --- a/t/30_DDump-s.t +++ b/t/30_DDump-s.t @@ -4,7 +4,8 @@ use strict; use warnings; # I would like more tests, but contents change over every perl version -use Test::More tests => 5; +use Test::More tests => 6; +use Test::NoWarnings; use Data::Peek; diff --git a/t/31_DDump-s.t b/t/31_DDump-s.t index d8922c5..84c4aeb 100644 --- a/t/31_DDump-s.t +++ b/t/31_DDump-s.t @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 2; +use Test::NoWarnings; use Data::Peek; diff --git a/t/40_DDump-h.t b/t/40_DDump-h.t index d60e9b5..ad0dd09 100644 --- a/t/40_DDump-h.t +++ b/t/40_DDump-h.t @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 2; +use Test::NoWarnings; use Data::Peek; diff --git a/t/41_DDump-h.t b/t/41_DDump-h.t index 8a2776e..553ae5c 100644 --- a/t/41_DDump-h.t +++ b/t/41_DDump-h.t @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 2; +use Test::NoWarnings; use Data::Peek; diff --git a/t/50_DDual.t b/t/50_DDual.t index a61a493..9c5901b 100644 --- a/t/50_DDual.t +++ b/t/50_DDual.t @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::More tests => 69; +use Test::More tests => 70; +use Test::NoWarnings; use Data::Peek; diff --git a/t/51_triplevar.t b/t/51_triplevar.t index 07cfd7a..1c6f12d 100644 --- a/t/51_triplevar.t +++ b/t/51_triplevar.t @@ -3,7 +3,8 @@ use strict; use warnings; -use Test::More tests => 32; +use Test::More tests => 33; +use Test::NoWarnings; use Data::Peek qw( DDual DPeek triplevar ); -- 2.11.4.GIT