diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-06-16 19:16:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-06-16 19:16:28 +0900 |
commit | 85e61eac8579f09d76cd9a24f9c6fc23db80664c (patch) | |
tree | 2caae23369c96f596d3a172e517b0d6bdd996299 | |
parent | c59f66b61ab5134110a8283a0ac44580e95d9120 (diff) |
Use the message given to `TestRubyOptions#assert_segv`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13624
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 3f79c2afd7..e2c3a687c4 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -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) |