summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/test/unit/parallel.rb8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b4992cd534..05f70d8e5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* 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