Changeset 949 for trunk/t/12_macros.t


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/12_macros.t

    r933 r949  
    33use OpenGuides;
    44use OpenGuides::Test;
    5 use Test::More tests => 10;
     5use Test::More;
    66
    77eval { require DBD::SQLite; };
    8 my $have_sqlite = $@ ? 0 : 1;
     8
     9if ($@) {
     10    plan skip_all => "DBD::SQLite not installed - no database to test with";
     11} else {
     12    plan tests => 10;
     13}
    914
    1015SKIP: {
    11     skip "DBD::SQLite not installed - no database to test with", 10
    12       unless $have_sqlite;
    13 
    1416    # Clear out the database from any previous runs.
    1517    unlink "t/node.db";
Note: See TracChangeset for help on using the changeset viewer.