# # This test file concludes tests which point out known bugs. # So all tests will cause failure. # assert_equal '0', %q{ GC.stress = true pid = fork {} Process.wait pid $?.to_i }, '[ruby-dev:32404]' assert_equal 'ok', %q{ class C define_method(:foo) do |arg, &block| if block then block.call else arg end end end C.new.foo("ng") {"ok"} }, '[ruby-talk:266422]' assert_equal 'ok', %q{ STDERR.reopen(STDOUT) class C define_method(:foo) do |&block| block.call if block end result = "ng" new.foo() {result = "ok"} result end } assert_normal_exit %q{ eval "while true; return; end rescue p $!" }, '[ruby-dev:31663]' assert_equal 'ok', %q{ 1.times{ eval("break") } :ok }, '[ruby-dev:32525]'