2007-08-29 07:48:19 +04:00
|
|
|
#
|
|
|
|
# This test file concludes tests which point out known bugs.
|
|
|
|
# So all tests will cause failure.
|
|
|
|
#
|
2007-09-27 02:40:44 +04:00
|
|
|
|
|
|
|
assert_finish 1, %q{
|
|
|
|
r, w = IO.pipe
|
2007-09-27 03:24:08 +04:00
|
|
|
t1 = Thread.new { r.sysread(1) }
|
|
|
|
t2 = Thread.new { r.sysread(1) }
|
2007-09-27 02:40:44 +04:00
|
|
|
sleep 0.1
|
|
|
|
w.write "a"
|
|
|
|
sleep 0.1
|
|
|
|
w.write "a"
|
|
|
|
}, '[ruby-dev:31866]'
|
2007-09-27 13:51:24 +04:00
|
|
|
|
2007-09-29 07:11:24 +04:00
|
|
|
assert_equal 'ok', %q{
|
|
|
|
class Module
|
|
|
|
def define_method2(name, &block)
|
|
|
|
define_method(name, &block)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class C
|
|
|
|
define_method2(:m) {|x, y| :fail }
|
|
|
|
end
|
|
|
|
begin
|
|
|
|
C.new.m([1,2])
|
|
|
|
rescue ArgumentError
|
|
|
|
:ok
|
|
|
|
end
|
|
|
|
}
|
2007-09-29 07:32:57 +04:00
|
|
|
|
|
|
|
assert_normal_exit %q{
|
2007-09-29 08:52:43 +04:00
|
|
|
Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| })
|
2007-09-29 07:32:57 +04:00
|
|
|
}
|