diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-10-05 11:15:09 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-10-05 12:00:47 -0400 |
| commit | 704677257ecb01c7ee10aa0dfc55ca1d4fc4636d (patch) | |
| tree | e0704a175062630a898b548929efd24eeb498829 | |
| parent | ab49e8a0f0d61ef38b4006d2e8f3976550ba23f8 (diff) | |
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.
| -rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 2b7cf1c899..4ee6633c2b 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -858,7 +858,7 @@ class TestRubyOptions < Test::Unit::TestCase env['RUBY_CRASH_REPORT'] ||= nil # default to not passing down parent setting # ASAN registers a segv handler which prints out "AddressSanitizer: DEADLYSIGNAL" when # catching sigsegv; we don't expect that output, so suppress it. - env.update({'ASAN_OPTIONS' => 'handle_segv=0'}) + env.update({'ASAN_OPTIONS' => 'handle_segv=0', 'LSAN_OPTIONS' => 'handle_segv=0'}) args.unshift(env) test_stdin = "" |
