Projects

Ticket #571: bug_571_unavailable_imp_test_for_rb_f_not_implement.diff

File bug_571_unavailable_imp_test_for_rb_f_not_implement.diff, 1.1 KB (added by maxime.curioni@…, 2 years ago)
  • spec/frozen/core/process/fork_spec.rb

    diff --git a/spec/frozen/core/process/fork_spec.rb b/spec/frozen/core/process/fork_spec.rb
    index 4bc6bcc..6b3ac24 100644
    a b  
    1010      end 
    1111    end 
    1212  end 
     13   
     14  compliant_on :macruby do 
     15    it "is not implemented" do 
     16      Process.respond_to?(:fork).should be_false 
     17    end 
     18  end 
    1319 
    14   not_supported_on :jruby, :windows do 
     20  not_supported_on :macruby, :jruby, :windows do 
    1521    before :each do 
    1622      @file = tmp('i_exist') 
    1723      rm_r @file 
  • vm.h

    diff --git a/vm.h b/vm.h
    index db7e59c..9918fe3 100644
    a b  
    294294void *rb_vm_removed_imp(void *rcv, SEL sel); 
    295295#define UNAVAILABLE_IMP(imp) \ 
    296296    (imp == NULL || imp == (IMP)rb_vm_undefined_imp \ 
    297      || imp == (IMP)rb_vm_removed_imp) 
     297     || imp == (IMP)rb_vm_removed_imp \ 
     298     || imp == (IMP)rb_f_notimplement ) 
    298299void rb_vm_define_attr(Class klass, const char *name, bool read, bool write); 
    299300void rb_vm_undef_method(Class klass, ID name, bool must_exist); 
    300301void rb_vm_remove_method(Class klass, ID name);