Sha256: e5e2433208cd626a77eb489836d5f2977e82eaf263da45195888c0a7e51a776c
Contents?: true
Size: 329 Bytes
Versions: 7
Compression:
Stored size: 329 Bytes
Contents
require 'test/unit' require 'io/nonblock' $-w = true require 'kgio' class TestPipePopen < Test::Unit::TestCase def test_popen io = Kgio::Pipe.popen("sleep 1 && echo HI") assert_equal Kgio::WaitReadable, io.kgio_tryread(2) sleep 1.5 assert_equal "HI\n", io.kgio_read(3) assert_nil io.kgio_read(5) end end
Version data entries
7 entries across 7 versions & 1 rubygems