* 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:
parent
7dea05dc6f
commit
58ed5a45ff
@ -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
|
||||
|
@ -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|
|
||||
|
Loading…
x
Reference in New Issue
Block a user