X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fzzzzzzz_perl_perf_bug.t;h=f67c854de4bbe544bab571dcc8a4e6a2a858b299;hb=204f57da09c684851943467878cb12e8bb64aa2b;hp=558b4f00087a183e7b0cf606d775abb11c0cab3d;hpb=dc4600b2b9be4ae9a91c8ab49bdbb7ce2c23d0f7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/zzzzzzz_perl_perf_bug.t b/t/zzzzzzz_perl_perf_bug.t index 558b4f0..f67c854 100644 --- a/t/zzzzzzz_perl_perf_bug.t +++ b/t/zzzzzzz_perl_perf_bug.t @@ -1,9 +1,20 @@ use strict; use warnings; use Test::More; -use Benchmark; use lib qw(t/lib); -use DBICTest; # do not remove even though it is not used + +BEGIN { + plan skip_all => + 'Skipping RH perl performance bug tests as DBIC_NO_WARN_BAD_PERL set' + if ( $ENV{DBIC_NO_WARN_BAD_PERL} ); + + require DBICTest::RunMode; + plan skip_all => 'Skipping as system appears to be a smoker' + if DBICTest::RunMode->is_smoker; +} + +use Benchmark; +use DBICTest ':GlobalLock'; # This is a rather unusual test. # It does not test any aspect of DBIx::Class, but instead tests the @@ -19,13 +30,6 @@ use DBICTest; # do not remove even though it is not used # Perl Performance Issues on Red Hat Systems in # L -plan skip_all => - 'Skipping RH perl performance bug tests as DBIC_NO_WARN_BAD_PERL set' - if ( $ENV{DBIC_NO_WARN_BAD_PERL} ); - -plan skip_all => 'Skipping as AUTOMATED_TESTING is set' - if ( $ENV{AUTOMATED_TESTING} ); - plan tests => 3; ok( 1, 'Dummy - prevents next test timing out' );