repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* transcode_data.h (rb_transcoder): add resetstate_func field for
[ruby-svn.git]
/
test
/
ruby
/
test_pipe.rb
blob
34f231ad8c9e0e46035ed35ff53f15ae78fb3255
1
require 'test/unit'
2
require_relative 'ut_eof'
3
4
class TestPipe < Test::Unit::TestCase
5
include TestEOF
6
def open_file(content)
7
r, w = IO.pipe
8
w << content
9
w.close
10
begin
11
yield r
12
ensure
13
r.close
14
end
15
end
16
end