jarib/childprocess — Issue #19: Failing duplex test under JRuby 1.6.5
Author: thedjinn
Created: 2011-12-26 13:14:11+00:00
State: open

When running the specs under JRuby 1.6.5 I get the following failure:

~~~
1) ChildProcess can write to stdin if duplex = true
Failure/Error: out.read.should == "hello world"
expected: "hello world"
got: "" (using ==)
# ./spec/childprocess_spec.rb:162:in `(root)'
~~~

My environment:

~~~
$ ruby -v
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
~~~

I did some digging and found out that the `STDIN.read` in the test returns an empty string instead of any data that was sent to standard input.