diff options
author | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-02 05:29:52 +0000 |
---|---|---|
committer | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-02 05:29:52 +0000 |
commit | 31fcc22365059bdefede5ce343262436214ba2fa (patch) | |
tree | 5dd2316feb04012a44f0ae4c0462675063702c4f | |
parent | a991a12cbc63c803811673fa3b77c035fdf78558 (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/test/unit/parallel.rb | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Wed Mar 2 14:24:04 2011 Shota Fukumori <[email protected]> + + * lib/test/unit/parallel.rb: Fix name from `inclement_io` to + `increment_io`. + Wed Mar 2 14:06:01 2011 NARUSE, Yui <[email protected]> * string.c (rb_str_slice_bang): move treatments which is only needed diff --git a/lib/test/unit/parallel.rb b/lib/test/unit/parallel.rb index 18035a4d55..90e418bf5f 100644 --- a/lib/test/unit/parallel.rb +++ b/lib/test/unit/parallel.rb @@ -12,13 +12,13 @@ module Test undef _run_suites undef run - def inclement_io orig + def increment_io(orig) *rest, io = 32.times.inject([orig.dup]){|ios, | ios << ios.last.dup } rest.each(&:close) io end - def _run_suites suites, type + def _run_suites(suites, type) suites.map do |suite| result = _run_suite(suite, type) end @@ -77,8 +77,8 @@ module Test Signal.trap(:INT,"IGNORE") @old_loadpath = [] begin - @stdout = inclement_io(STDOUT) - @stdin = inclement_io(STDIN) + @stdout = increment_io(STDOUT) + @stdin = increment_io(STDIN) @stdout.sync = true @stdout.puts "ready" while buf = @stdin.gets |