Changeset 3314

Show
Ignore:
Timestamp:
03/13/09 03:40:16 (18 months ago)
Author:
szabgab
Message:

Require Test::More for the testing and bail on failure in the compilation tests
change the order of the STDIN/STDERR tests to see the more important one in case of a bail out

Location:
trunk/Padre
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/Padre/Changes

    r3313 r3314  
    77    Eliminate a test failure on non-English locale. (SZABGAB) 
    88    Internal cleanups & documentation for configuration subsystem (JQUELIN) 
     9    Require Test::Most for the testing and bail_on compilation errors. (SZABGAB) 
    910 
    1011v0.28 2009.03.04 
  • trunk/Padre/Makefile.PL

    r3221 r3314  
    8585test_requires  'Test::Compile'            => '0.08' unless win32; 
    8686test_requires  'Test::More'               => '0.47'; 
     87test_requires  'Test::Most'               => '0.21'; 
    8788test_requires  'Test::Script'             => '1.03'; 
    8889test_requires  'Test::Exception'          => '0.27'; 
  • trunk/Padre/t/00-compile.t

    r2875 r3314  
    11use strict; 
    22use warnings; 
    3 use Test::More; 
     3use Test::Most; 
    44BEGIN { 
    55        if (not $ENV{DISPLAY} and not $^O eq 'MSWin32') { 
     
    1010 
    1111#use Test::NeedsDisplay ':skip_all'; 
     12bail_on_fail; 
    1213 
    1314use File::Find::Rule; 
     
    2627                $module =~ s/\.pm$//; 
    2728                system "$^X -e \"require $module; print 'ok';\" > $out 2>$err"; 
     29                my $err_data = slurp($err); 
     30                is($err_data, '', "STDERR of $file"); 
     31 
    2832                my $out_data = slurp($out); 
    2933                is($out_data, 'ok', "STDOUT of $file"); 
    30  
    31                 my $err_data = slurp($err); 
    32                 is($err_data, '', "STDERR of $file"); 
    3334} 
    3435