summaryrefslogtreecommitdiff
path: root/test/ruby/test_stack.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-09-28 08:28:10 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2020-09-28 09:45:04 -0700
commit0767d387ecb9e9dd7ebd34cad46d86cfce13b9f5 (patch)
tree6914c45373a352d5c59cdd8ff5a829c4f6324be9 /test/ruby/test_stack.rb
parent346301e2329c46362a6089311d0a64b8734b35ec (diff)
Pass ASAN options to child environments
I want to work with ASAN, but some child environments are not inheriting the ASAN options I'm using. This commit passes them to child environments if specified
Diffstat (limited to 'test/ruby/test_stack.rb')
-rw-r--r--test/ruby/test_stack.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_stack.rb b/test/ruby/test_stack.rb
index 8a78848322..763aeb6bc2 100644
--- a/test/ruby/test_stack.rb
+++ b/test/ruby/test_stack.rb
@@ -18,6 +18,7 @@ class TestStack < Test::Unit::TestCase
env = {}
env['RUBY_FIBER_VM_STACK_SIZE'] = vm_stack_size.to_s if vm_stack_size
env['RUBY_FIBER_MACHINE_STACK_SIZE'] = machine_stack_size.to_s if machine_stack_size
+ env['ASAN_OPTIONS'] = ENV['ASAN_OPTIONS'] if ENV['ASAN_OPTIONS']
stdout, stderr, status = EnvUtil.invoke_ruby([env, '-e', script], '', true, true, timeout: 30)
assert(!status.signaled?, FailDesc[status, nil, stderr])