From 9b91a1a50c2e29ce94b960530dedcea5b6642905 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: http://svn.ruby-lang.org/repos/ruby/trunk@17941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_dir.rb | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e533338d3..80ca996a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 7 19:45:22 2008 NARUSE, Yui + + * test/ruby/test_dir.rb (test_chroot_nodir): add Errno::EPERM. + Mon Jul 7 17:12:20 2008 Nobuyoshi Nakada * lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in 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 -- cgit