We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
success
1 parent f0371ef commit 260ac23Copy full SHA for 260ac23
1 file changed
test/ruby/test_rubyoptions.rb
@@ -870,13 +870,12 @@ def test_segv_test
870
def test_segv_loaded_features
871
bug7402 = '[ruby-core:49573]'
872
873
- status = assert_segv(['-e', "END {#{SEGVTest::KILL_SELF}}",
874
- '-e', 'class Bogus; def to_str; exit true; end; end',
875
- '-e', '$".clear',
876
- '-e', '$".unshift Bogus.new',
877
- '-e', '(p $"; abort) unless $".size == 1',
878
- ])
879
- assert_not_predicate(status, :success?, "segv but success #{bug7402}")
+ 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',
+ ], success: false)
880
end
881
882
def test_segv_setproctitle
0 commit comments