mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_rubyoptions.rb (test_segv_test): VC runtime adds some messages
when SEGV occurs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d863f7af0c
commit
ff5c6d343c
1 changed files with 12 additions and 2 deletions
|
@ -365,6 +365,13 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_segv_test
|
def test_segv_test
|
||||||
|
if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||||
|
opts = {}
|
||||||
|
additional = '[\s\w\.\']*'
|
||||||
|
else
|
||||||
|
opts[:rlimit_core] = 0
|
||||||
|
additional = ""
|
||||||
|
end
|
||||||
assert_in_out_err(["-e", "Process.kill :SEGV, $$"], "", [],
|
assert_in_out_err(["-e", "Process.kill :SEGV, $$"], "", [],
|
||||||
%r(\A
|
%r(\A
|
||||||
-e:(?:1:)?\s\[BUG\]\sSegmentation\sfault\n
|
-e:(?:1:)?\s\[BUG\]\sSegmentation\sfault\n
|
||||||
|
@ -385,9 +392,12 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
\[NOTE\]\n
|
\[NOTE\]\n
|
||||||
You\smay\shave\sencountered\sa\sbug\sin\sthe\sRuby\sinterpreter\sor\sextension\slibraries.\n
|
You\smay\shave\sencountered\sa\sbug\sin\sthe\sRuby\sinterpreter\sor\sextension\slibraries.\n
|
||||||
Bug\sreports\sare\swelcome.\n
|
Bug\sreports\sare\swelcome.\n
|
||||||
For\sdetails:\shttp:\/\/www.ruby-lang.org/bugreport.html\n\n\z
|
For\sdetails:\shttp:\/\/www.ruby-lang.org/bugreport.html\n
|
||||||
|
\n
|
||||||
|
(?:#{additional})
|
||||||
|
\z
|
||||||
)x,
|
)x,
|
||||||
nil,
|
nil,
|
||||||
:rlimit_core=>0)
|
opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue