aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_pty.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_pty.rb b/test/test_pty.rb
index 6da49a420f..fc8cd95c8b 100644
--- a/test/test_pty.rb
+++ b/test/test_pty.rb
@@ -154,7 +154,13 @@ class TestPTY < Test::Unit::TestCase
def test_getpty_nonexistent
bug3672 = '[ruby-dev:41965]'
Dir.mktmpdir do |tmpdir|
- assert_raise(Errno::ENOENT, bug3672) {PTY.getpty(File.join(tmpdir, "no-such-command"))}
+ assert_raise(Errno::ENOENT, bug3672) {
+ begin
+ PTY.getpty(File.join(tmpdir, "no-such-command"))
+ rescue RuntimeError
+ skip $!
+ end
+ }
end
end
end if defined? PTY