Interactive subprocess via popen blocks reads while waiting for input on IBM JVM
--------------------------------------------------------------------------------
Key: JRUBY-3040
URL: http://jira.codehaus.org/browse/JRUBY-3040
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Reporter: Charles Oliver Nutter
This test in test_launching_by_shelll_script.rb appears to freeze because the
read from popen blocks when the subprocess is waiting on input (at the "read
value" steps in the executed script):
{noformat}
def test_interactive_child_process
lines = []
IO.popen(%q{sh -c 'echo enter something:; read value; echo got: $value;
read value'}, 'r+') do |handle|
begin
while (line = handle.readline)
lines << line
handle.puts('foobar')
end
rescue EOFError
lines << "STDIN closed"
end
end
assert_equal(["enter something:\n", "got: foobar\n", "STDIN closed"],
lines)
end
{noformat}
For now I have disabled this test when running under IBM's JVM so we can set up
a CI build for the rest of the system.
--
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