aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_trace.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-10 06:38:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-10 06:38:30 +0000
commitfda9e6c701ae981171d454799faaaca139694603 (patch)
tree465c7f5e72a3f9107c1ff3282f4c67bedc8a247b /test/ruby/test_trace.rb
parentb83abc52e1d2fb022244b3f6970b9133d8ae57fe (diff)
downloadruby-fda9e6c701ae981171d454799faaaca139694603.tar.gz
test_exception.rb: test_machine_stackoverflow_by_trace
* test/ruby/test_exception.rb (test_machine_stackoverflow_by_trace): move from test_trace.rb and rename, to be excluded by the default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_trace.rb')
-rw-r--r--test/ruby/test_trace.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/ruby/test_trace.rb b/test/ruby/test_trace.rb
index 434da70107..77be94e9be 100644
--- a/test/ruby/test_trace.rb
+++ b/test/ruby/test_trace.rb
@@ -59,28 +59,4 @@ class TestTrace < Test::Unit::TestCase
a.any? {true}
}.value, bug2722)
end
-
- def test_trace_stackoverflow
- assert_normal_exit("#{<<-"begin;"}\n#{<<~"end;"}", timeout: 60)
- begin;
- require 'timeout'
- require 'tracer'
- class HogeError < StandardError
- def to_s
- message.upcase # disable tailcall optimization
- end
- end
- Tracer.stdout = open(IO::NULL, "w")
- begin
- Timeout.timeout(5) do
- Tracer.on
- HogeError.new.to_s
- end
- rescue Timeout::Error
- # ok. there are no SEGV or critical error
- rescue SystemStackError => e
- # ok.
- end
- end;
- end
end