Ticket #403: more_tests.patch

File more_tests.patch, 4.1 KB (added by rg, 13 years ago)

Rewrite -r to --run-pbc and fix the remaining matches

  • lib/Parrot/Harness/Options.pm

     
    9494        'S' => '-runcore=switch', 
    9595        'b' => '-runcore=bounds', 
    9696        'f' => '-runcore=fast', 
     97        'r' => '-run-pbc', 
    9798    ); 
    9899 
    99100    my %mapped; 
  • t/pmc/sub.t

     
    892892ok 
    893893OUTPUT 
    894894 
    895 { 
    896  
    897     # the test has different output when run with --run-pbc (make testr) 
    898     # actually not - compiling creates 2 'initial' 
    899     #                running emts 'main' 
    900  
    901     my $code = <<'CODE'; 
     895pir_output_is( <<'CODE', <<'OUT', ':immediate :postcomp' ); 
    902896.sub optc :immediate :postcomp 
    903897    print "initial\n" 
    904898.end 
     
    906900    say "main" 
    907901.end 
    908902CODE 
    909     my $descr = ':immediate :postcomp'; 
    910     if ( exists $ENV{TEST_PROG_ARGS} and $ENV{TEST_PROG_ARGS} =~ m/-r/ ) { 
    911         pir_output_is( $code, <<'OUT', $descr ); 
    912903initial 
    913904initial 
    914905main 
    915906OUT 
    916     } 
    917     else { 
    918         pir_output_is( $code, <<'OUT', $descr ); 
    919 initial 
    920 initial 
    921 main 
    922 OUT 
    923     } 
    924 } 
    925907 
    926908pir_output_like( <<'CODE', <<'OUTPUT', ':anon' ); 
    927909.sub main :main 
  • t/pmc/namespace.t

     
    645645 
    646646SKIP: 
    647647{ 
    648     skip( "immediate test, doesn't with -r (from .pbc)", 1 ) 
    649         if ( exists $ENV{TEST_PROG_ARGS} and $ENV{TEST_PROG_ARGS} =~ m/-r/ ); 
     648    skip( "immediate test, doesn't with --run-pbc", 1 ) 
     649        if ( exists $ENV{TEST_PROG_ARGS} and $ENV{TEST_PROG_ARGS} =~ m/--run-pbc/ ); 
    650650 
    651651    pir_output_is( <<'CODE', <<'OUTPUT', "get_global in current" ); 
    652652.HLL 'bork' 
  • t/pmc/exception.t

     
    535535OUTPUT 
    536536 
    537537$ENV{TEST_PROG_ARGS} ||= ''; 
    538 my @todo = $ENV{TEST_PROG_ARGS} =~ /-r/ 
     538my @todo = $ENV{TEST_PROG_ARGS} =~ /--run-pbc/ 
    539539    ? ( todo => '.tailcall and lexical maps not thawed from PBC, RT #60650' ) 
    540540    : (); 
    541541pir_output_is( <<'CODE', <<'OUTPUT', "exit_handler via exit exception", @todo ); 
  • t/compilers/imcc/syn/hll.t

     
    3333OUT 
    3434 
    3535$ENV{TEST_PROG_ARGS} ||= ''; 
    36 my @todo = $ENV{TEST_PROG_ARGS} =~ /-r/ 
     36my @todo = $ENV{TEST_PROG_ARGS} =~ /--run-pbc/ 
    3737    ? ( todo => 'classes and HLL maps not thawed from PBC, RT #60648' ) 
    3838    : (); 
    3939pir_output_is( <<'CODE', <<'OUT', ".param :slurpy (using object)", @todo ); 
  • t/compilers/imcc/syn/errors.t

     
    1111use Parrot::Test; 
    1212 
    1313plan skip_all => 'No reason to compile invalid PBC here' 
    14     if $ENV{TEST_PROG_ARGS} && $ENV{TEST_PROG_ARGS} =~ m/-r/; 
     14    if $ENV{TEST_PROG_ARGS} && $ENV{TEST_PROG_ARGS} =~ m/--run-pbc/; 
    1515 
    1616plan tests => 5; 
    1717 
  • t/op/exceptions.t

     
    424424OUTPUT 
    425425 
    426426$ENV{TEST_PROG_ARGS} ||= ''; 
    427 my @todo = $ENV{TEST_PROG_ARGS} =~ /-r/ 
     427my @todo = $ENV{TEST_PROG_ARGS} =~ /--run-pbc/ 
    428428    ? ( todo => '.tailcall and lexical maps not thawed from PBC, RT #60650' ) 
    429429    : (); 
    430430pir_output_is( <<'CODE', <<'OUTPUT', "exit_handler via exit exception", @todo ); 
  • t/op/lexicals.t

     
    1212$ENV{TEST_PROG_ARGS} ||= ''; 
    1313 
    1414plan( skip_all => 'lexicals not thawed properly from PBC, RT #60652' ) 
    15     if $ENV{TEST_PROG_ARGS} =~ /-r/; 
     15    if $ENV{TEST_PROG_ARGS} =~ /--run-pbc/; 
    1616 
    1717plan( tests => 47 ); 
    1818