test_interactive_child_process w/ patch ---------------------------------------
Key: JRUBY-5978 URL: https://jira.codehaus.org/browse/JRUBY-5978 Project: JRuby Issue Type: Bug Components: Miscellaneous Affects Versions: JRuby 1.7 Environment: Mac OSX Snow Leopard Reporter: Chris White Fix For: JRuby 1.7 Attachments: 0002-Fixing-the-stdin-interaction-test-case.patch The current test for ensuring that STDIN interaction through popen is failing with the following error: test_interactive_child_process(Testlibrary_file_name): Errno::EBADF: Bad file descriptor - Bad file descriptor org/jruby/RubyIO.java:1971:in `close' org/jruby/RubyIO.java:3661:in `popen' test.rb:7:in `test_interactive_child_process' org/jruby/RubyBasicObject.java:1708:in `__send__' This appears to be occurring due to the fact that the while loop within the do block exhausts the stream, meaning that the IO.popen block no longer has a valid handle to yield. This patch attempts to address that by making the logic work in a more procedural fashion. Confirmed the test passes as expected. -- This message is automatically generated by JIRA. 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