mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit/parallel.rb: Fix name from inclement_io
to
`increment_io`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a991a12cbc
commit
31fcc22365
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Mar 2 14:24:04 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
|
* lib/test/unit/parallel.rb: Fix name from `inclement_io` to
|
||||||
|
`increment_io`.
|
||||||
|
|
||||||
Wed Mar 2 14:06:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
Wed Mar 2 14:06:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (rb_str_slice_bang): move treatments which is only needed
|
* string.c (rb_str_slice_bang): move treatments which is only needed
|
||||||
|
|
|
@ -12,13 +12,13 @@ module Test
|
||||||
undef _run_suites
|
undef _run_suites
|
||||||
undef run
|
undef run
|
||||||
|
|
||||||
def inclement_io orig
|
def increment_io(orig)
|
||||||
*rest, io = 32.times.inject([orig.dup]){|ios, | ios << ios.last.dup }
|
*rest, io = 32.times.inject([orig.dup]){|ios, | ios << ios.last.dup }
|
||||||
rest.each(&:close)
|
rest.each(&:close)
|
||||||
io
|
io
|
||||||
end
|
end
|
||||||
|
|
||||||
def _run_suites suites, type
|
def _run_suites(suites, type)
|
||||||
suites.map do |suite|
|
suites.map do |suite|
|
||||||
result = _run_suite(suite, type)
|
result = _run_suite(suite, type)
|
||||||
end
|
end
|
||||||
|
@ -77,8 +77,8 @@ module Test
|
||||||
Signal.trap(:INT,"IGNORE")
|
Signal.trap(:INT,"IGNORE")
|
||||||
@old_loadpath = []
|
@old_loadpath = []
|
||||||
begin
|
begin
|
||||||
@stdout = inclement_io(STDOUT)
|
@stdout = increment_io(STDOUT)
|
||||||
@stdin = inclement_io(STDIN)
|
@stdin = increment_io(STDIN)
|
||||||
@stdout.sync = true
|
@stdout.sync = true
|
||||||
@stdout.puts "ready"
|
@stdout.puts "ready"
|
||||||
while buf = @stdin.gets
|
while buf = @stdin.gets
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue