Suppress deprecation warnings from test output for perl4 era libs.
authorNicholas Clark <nick@ccl4.org>
Tue, 29 Jun 2010 19:32:33 +0000 (20:32 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 29 Jun 2010 19:32:33 +0000 (20:32 +0100)
A tweak to the pattern used by 96471c6b3e9cad6e, to match the current warning.

cpan/Getopt-Long/t/gol-compat.t
lib/bigfloatpl.t
lib/bigintpl.t

index fe4f746..610474f 100644 (file)
@@ -14,7 +14,7 @@ BEGIN {
     # of testing. These tests will be removed along with newgetopt.pl in
     # the next major release of perl.
     local $SIG{__WARN__} = sub {
-        if ($_[0] !~ /deprecated/) {
+        if ($_[0] !~ /will be removed from the Perl core distribution/) {
             print(STDERR @_);
         }
     };
index a3810e3..0a26598 100644 (file)
@@ -10,7 +10,7 @@ BEGIN {
     # of testing. These tests will be removed along with bigfloat.pl in
     # the next major release of perl.
     local $SIG{__WARN__} = sub {
-        if ($_[0] !~ /deprecated/) {
+        if ($_[0] !~ /will be removed from the Perl core distribution/) {
             print(STDERR @_);
         }
     };
index 9245683..bdd4919 100644 (file)
@@ -10,7 +10,7 @@ BEGIN {
     # of testing. These tests will be removed along with bigint.pl in
     # the next major release of perl.
     local $SIG{__WARN__} = sub {
-        if ($_[0] !~ /deprecated/) {
+        if ($_[0] !~ /will be removed from the Perl core distribution/) {
             print(STDERR @_);
         }
     };