aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pty.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-24 07:37:26 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-24 07:37:26 +0000
commit08d2e528aa35ea30087f7e8990e5028f4c2693ab (patch)
treefe103bc0bceabac4d09c90a4f8855cc4d6f90ca5 /test/test_pty.rb
parentc49a1d11b99041e5ae2c2ff26cdf589af1a0f280 (diff)
downloadruby-08d2e528aa35ea30087f7e8990e5028f4c2693ab.tar.gz
* 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.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