diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-06-16 19:20:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-06-16 19:20:48 +0900 |
commit | 260ac23a53e8db93087216d115aa4b054e9cf35b () | |
tree | ff812af08546f5508f74c4666dd668d53df2b245 | |
parent | f0371efbd87f72f140cbb6ea105a261ff1b23772 (diff) |
Use `success` option to check if the process failed
Notes: Merged: https://.com/ruby/ruby/pull/13624
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -870,13 +870,12 @@ class TestRubyOptions < Test::Unit::TestCase def test_segv_loaded_features bug7402 = '[ruby-core:49573]' - status = assert_segv(['-e', "END {#{SEGVTest::KILL_SELF}}", - '-e', 'class Bogus; def to_str; exit true; end; end', - '-e', '$".clear', - '-e', '$".unshift Bogus.new', - '-e', '(p $"; abort) unless $".size == 1', - ]) - assert_not_predicate(status, :success?, "segv but success #{bug7402}") end def test_segv_setproctitle |