summaryrefslogtreecommitdiff
path: root/test/lib/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-26 14:36:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-26 14:36:40 +0000
commit42c7b5f09b3c661181215cf1cf9b918c3de2bcfb (patch)
tree02f28240067ce60aea52a9dc725aa90d10a8bce7 /test/lib/test
parent76e37aa6364fa7613b9b517b71da9bb13bf294a8 (diff)
test/unit.rb: reduce error messages
* test/lib/test/unit.rb (non_options): reduce same error messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/test')
-rw-r--r--test/lib/test/unit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index dbdba6e..12e4338 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -245,6 +245,7 @@ module Test
module RequireFiles # :nodoc: all
def non_options(files, options)
return false if !super
+ errors = {}
result = false
files.each {|f|
d = File.dirname(path = File.realpath(f))
@@ -255,6 +256,8 @@ module Test
require path unless options[:parallel]
result = true
rescue LoadError
+ next if errors[$!.message]
+ errors[$!.message] = true
puts "#{f}: #{$!}"
end
}