ruby.launch.inproc causes test/unit to hang when called from within Rake
------------------------------------------------------------------------
Key: JRUBY-1504
URL: http://jira.codehaus.org/browse/JRUBY-1504
Project: JRuby
Issue Type: Bug
Reporter: Evan Weaver
Assignee: Thomas E Enebo
The reusable jvm for system() calls (ruby.launch.inproc) makes the jmongrel
test/unit tests hang when called from within Rake:
chloe:~/Desktop/projects/mongrel/trunk eweaver$ jruby -S rake
(in /Users/eweaver/Desktop/projects/mongrel/trunk)
/opt/local/jruby/bin/jruby -w -Ilib:ext:bin:test -e 'require
"test/test_cgi_wrapper.rb"; require "test/test_command.rb"; require
"test/test_conditional.rb"; require "test/test_configurator.rb"; require
"test/test_debug.rb"; require "test/test_handlers.rb"; require
"test/test_http11.rb"; require "test/test_redirect_handler.rb"; require
"test/test_request_progress.rb"; require "test/test_response.rb"; require
"test/test_stats.rb"; require "test/test_uriclassifier.rb"; require
"test/test_ws.rb"; '
Loaded suite -e
Started
.^C^C^C^C^C^C^C^C^C^Z
[1]+ Stopped jruby -S rake
chloe:~/Desktop/projects/mongrel/trunk eweaver$ kill %1
[1]+ Stopped jruby -S rake
chloe:~/Desktop/projects/mongrel/trunk eweaver$
chloe:~/Desktop/projects/mongrel/trunk eweaver$ rake aborted!
Command failed with status (1): [/opt/local/jruby/bin/jruby -w -Ilib:ext:bi...]
(See full trace by running task with --trace)
[1]+ Exit 1 jruby -S rake
When it's disabled, they run ok:
chloe:~/Desktop/projects/mongrel/trunk eweaver$ jruby
-J-Djruby.launch.inproc=false -S rake(in
/Users/eweaver/Desktop/projects/mongrel/trunk)/opt/local/jruby/bin/jruby -w
-Ilib:ext:bin:test -e 'require "test/test_cgi_wrapper.rb"; require
"test/test_command.rb"; require "test/test_conditional.rb"; require
"test/test_configurator.rb"; require "test/test_debug.rb"; require
"test/test_handlers.rb"; require "test/test_http11.rb"; require
"test/test_redirect_handler.rb"; require "test/test_request_progress.rb";
require "test/test_response.rb"; require "test/test_stats.rb"; require
"test/test_uriclassifier.rb"; require "test/test_ws.rb"; '
Loaded suite -e
Started
...............E........................................
Finished in 42.153 seconds.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email