summaryrefslogtreecommitdiff
path: root/test/test_open3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_open3.rb')
-rw-r--r--test/test_open3.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_open3.rb b/test/test_open3.rb
index d891eed..8f355cc 100644
--- a/test/test_open3.rb
+++ b/test/test_open3.rb
@@ -214,6 +214,15 @@ class TestOpen3 < Test::Unit::TestCase
}
end
+ def test_pipeline_start_noblock
+ ts = Open3.pipeline_start([RUBY, '-e', ''])
+ assert_kind_of(Array, ts)
+ assert_equal(1, ts.length)
+ ts.each {|t| assert_kind_of(Thread, t) }
+ t = ts[0]
+ assert(t.value.success?)
+ end
+
def test_pipeline
command = [RUBY, '-e', 's=STDIN.read; print s[1..-1]; exit s[0] == ?t']
str = 'ttftff'