Changeset 2169


Ignore:
Timestamp:
12/23/08 03:25:54 (3 years ago)
Author:
szabgab
Message:

skip lots of tests if there is no DISPLAY set

Location:
trunk/Padre/t
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/t/00-compile.t

    r2167 r2169  
    11use strict; 
    22use warnings; 
    3 use Test::NeedsDisplay; 
     3#use Test::NeedsDisplay; 
    44 
    55use Test::More; 
    6 plan skip_all => 'Needs DISPLAY' if 
     6plan skip_all => 'Needs DISPLAY' if not $ENV{DISPLAY} and not $^O eq 'MSWin32'; 
    77plan skip_all => 'Needs Test::Compile 0.08 but that does not work on Windows' if $^O eq 'MSWin32'; # the same as File::Spec uses 
    88plan skip_all => 'Needs Test::Compile 0.08' if not eval "use Test::Compile 0.08; 1"; ## no critic 
  • trunk/Padre/t/02-new.t

    r2061 r2169  
    44use warnings; 
    55 
    6 use Test::NeedsDisplay; 
    7 use Test::More tests => 14; 
     6#use Test::NeedsDisplay; 
     7use Test::More; 
     8 
     9BEGIN { 
     10    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     11        plan skip_all => 'Needs DISPLAY'; 
     12        exit 0; 
     13    } 
     14} 
     15 
     16plan tests => 14; 
    817use Test::NoWarnings; 
    9  
    1018use t::lib::Padre; 
    1119use Padre; 
  • trunk/Padre/t/03-wx.t

    r1973 r2169  
    55 
    66use Test::More; 
     7 
     8BEGIN { 
     9    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     10        plan skip_all => 'Needs DISPLAY'; 
     11        exit 0; 
     12    } 
     13} 
     14 
    715 
    816BEGIN { 
     
    1624use File::Copy            qw(copy); 
    1725use File::Spec::Functions qw(catfile); 
    18 use Test::NeedsDisplay; 
     26#use Test::NeedsDisplay; 
    1927use Test::NoWarnings; 
    2028use Test::Builder; 
  • trunk/Padre/t/60-db.t

    r2053 r2169  
    44use warnings; 
    55 
    6 use Test::More tests => 20; 
     6use Test::More; 
     7BEGIN { 
     8    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     9        plan skip_all => 'Needs DISPLAY'; 
     10        exit 0; 
     11    } 
     12} 
     13 
     14plan tests => 20; 
     15 
    716use Test::NoWarnings; 
    817 
  • trunk/Padre/t/70-document.t

    r1867 r2169  
    33use strict; 
    44use warnings; 
    5 use Test::NeedsDisplay; 
     5#use Test::NeedsDisplay; 
    66use Test::More; 
     7BEGIN { 
     8    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     9        plan skip_all => 'Needs DISPLAY'; 
     10        exit 0; 
     11    } 
     12} 
     13 
    714use Test::NoWarnings; 
    815use File::Spec  (); 
  • trunk/Padre/t/71-perl.t

    r2061 r2169  
    33use strict; 
    44use warnings; 
    5 use Test::NeedsDisplay; 
     5#use Test::NeedsDisplay; 
    66use Test::More; 
     7BEGIN { 
     8    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     9        plan skip_all => 'Needs DISPLAY'; 
     10        exit 0; 
     11    } 
     12} 
     13 
    714use Test::NoWarnings; 
    815use Data::Dumper qw(Dumper); 
  • trunk/Padre/t/80-newline.t

    r1867 r2169  
    33use strict; 
    44use warnings; 
    5 use Test::NeedsDisplay; 
     5#use Test::NeedsDisplay; 
    66 
    77my $CR   = "\015"; 
     
    1010 
    1111use Test::More; 
     12BEGIN { 
     13    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     14        plan skip_all => 'Needs DISPLAY'; 
     15        exit 0; 
     16    } 
     17} 
     18 
    1219use Test::NoWarnings; 
    1320use t::lib::Padre; 
  • trunk/Padre/t/82-plugin-manager.t

    r2053 r2169  
    88use Data::Dumper qw(Dumper); 
    99 
    10 use Test::More tests => 25; 
     10use Test::More; 
     11BEGIN { 
     12    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     13        plan skip_all => 'Needs DISPLAY'; 
     14        exit 0; 
     15    } 
     16} 
     17 
     18plan tests => 25; 
     19 
    1120use Test::NoWarnings; 
    1221 
  • trunk/Padre/t/85-task-manager.t

    r1645 r2169  
    88use Data::Dumper qw(Dumper); 
    99 
    10 use Test::More tests => 12; 
     10use Test::More; 
     11BEGIN { 
     12    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     13        plan skip_all => 'Needs DISPLAY'; 
     14        exit 0; 
     15    } 
     16} 
     17 
     18plan tests => 12; 
    1119 
    1220use t::lib::Padre; 
  • trunk/Padre/t/91-vi.t

    r1867 r2169  
    55use Data::Dumper; 
    66use Test::More; 
     7BEGIN { 
     8    if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     9        plan skip_all => 'Needs DISPLAY'; 
     10        exit 0; 
     11    } 
     12} 
     13 
    714use Test::NoWarnings; 
    815my $tests; 
Note: See TracChangeset for help on using the changeset viewer.