summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-25 18:02:01 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-25 18:02:01 +0000
commit13b5b22ae63cb35adc7e73f8f3d248a6ffd46ad1 (patch)
tree06c31626bec772304b5435fc49f4fbf2c84eb3a6 /bootstraptest/test_knownbug.rb
parent42dcda08aef365e166b8784e0349a28896a871e6 (diff)
* compile.c, compile.h: fix stack pointer issues.
calculate correct stack depth at compile time. * insns.def (emptstack): remove it and add a new insn "adjuststack". * bootstraptest/test_knownbug.rb: move/remove fixed test. * bootstraptest/test_syntax.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb64
1 files changed, 18 insertions, 46 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 69678e8..82944c7 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -3,73 +3,45 @@
# So all tests will cause failure.
#
-# test is not written...
-flunk '[ruby-dev:31819] rb_clear_cache_by_class'
-flunk '[ruby-dev:31820] valgrind set_trace_func'
-flunk '[ruby-dev:32746] Invalid read of size 1'
-
-assert_equal 'ok', %q{
- class X < RuntimeError;end
- x = [X]
- begin
- raise X
- rescue *x
- :ok
- end
-}, '[ruby-core:14537]'
-
-
-assert_equal 'ok', %q{
- 1.times do
- [
- 1, 2, 3, 4, 5, 6, 7, 8,
- begin
- false ? next : p
- break while true
- end
- ]
- end
- :ok
-}, '[ruby-dev:32882]'
-
-
assert_equal 'ok', %q{
class C
define_method(:foo) {
if block_given?
- :ng
- else
:ok
+ else
+ :ng
end
}
end
- C.new.foo
+ C.new.foo {}
}, '[ruby-core:14813]'
assert_equal 'ok', %q{
class C
define_method(:foo) {
if block_given?
- :ok
- else
:ng
+ else
+ :ok
end
}
end
- C.new.foo {}
+ C.new.foo
}, '[ruby-core:14813]'
-assert_equal 'true', %{
- t = Thread.new { loop {} }
+# test is not written...
+flunk '[ruby-dev:31819] rb_clear_cache_by_class'
+flunk '[ruby-dev:31820] valgrind set_trace_func'
+flunk '[ruby-dev:32746] Invalid read of size 1'
+
+assert_equal 'ok', %q{
+ class X < RuntimeError;end
+ x = [X]
begin
- pid = fork {
- exit t.status != "run"
- }
- Process.wait pid
- $?.success?
- rescue NotImplementedError
- true
+ raise X
+ rescue *x
+ :ok
end
-}
+}, '[ruby-core:14537]'
assert_valid_syntax('1.times {|i|print (42),1;}', '[ruby-list:44479]')