From: Peter Rabbitson Date: Sun, 7 Jun 2015 11:26:45 +0000 (+0200) Subject: More excision of POSIX::import() calls (similar to 247c80fb) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=47603d6ca430a518dd2c88b53495aa7f294a0015;p=dbsrgits%2FDBIx-Class.git More excision of POSIX::import() calls (similar to 247c80fb) Also some readability shuffling (zero functional changes) --- diff --git a/t/87ordered.t b/t/87ordered.t index 324be84..1eb079b 100644 --- a/t/87ordered.t +++ b/t/87ordered.t @@ -6,7 +6,7 @@ use Test::More; use lib qw(t/lib); use DBICTest; -use POSIX qw(ceil); +use POSIX (); my $schema = DBICTest->init_schema(); @@ -156,7 +156,9 @@ $to_pos = undef; $to_pos++; $to_group = ($to_group % 3) + 1; $to_group_2_base++; - $to_group_2 = (ceil($to_group_2_base/3.0) %3) +1 + $to_group_2 = ( + POSIX::ceil( $to_group_2_base / 3.0 ) % 3 + ) + 1; } } foreach my $group_id_2 (1..4) { diff --git a/t/lib/DBICTest/Util/LeakTracer.pm b/t/lib/DBICTest/Util/LeakTracer.pm index 6f684e0..447d0ec 100644 --- a/t/lib/DBICTest/Util/LeakTracer.pm +++ b/t/lib/DBICTest/Util/LeakTracer.pm @@ -293,7 +293,7 @@ sub assert_empty_weakregistry { # Devel::MAT::Dumper::dumpfh( $fh ); # close ($fh) or die $!; # -# use POSIX; +# require POSIX; # POSIX::_exit(1); # } }