Jerry D. Hedden [Thu, 3 Sep 2009 07:47:41 +0000 (09:47 +0200)]
@INC = '../lib';
}
-require "bigfloat.pl";
+{
+ # Silence the deprecation warnings from bigfloat.pl for the purpose
+ # 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/) {
+ print(STDERR @_);
+ }
+ };
+ require "bigfloat.pl";
+}
$test = 0;
$| = 1;
chdir 't' if -d 't';
@INC = '../lib';
}
-require "bigint.pl";
+
+{
+ # Silence the deprecation warnings from bigint.pl for the purpose
+ # 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/) {
+ print(STDERR @_);
+ }
+ };
+ require "bigint.pl";
+}
$test = 0;
$| = 1;