mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use the message given to TestRubyOptions#assert_segv
This commit is contained in:
parent
c59f66b61a
commit
85e61eac85
Notes:
git
2025-06-16 11:45:04 +00:00
1 changed files with 5 additions and 1 deletions
|
@ -847,7 +847,11 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
args.unshift(env)
|
||||
|
||||
test_stdin = ""
|
||||
tests = [//, list] unless block
|
||||
if !block
|
||||
tests = [//, list, message]
|
||||
elsif message
|
||||
tests = [[], [], message]
|
||||
end
|
||||
|
||||
assert_in_out_err(args, test_stdin, *tests, encoding: "ASCII-8BIT",
|
||||
**SEGVTest::ExecOptions, **opt, &block)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue