mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_dir.rb (test_chroot_nodir): add Errno::EPERM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e12e0b337d
commit
1d6e2caf10
2 changed files with 6 additions and 1 deletions
|
@ -131,7 +131,8 @@ class TestDir < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_chroot_nodir
|
||||
assert_raise(NotImplementedError, Errno::ENOENT) { Dir.chroot(File.join(@nodir, "")) }
|
||||
assert_raise(NotImplementedError, Errno::ENOENT, Errno::EPERM
|
||||
) { Dir.chroot(File.join(@nodir, "")) }
|
||||
end
|
||||
|
||||
def test_close
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue