Skip to content

Commit 85e61ea

Browse files
committed
Use the message given to TestRubyOptions#assert_segv
1 parent c59f66b commit 85e61ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/ruby/test_rubyoptions.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,11 @@ def assert_segv(args, message=nil, list: SEGVTest::ExpectedStderrList, **opt, &b
847847
args.unshift(env)
848848

849849
test_stdin = ""
850-
tests = [//, list] unless block
850+
if !block
851+
tests = [//, list, message]
852+
elsif message
853+
tests = [[], [], message]
854+
end
851855

852856
assert_in_out_err(args, test_stdin, *tests, encoding: "ASCII-8BIT",
853857
**SEGVTest::ExecOptions, **opt, &block)

0 commit comments

Comments
 (0)