* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests

under base directory if no argument given.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-12 00:30:13 +00:00
parent 7dea05dc6f
commit 58ed5a45ff
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sat Feb 12 09:30:00 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
under base directory if no argument given.
Sat Feb 12 08:03:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_settracefunc.rb (TestSetTraceFunc): ensure to use

View File

@ -100,6 +100,7 @@ module Test
if reject = options.delete(:reject)
reject_pat = Regexp.union(reject.map {|r| /#{r}/ })
end
files << "" if files.empty?
files.map! {|f|
f = f.tr(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
[*(paths if /\A\.\.?(?:\z|\/)/ !~ f), nil].uniq.any? do |prefix|