diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-06 21:54:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-09 19:00:56 +0900 |
commit | 1150a54afe98171657869bd2eafd82fda59893b1 (patch) | |
tree | 18d602f65d7ae7558995a322942b3fea5867f28b /tool/test-bundled-gems.rb | |
parent | 949c3afb48d2afd02c2bfa569e29f6a3a48c1607 (diff) | |
download | ruby-1150a54afe98171657869bd2eafd82fda59893b1.tar.gz |
Use `File::PATH_SEPARATOR` for the portability
Diffstat (limited to 'tool/test-bundled-gems.rb')
-rw-r--r-- | tool/test-bundled-gems.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb index b70576103a..0c6fafef12 100644 --- a/tool/test-bundled-gems.rb +++ b/tool/test-bundled-gems.rb @@ -25,7 +25,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| if gem == "typeprof" rbs_build_dir = 'ext/-test-/gems/rbs' raise "need to run rbs test suite before typeprof" unless File.readable?("#{rbs_build_dir}/rbs_extension.#{RbConfig::CONFIG['DLEXT']}") - ENV["RUBYLIB"] = ["#{gem_dir}/src/rbs/lib", ENV.fetch("RUBYLIB", nil)].compact.join(":") + ENV["RUBYLIB"] = ["#{gem_dir}/src/rbs/lib", ENV.fetch("RUBYLIB", nil)].compact.join(File::PATH_SEPARATOR) end if gem == "rbs" @@ -39,7 +39,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| extconf_path = File.expand_path('../../gems/src/rbs/ext/rbs_extension/extconf.rb', __FILE__) system("#{ruby} -C #{build_dir} #{extconf_path}") or raise system("cd #{build_dir} && make extout=../../../../.ext libdir=../../../..") or raise - ENV["RUBYLIB"] = [File.expand_path(dummy_rake_compiler_dir), File.expand_path(build_dir), ENV.fetch("RUBYLIB", nil)].compact.join(":") + ENV["RUBYLIB"] = [File.expand_path(dummy_rake_compiler_dir), File.expand_path(build_dir), ENV.fetch("RUBYLIB", nil)].compact.join(File::PATH_SEPARATOR) end if gem == "minitest" @@ -54,7 +54,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| extconf_path = File.expand_path('../../gems/src/debug/ext/debug/extconf.rb', __FILE__) system("#{ruby} -C #{build_dir} #{extconf_path}") or raise system("cd #{build_dir} && make extout=../../../../.ext libdir=../../../..") or raise - ENV["RUBYLIB"] = [File.expand_path(build_dir + "/.."), ENV.fetch("RUBYLIB", nil)].compact.join(":") + ENV["RUBYLIB"] = [File.expand_path(build_dir + "/.."), ENV.fetch("RUBYLIB", nil)].compact.join(File::PATH_SEPARATOR) end print "[command]" if github_actions |