mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
c49a1d11b9
commit
08d2e528aa
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue