Ticket #471: svn.diff

File svn.diff, 2.0 KB (added by b2gills, 13 years ago)

patch file

  • CREDITS

     
    168168 
    169169N: Brad Gilbert 
    170170D: Add test for sysinfo op. 
     171D: Added Win9x spawnw check to various tests 
    171172E: b2gills@gmail.com 
    172173 
    173174N: Bram Geron 
  • t/pmc/sys.t

     
    1010use Parrot::Test::Util 'create_tempfile'; 
    1111 
    1212use Parrot::Test tests => 2; 
     13use Parrot::Config; 
    1314 
    1415=head1 NAME 
    1516 
     
    2526 
    2627=cut 
    2728 
     29 
     30our $test_err; 
     31if ( $PConfig{osname} eq 'MSWin32' ) { 
     32    if( eval { require Win32; } ){ 
     33        if( Win32::GetOSVersion() <= 1 ){ 
     34            $test_err = "requires newer OS than Win9x"; 
     35        } 
     36    }else{ 
     37        warn "This test may halt Win9x systems"; 
     38    } 
     39} 
     40 
     41SKIP: 
     42{ 
     43    skip $test_err, 1 if $test_err; 
     44 
    2845my (undef, $temp_pir) = create_tempfile( SUFFIX => '.pir', UNLINK => 1 ); 
    2946 
    3047pir_output_is( <<"CODE", <<OUT, "spawnw, _config" ); 
     
    57740 
    5875OUT 
    5976 
     77} 
     78 
    6079pir_output_is( <<'CODE', <<'OUT', "conf_hash is read-only") 
    6180.sub _test :main 
    6281    .local pmc conf_hash 
  • t/op/spawnw.t

     
    77use lib qw( . lib ../lib ../../lib ); 
    88use Test::More; 
    99use Parrot::Test tests => 7; 
     10use Parrot::Config; 
    1011 
    1112=head1 NAME 
    1213 
     
    4142 
    4243=cut 
    4344 
     45our $test_err; 
     46if ( $PConfig{osname} eq 'MSWin32' ) { 
     47    if( eval { require Win32; } ){ 
     48        if( Win32::GetOSVersion() <= 1 ){ 
     49            $test_err = "requires newer OS than Win9x"; 
     50        } 
     51    }else{ 
     52        warn "This test may halt Win9x systems"; 
     53    } 
     54} 
     55 
     56SKIP: 
     57{ 
     58    skip $test_err, 7 if $test_err; 
     59 
    4460# perl command coded this way to avoid platform 
    4561# quoting issue. 
    4662 
     
    166182return code: 10 
    167183OUTPUT 
    168184 
     185} 
     186 
    169187# Local Variables: 
    170188#   mode: cperl 
    171189#   cperl-indent-level: 4