summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-12-01 01:25:54 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2019-12-01 01:25:55 -0800
commit3e2753ad2e0b643f5c731fb162f5805d82435032 (patch)
treeaa6aa1d356a823102c8a45f1576d48be8b53d37c /test
parenta19d625e667024fe27dcee04dd748e914bc24762 (diff)
Use build dir for testing --jit-debug
to fix failure like https://github.com/ruby/ruby/runs/327745536
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_rubyoptions.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index abdacc508e..a7f0de58fa 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -1045,7 +1045,8 @@ class TestRubyOptions < Test::Unit::TestCase
def test_jit_debug
if JITSupport.supported?
- assert_in_out_err(["--jit-debug=-O0 -O1", "--jit-verbose=2", ""], "", [], /-O0 -O1/)
+ env = { 'MJIT_SEARCH_BUILD_DIR' => 'true' }
+ assert_in_out_err([env, "--jit-debug=-O0 -O1", "--jit-verbose=2", "" ], "", [], /-O0 -O1/)
end
end