Skip to content

Commit

Permalink
Putting done_testing() in an END block defeats its protections. done_…
Browse files Browse the repository at this point in the history
…testing should be called IF AND ONLY IF the test has run to completion. END blocks always run.
  • Loading branch information
schwern committed Sep 23, 2011
1 parent 1dce78e commit fe9cb6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions t/00-compile.t
@@ -1,12 +1,10 @@

use strict;
use warnings;

use FindBin;
use lib map $FindBin::Bin . '/' . $_, qw( . ../lib ../lib/perl5 );

use Test::More;
END { done_testing }

######################################################################

Expand Down Expand Up @@ -52,4 +50,4 @@ use_ok ('SQL::Admin::Catalog::Table::Unique');
use_ok ('SQL::Admin::Catalog::Table::ForeignKey');
use_ok ('SQL::Admin::Catalog::Table::Column');


done_testing;

0 comments on commit fe9cb6c

Please sign in to comment.