Ticket #951: threads.t.patch
File threads.t.patch, 2.0 KB (added by kyle_l5l, 12 years ago) |
---|
-
t/pmc/threads.t
old new 447 447 ok beta3 448 448 OUTPUT 449 449 450 TODO: { 451 local $TODO = "vtable overrides aren't properly cloned RT # 46511"; 452 453 pir_output_is( <<'CODE', <<'OUTPUT', "CLONE_CODE | CLONE_CLASSES; superclass not built-in" ); 450 pir_output_is( <<'CODE', <<'OUTPUT', "CLONE_CODE | CLONE_CLASSES; superclass not built-in" ); 454 451 .namespace [ 'Foo' ] 455 452 456 453 .sub foometh :method … … 508 505 .local pmc thread 509 506 thread = new ['ParrotThread'] 510 507 .local pmc _thread_func 511 _thread_func = get_global ['main'],'thread_test_func'508 _thread_func = get_global 'thread_test_func' 512 509 $I0 = .PARROT_CLONE_CODE 513 510 bor $I0, $I0, .PARROT_CLONE_CLASSES 514 511 print "in thread:\n" … … 533 530 Foo? 1 534 531 Bar? 1 535 532 OUTPUT 536 }537 533 538 534 pir_output_is( <<'CODE', <<'OUTPUT', "CLONE_CODE | CLONE_CLASSES; superclass built-in" ); 539 535 .namespace [ 'Foo' ] … … 818 814 CODE 819 815 820 816 pir_output_is( 821 <<'CODE', <<'OUTPUT', "CLONE_CODE|CLONE_GLOBALS|CLONE_HLL|CLONE_LIBRARIES" , todo => 'RT #41373');817 <<'CODE', <<'OUTPUT', "CLONE_CODE|CLONE_GLOBALS|CLONE_HLL|CLONE_LIBRARIES" ); 822 818 .HLL 'Perl' 823 819 .loadlib 'perl_group' 824 820 … … 829 825 .sub test 830 826 .param pmc passed_value 831 827 .local pmc the_value 832 the_value = new [' PerlInt']828 the_value = new ['Integer'] 833 829 the_value = 42 834 s tore_global 'Foo', 'x', the_value835 $ I0 = typeof passed_value836 $ I1 = typeof the_value837 $I0 = $ I0 - $I1830 set_global ['Foo'], 'x', the_value 831 $S0 = typeof passed_value 832 $S1 = typeof the_value 833 $I0 = $S0 != $S1 838 834 print $I0 839 835 print "\n" 840 836 .local pmc ns … … 848 844 okay: 849 845 print "ok (equal)\n" 850 846 851 $I0 = fortytwo847 $I0 = 42 852 848 print $I0 853 849 print "\n" 854 850 .end … … 865 861 bor flags, flags, .PARROT_CLONE_LIBRARIES 866 862 867 863 .local pmc passed 868 passed = new [' PerlInt']864 passed = new ['Integer'] 869 865 passed = 15 870 866 871 867 .local pmc thread_func