diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-07 10:46:13 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-07 10:46:13 +0000 |
| commit | 9b91a1a50c2e29ce94b960530dedcea5b6642905 (patch) | |
| tree | e086a0f951b07b16a6f1f2e2881bfe42ee11afc2 /test/ruby/test_dir.rb | |
| parent | 3c94d03c304d4ab5ff32782354668d947185533a (diff) | |
| download | ruby-9b91a1a50c2e29ce94b960530dedcea5b6642905.tar.gz ruby-9b91a1a50c2e29ce94b960530dedcea5b6642905.tar.xz ruby-9b91a1a50c2e29ce94b960530dedcea5b6642905.zip | |
* test/ruby/test_dir.rb (test_chroot_nodir): add Errno::EPERM.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir.rb')
| -rw-r--r-- | test/ruby/test_dir.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index 39b47720a..4301a61dc 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -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 |
