# File test/test_multi_process.rb, line 30 def test_pipe if (pid = fork) then @s2.close @s1.write('HALO S2') assert_equal('HALO S1', @s1.read(7)) else @s1.close assert_equal('HALO S2', @s2.read(7)) @s2.write('HALO S1') exit!(0) end assert_equal(0, Process.waitpid2(pid)[1].exitstatus) end