From e85693fc77cf2e854568dda5a56d0d2293bae665 Mon Sep 17 00:00:00 2001 From: normal Date: Mon, 25 Jun 2018 07:57:39 +0000 Subject: 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 --- mjit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjit.c b/mjit.c index f1e442f4f5..07e9328aff 100644 --- a/mjit.c +++ b/mjit.c @@ -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); -- cgit v1.2.3