From 1d6e2caf10b477739012f92e3c08be23d8459363 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 7 Jul 2008 10:46:13 +0000 Subject: * 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 --- test/ruby/test_dir.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_dir.rb') diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index 39b47720a7..4301a61dc0 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 -- cgit v1.2.3