blob: 57d5fd928fede4456dd99f1e2560a01986d78eb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#
# This test file concludes tests which point out known bugs.
# So all tests will cause failure.
#
assert_equal 'ok', %q{
begin
r, w = IO.pipe
w.close
# assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } }
20000.times { r.ungetc "a" }
rescue IOError
:ok
ensure
r.close
end
}, 'rename test/ruby/test_io.rb#_test_ungetc if fixed'
assert_equal 'ok', %q{
class C
undef display
begin
remove_method :display
rescue NameError
end
end
:ok
}, '[ruby-dev:31816]'
assert_equal 'ok', %q{
class B
def m() :fail end
end
class C < B
undef m
begin
remove_method :m
rescue NameError
end
end
begin
C.new.m
rescue NameError
:ok
end
}, '[ruby-dev:31817]'
assert_equal 'ok', %q{
Process.setrlimit(Process::RLIMIT_STACK, 1024*1024)
class C
attr "a" * (2*1024*1024)
end
:ok
}, '[ruby-dev:31818]'
|