Project

General

Profile

« Previous | Next » 

Revision 8a29419b

Added by sorah (Sorah Fukumori) over 2 years ago

[ruby/reline] test_dumb_terminal: "ruby" command is not always available

Fixes the same issue at https://github.com/ruby/ruby/pull/5417

ruby is not always available in certain build environments and
configure options (e.g. --program-suffix)

This patch tries to choose an appropriate command line for spawning a
fresh Ruby process, based on EnvUtil implementation in ruby/ruby's test
suite.

Plus when this library is directly mirrored into ruby/ruby, prefer EnvUtil
available there over the implementation in this library's test suite.

https://github.com/ruby/reline/commit/278327d2e9