jewel / clearskies

Open source btsync clone
1.41k stars 50 forks source link

No fork in JRuby #8

Closed onionjake closed 10 years ago

onionjake commented 11 years ago

The following test cases fail because there is no fork in Jruby.

1) Error: test_0001_can_connect_and_send_data(GnuTLS::Session::acts as a client): NotImplementedError: fork is not available on this platform org/jruby/RubyKernel.java:1855:in fork' clearskies/test/gnutls.rb:16:inrun_test' org/jruby/RubyBasicObject.java:1735:in `instance_eval'

2) Error: test_0002_won_t_connect_with_wrong_password(GnuTLS::Session::acts as a client): NotImplementedError: fork is not available on this platform org/jruby/RubyKernel.java:1855:in fork' clearskies/test/gnutls.rb:16:inrun_test' org/jruby/RubyBasicObject.java:1735:in `instance_eval'

3) Error: test_0001_can_connect_and_send_data(GnuTLS::Session::acts as a server): NotImplementedError: fork is not available on this platform org/jruby/RubyKernel.java:1855:in fork' clearskies/test/gnutls.rb:16:inrun_test' org/jruby/RubyBasicObject.java:1735:in `instance_eval'

4) Error: test_0002_won_t_connect_with_wrong_password(GnuTLS::Session::acts as a server): NotImplementedError: fork is not available on this platform org/jruby/RubyKernel.java:1855:in fork' clearskies/test/gnutls.rb:16:inrun_test' org/jruby/RubyBasicObject.java:1735:in `instance_eval'

jewel commented 10 years ago

At one point we were using threads. We can spawn a separate process for the test servers, or we can fall back to threads. For now we should just skip those tests.

onionjake commented 10 years ago

Closing as we do not really advertise that we work on JRuby.