1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use __dir__

This commit is contained in:
Nobuyoshi Nakada 2021-10-15 01:23:36 +09:00
parent 46291a29fb
commit 679054208e
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -329,7 +329,7 @@ module Test
def self.launch(ruby,args=[])
scale = EnvUtil.timeout_scale
io = IO.popen([*ruby, "-W1",
"#{File.dirname(__FILE__)}/unit/parallel.rb",
"#{__dir__}/unit/parallel.rb",
*("--timeout-scale=#{scale}" if scale),
*args], "rb+")
new(io, io.pid, :waiting)