[ruby/irb] Test should not depend on user's irbrc file specified by

ENV['IRBRC']
(https://github.com/ruby/irb/pull/717)

https://github.com/ruby/irb/commit/1d2d35dd33
This commit is contained in:
tomoya ishida 2023-09-18 06:25:46 +09:00 коммит произвёл git
Родитель 88262875fd
Коммит 8b4e54f979
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -113,6 +113,7 @@ module TestIRB
# Test should not depend on user's irbrc file # Test should not depend on user's irbrc file
@envs["HOME"] ||= tmp_dir @envs["HOME"] ||= tmp_dir
@envs["XDG_CONFIG_HOME"] ||= tmp_dir @envs["XDG_CONFIG_HOME"] ||= tmp_dir
@envs["IRBRC"] = nil unless @envs.key?("IRBRC")
PTY.spawn(@envs.merge("TERM" => "dumb"), *cmd) do |read, write, pid| PTY.spawn(@envs.merge("TERM" => "dumb"), *cmd) do |read, write, pid|
Timeout.timeout(TIMEOUT_SEC) do Timeout.timeout(TIMEOUT_SEC) do