From f9a2440866a2df05fcbacf31c4f4e5e18b996e15 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 9 Jul 2019 21:04:07 +0900 Subject: [PATCH] Restore support library for only test files. --- {tool => test}/lib/jit_support.rb | 0 test/ruby/test_jit.rb | 2 +- test/ruby/test_rubyoptions.rb | 2 +- test/ruby/test_rubyvm_mjit.rb | 2 +- test/test_open3.rb | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename {tool => test}/lib/jit_support.rb (100%) diff --git a/tool/lib/jit_support.rb b/test/lib/jit_support.rb similarity index 100% rename from tool/lib/jit_support.rb rename to test/lib/jit_support.rb diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 08494cbbbb..0cfc980aac 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true require 'test/unit' require 'tmpdir' -require_relative '../../tool/lib/jit_support' +require_relative '../lib/jit_support' return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no' diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 0d22ba21ef..c92d0e8212 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -4,7 +4,7 @@ require 'test/unit' require 'timeout' require 'tmpdir' require 'tempfile' -require_relative '../../tool/lib/jit_support' +require_relative '../lib/jit_support' class TestRubyOptions < Test::Unit::TestCase NO_JIT_DESCRIPTION = diff --git a/test/ruby/test_rubyvm_mjit.rb b/test/ruby/test_rubyvm_mjit.rb index ae55d58622..12772320f5 100644 --- a/test/ruby/test_rubyvm_mjit.rb +++ b/test/ruby/test_rubyvm_mjit.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true require 'test/unit' -require_relative '../../tool/lib/jit_support' +require_relative '../lib/jit_support' return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no' diff --git a/test/test_open3.rb b/test/test_open3.rb index c3a4e0a2bc..24bd08e597 100644 --- a/test/test_open3.rb +++ b/test/test_open3.rb @@ -2,7 +2,7 @@ require 'test/unit' require 'open3' -require_relative '../tool/lib/jit_support' +require_relative 'lib/jit_support' class TestOpen3 < Test::Unit::TestCase RUBY = EnvUtil.rubybin