From 08d2e528aa35ea30087f7e8990e5028f4c2693ab Mon Sep 17 00:00:00 2001 From: shyouhei Date: Fri, 24 Sep 2010 07:37:26 +0000 Subject: [PATCH] * test/test_pty.rb (TestPTY::test_getpty_nonexistent): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_pty.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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