Use the message given to TestRubyOptions#assert_segv

This commit is contained in:
Nobuyoshi Nakada 2025-06-16 19:16:28 +09:00
parent c59f66b61a
commit 85e61eac85
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
Notes: git 2025-06-16 11:45:04 +00:00

View file

@ -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)