summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 21:15:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 21:15:56 +0900
commit62e66b8e180e17475a79fbdbdc36a33e488e4fe9 (patch)
tree2133c33c700f7f18b4ab953b12de32891293da7b
parentb89f6ac843d9abbe8488bd329e0ff0cccf5caaa3 (diff)
Allow dtrace without pty, i.e., with miniruby
-rw-r--r--test/dtrace/helper.rb3
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