[MacRuby] #1337: 3 tests in test_vm became failure after commited 'c1833dd1d2764711f3ea658d7e1108e62057dddb'.
MacRuby
ruby-noreply at macosforge.org
Wed Jun 22 06:17:09 PDT 2011
#1337: 3 tests in test_vm became failure after commited
'c1833dd1d2764711f3ea658d7e1108e62057dddb'.
------------------------------+---------------------------------------------
Reporter: kouji@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: MacRuby | Keywords: 0.11-blocker
------------------------------+---------------------------------------------
3 tests in test_vm became failure after commited below.
{{{
commit c1833dd1d2764711f3ea658d7e1108e62057dddb
Author: Laurent Sansonetti <lrz at chopine.be>
Date: Mon Jun 13 15:53:20 2011 -0700
some work on garbage collecting singleton classes - disabled for now
since it breaks rubyspec
}}}
3 tests are below.
{{{
# Test cloning
assert "B, [:CONST_M], [:ok]", %{
module M
CONST_M = 1
def ok; end
end
B = M.clone
puts B.to_s + ", " + B.constants.to_s + ", " +
B.instance_methods(false).to_s
}
Result: B, [], [:ok]
assert "B, [:CONST_A], [:ok]", %{
class A
CONST_A = 1
def ok; end
end
B = A.clone
puts B.to_s + ", " + B.constants.to_s + ", " +
B.instance_methods(false).to_s
}
Result: B, [], [:ok]
assert "B, [:CONST_C, :CONST_A], []", %{
class A
CONST_A = 1
def ok; end
end
class C < A
CONST_C = 1
end
B = C.clone
puts B.to_s + ", " + B.constants.to_s + ", " +
B.instance_methods(false).to_s
}
Result: B, [:CONST_A], []
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1337>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list