Skip to content

Commit 7046772

Browse files
committed
Also add LSAN_OPTIONS=handle_segv=0 in assert_segv
Just like ASAN, when running with LSAN, we also want to set handle_segv=0 in assert_segv to make sure that the tests pass.
1 parent ab49e8a commit 7046772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ruby/test_rubyoptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def assert_segv(args, message=nil, list: SEGVTest::ExpectedStderrList, **opt, &b
858858
env['RUBY_CRASH_REPORT'] ||= nil # default to not passing down parent setting
859859
# ASAN registers a segv handler which prints out "AddressSanitizer: DEADLYSIGNAL" when
860860
# catching sigsegv; we don't expect that output, so suppress it.
861-
env.update({'ASAN_OPTIONS' => 'handle_segv=0'})
861+
env.update({'ASAN_OPTIONS' => 'handle_segv=0', 'LSAN_OPTIONS' => 'handle_segv=0'})
862862
args.unshift(env)
863863

864864
test_stdin = ""

0 commit comments

Comments
 (0)