diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-24 07:37:26 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-24 07:37:26 +0000 |
commit | 08d2e528aa35ea30087f7e8990e5028f4c2693ab (patch) | |
tree | fe103bc0bceabac4d09c90a4f8855cc4d6f90ca5 /test/test_pty.rb | |
parent | c49a1d11b99041e5ae2c2ff26cdf589af1a0f280 (diff) |
* 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
Diffstat (limited to 'test/test_pty.rb')
-rw-r--r-- | test/test_pty.rb | 8 |
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 |