[前][次][番号順一覧][スレッド一覧]

ruby-changes:51538

From: normal <ko1@a...>
Date: Mon, 25 Jun 2018 16:57:44 +0900 (JST)
Subject: [ruby-changes:51538] normal:r63748 (trunk): mjit.c: hide path search error behind verbose()

normal	2018-06-25 16:57:39 +0900 (Mon, 25 Jun 2018)

  New Revision: 63748

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63748

  Log:
    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.

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 63747)
+++ mjit.c	(revision 63748)
@@ -367,7 +367,7 @@ start_process(const char *path, char *co https://github.com/ruby/ruby/blob/trunk/mjit.c#L367
         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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]