Ticket #403: more_tests.patch
File more_tests.patch, 4.1 KB (added by rg, 13 years ago) |
---|
-
lib/Parrot/Harness/Options.pm
94 94 'S' => '-runcore=switch', 95 95 'b' => '-runcore=bounds', 96 96 'f' => '-runcore=fast', 97 'r' => '-run-pbc', 97 98 ); 98 99 99 100 my %mapped; -
t/pmc/sub.t
892 892 ok 893 893 OUTPUT 894 894 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'; 895 pir_output_is( <<'CODE', <<'OUT', ':immediate :postcomp' ); 902 896 .sub optc :immediate :postcomp 903 897 print "initial\n" 904 898 .end … … 906 900 say "main" 907 901 .end 908 902 CODE 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 );912 903 initial 913 904 initial 914 905 main 915 906 OUT 916 }917 else {918 pir_output_is( $code, <<'OUT', $descr );919 initial920 initial921 main922 OUT923 }924 }925 907 926 908 pir_output_like( <<'CODE', <<'OUTPUT', ':anon' ); 927 909 .sub main :main -
t/pmc/namespace.t
645 645 646 646 SKIP: 647 647 { 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/ ); 650 650 651 651 pir_output_is( <<'CODE', <<'OUTPUT', "get_global in current" ); 652 652 .HLL 'bork' -
t/pmc/exception.t
535 535 OUTPUT 536 536 537 537 $ENV{TEST_PROG_ARGS} ||= ''; 538 my @todo = $ENV{TEST_PROG_ARGS} =~ /- r/538 my @todo = $ENV{TEST_PROG_ARGS} =~ /--run-pbc/ 539 539 ? ( todo => '.tailcall and lexical maps not thawed from PBC, RT #60650' ) 540 540 : (); 541 541 pir_output_is( <<'CODE', <<'OUTPUT', "exit_handler via exit exception", @todo ); -
t/compilers/imcc/syn/hll.t
33 33 OUT 34 34 35 35 $ENV{TEST_PROG_ARGS} ||= ''; 36 my @todo = $ENV{TEST_PROG_ARGS} =~ /- r/36 my @todo = $ENV{TEST_PROG_ARGS} =~ /--run-pbc/ 37 37 ? ( todo => 'classes and HLL maps not thawed from PBC, RT #60648' ) 38 38 : (); 39 39 pir_output_is( <<'CODE', <<'OUT', ".param :slurpy (using object)", @todo ); -
t/compilers/imcc/syn/errors.t
11 11 use Parrot::Test; 12 12 13 13 plan 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/; 15 15 16 16 plan tests => 5; 17 17 -
t/op/exceptions.t
424 424 OUTPUT 425 425 426 426 $ENV{TEST_PROG_ARGS} ||= ''; 427 my @todo = $ENV{TEST_PROG_ARGS} =~ /- r/427 my @todo = $ENV{TEST_PROG_ARGS} =~ /--run-pbc/ 428 428 ? ( todo => '.tailcall and lexical maps not thawed from PBC, RT #60650' ) 429 429 : (); 430 430 pir_output_is( <<'CODE', <<'OUTPUT', "exit_handler via exit exception", @todo ); -
t/op/lexicals.t
12 12 $ENV{TEST_PROG_ARGS} ||= ''; 13 13 14 14 plan( 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/; 16 16 17 17 plan( tests => 47 ); 18 18