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

ruby-changes:56300

From: Nobuyoshi <ko1@a...>
Date: Sun, 30 Jun 2019 21:48:52 +0900 (JST)
Subject: [ruby-changes:56300] Nobuyoshi Nakada: 62e66b8e18 (trunk): Allow dtrace without pty, i.e., with miniruby

https://git.ruby-lang.org/ruby.git/commit/?id=62e66b8e18

From 62e66b8e180e17475a79fbdbdc36a33e488e4fe9 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 30 Jun 2019 21:15:56 +0900
Subject: Allow dtrace without pty, i.e., with miniruby


diff --git a/test/dtrace/helper.rb b/test/dtrace/helper.rb
index 2243d15..7683a6a 100644
--- a/test/dtrace/helper.rb
+++ b/test/dtrace/helper.rb
@@ -30,7 +30,6 @@ if ok https://github.com/ruby/ruby/blob/trunk/test/dtrace/helper.rb#L30
     begin
       require 'pty'
     rescue LoadError
-      ok = false
     end
   end
 end
@@ -78,7 +77,7 @@ module DTrace https://github.com/ruby/ruby/blob/trunk/test/dtrace/helper.rb#L77
           Process.wait(pid)
         end
         lines
-      end
+      end if defined?(PTY)
     end
 
     # only handles simple cases, use a Hash for d_program
-- 
cgit v0.10.2


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

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