Ignore:
Timestamp:
03/13/09 03:40:16 (3 years 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.