зеркало из https://github.com/github/ruby.git
* lib/optparse.rb: suppress a warning.
* test/test_mutex_m.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2f8ddcd8cd
Коммит
e6f6033b16
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Aug 10 20:56:31 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* lib/optparse.rb: suppress a warning.
|
||||||
|
|
||||||
|
* test/test_mutex_m.rb: ditto.
|
||||||
|
|
||||||
Tue Aug 10 20:56:13 2010 Tadayoshi Funaba <tadf@dotrb.org>
|
Tue Aug 10 20:56:13 2010 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* lib/date/format.rb (Date::Format::Bag): use Struct.
|
* lib/date/format.rb (Date::Format::Bag): use Struct.
|
||||||
|
|
|
@ -1072,7 +1072,7 @@ class OptionParser
|
||||||
default_style = Switch::NoArgument
|
default_style = Switch::NoArgument
|
||||||
default_pattern = nil
|
default_pattern = nil
|
||||||
klass = nil
|
klass = nil
|
||||||
n, q, a = nil
|
q, a = nil
|
||||||
|
|
||||||
opts.each do |o|
|
opts.each do |o|
|
||||||
# argument class
|
# argument class
|
||||||
|
|
|
@ -5,6 +5,7 @@ require 'mutex_m'
|
||||||
class TestMutexM < Test::Unit::TestCase
|
class TestMutexM < Test::Unit::TestCase
|
||||||
def test_cv_wait
|
def test_cv_wait
|
||||||
o = Object.new
|
o = Object.new
|
||||||
|
o.instance_variable_set(:@foo, nil)
|
||||||
o.extend(Mutex_m)
|
o.extend(Mutex_m)
|
||||||
c = ConditionVariable.new
|
c = ConditionVariable.new
|
||||||
t = Thread.start {
|
t = Thread.start {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче