diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-06-30 21:15:56 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-06-30 21:15:56 +0900 |
commit | 62e66b8e180e17475a79fbdbdc36a33e488e4fe9 (patch) | |
tree | 2133c33c700f7f18b4ab953b12de32891293da7b /test | |
parent | b89f6ac843d9abbe8488bd329e0ff0cccf5caaa3 (diff) |
Allow dtrace without pty, i.e., with miniruby
Diffstat (limited to 'test')
-rw-r--r-- | test/dtrace/helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/dtrace/helper.rb b/test/dtrace/helper.rb index 2243d15c95..7683a6a887 100644 --- a/test/dtrace/helper.rb +++ b/test/dtrace/helper.rb @@ -30,7 +30,6 @@ if ok begin require 'pty' rescue LoadError - ok = false end end end @@ -78,7 +77,7 @@ module DTrace Process.wait(pid) end lines - end + end if defined?(PTY) end # only handles simple cases, use a Hash for d_program |