Changeset 949 for trunk/t/54_redirect.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/54_redirect.t

    r785 r949  
    33use OpenGuides::Config;
    44use OpenGuides;
    5 use Test::More tests => 2;
     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 => 2;
     13}
    914
    1015SKIP: {
    11     skip "DBD::SQLite not installed - no database to test with", 2
    12       unless $have_sqlite;
    13 
    1416    Wiki::Toolkit::Setup::SQLite::setup( { dbname => "t/node.db" } );
    1517    my $config = OpenGuides::Config->new(
Note: See TracChangeset for help on using the changeset viewer.