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

mjit.c: hide path search error behind verbose()

Before r63744, we let execvp(3) fail instead and it was quiet.
The verbosity was causing test_search to fail in
test/ruby/test_rubyoptions.rb when PATH is set to /tmp.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-06-25 07:57:39 +00:00
parent 33d0be1500
commit e85693fc77

2
mjit.c
View file

@ -367,7 +367,7 @@ start_process(const char *path, char *const *argv)
int dev_null;
if (!abspath) {
fprintf(stderr, "failed to find `%s' in PATH\n", path);
verbose(1, "MJIT: failed to find `%s' in PATH\n", path);
return -1;
}
dev_null = rb_cloexec_open(ruby_null_device, O_WRONLY, 0);