Ignore:
Timestamp:
Mar 18, 2007, 10:58:06 PM (15 years ago)
Author:
Earle Martin
Message:

Use skip_all for tests relying entirely on SQLite, instead of issuing skip commands with duplicate test counts and causing maintenance overhead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/63_bug_map_link_no_address.t

    r785 r949  
    22use OpenGuides;
    33use OpenGuides::Test;
    4 use Test::More tests => 1;
     4use Test::More;
    55
    66eval { require DBD::SQLite; };
    7 my $have_sqlite = $@ ? 0 : 1;
     7
     8if ($@) {
     9    plan skip_all => "DBD::SQLite not installed - no database to test with";
     10} else {
     11    plan tests => 1;
     12}
    813
    914SKIP: {
    10     skip "DBD::SQLite not installed - no database to test with", 1
    11       unless $have_sqlite;
    12 
    1315    Wiki::Toolkit::Setup::SQLite::cleardb( { dbname => "t/node.db" } );
    1416    Wiki::Toolkit::Setup::SQLite::setup( { dbname => "t/node.db" } );
Note: See TracChangeset for help on using the changeset viewer.