yarv-diff:348
From: ko1 atdot.net
Date: 11 Jul 2006 21:34:45 +0900
Subject: [yarv-diff:348] r514 - in trunk: . test/ruby
Author: aamine
Date: 2006-07-11 21:34:45 +0900 (Tue, 11 Jul 2006)
New Revision: 514
Modified:
trunk/ChangeLog
trunk/test/ruby/test_dir.rb
Log:
* test/ruby/test_dir.rb: new test test_JVN_13947696.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-07-11 12:27:03 UTC (rev 513)
+++ trunk/ChangeLog 2006-07-11 12:34:45 UTC (rev 514)
@@ -4,6 +4,11 @@
# from Mon, 03 May 2004 01:24:19 +0900
#
+2006-07-11(Tue) 21:34:29 +0900 Minero Aoki <aamine loveruby.net>
+
+ * test/ruby/test_dir.rb: new test test_JVN_13947696.
+
+
2006-07-11(Tue) 21:26:41 +0900 Minero Aoki <aamine loveruby.net>
* test/ruby/test_alias.rb: new test test_JVN_83768862.
Modified: trunk/test/ruby/test_dir.rb
===================================================================
--- trunk/test/ruby/test_dir.rb 2006-07-11 12:27:03 UTC (rev 513)
+++ trunk/test/ruby/test_dir.rb 2006-07-11 12:34:45 UTC (rev 514)
@@ -39,4 +39,14 @@
dir.close
end
end
+
+ def test_JVN_13947696
+ b = lambda {
+ d = Dir.open('.')
+ $SAFE = 4
+ d.close
+ }
+ assert_raise(SecurityError) { b.call }
+ end
+
end
--
ML: yarv-diff quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml