Skip to content

Commit

Permalink
Do not grab a global lock if test won't run
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Dec 11, 2012
1 parent 8893ffd commit ad7fbbc
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions t/zzzzzzz_perl_perf_bug.t
@@ -1,8 +1,19 @@
use strict;
use warnings;
use Test::More;
use Benchmark;
use lib qw(t/lib);

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.
Expand All @@ -19,13 +30,6 @@ use DBICTest ':GlobalLock';
# Perl Performance Issues on Red Hat Systems in
# L<DBIx::Class::Manual::Troubleshooting>

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 system appears to be a smoker'
if DBICTest::RunMode->is_smoker;

plan tests => 3;

ok( 1, 'Dummy - prevents next test timing out' );
Expand Down

0 comments on commit ad7fbbc

Please sign in to comment.