mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
with 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10bf738bee
commit
95e42dc152
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Jun 11 19:04:15 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
|
||||||
|
with 1.8.
|
||||||
|
|
||||||
Sat Jun 11 18:05:57 2011 WATANABE Hirofumi <eban@ruby-lang.org>
|
Sat Jun 11 18:05:57 2011 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* bootstraptest/runner.rb: should initilize $stress to avoid warnings.
|
* bootstraptest/runner.rb: should initilize $stress to avoid warnings.
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ module Test
|
||||||
end
|
end
|
||||||
files.map! {|f|
|
files.map! {|f|
|
||||||
f = f.tr(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
|
f = f.tr(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
|
||||||
[*(paths if /\A\.\.?(?:\z|\/)/ !~ f), nil].uniq.any? do |prefix|
|
((paths if /\A\.\.?(?:\z|\/)/ !~ f) | [nil]).any? do |prefix|
|
||||||
if prefix
|
if prefix
|
||||||
path = f.empty? ? prefix : "#{prefix}/#{f}"
|
path = f.empty? ? prefix : "#{prefix}/#{f}"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue