[前][次][番号順一覧][スレッド一覧]

ruby-changes:13790

From: yugui <ko1@a...>
Date: Sat, 31 Oct 2009 22:16:04 +0900 (JST)
Subject: [ruby-changes:13790] Ruby:r25588 (ruby_1_9_1): merges r24752 from trunk into ruby_1_9_1.

yugui	2009-10-31 22:04:24 +0900 (Sat, 31 Oct 2009)

  New Revision: 25588

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25588

  Log:
    merges r24752 from trunk into ruby_1_9_1.
    --
    * test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363].

  Modified files:
    branches/ruby_1_9_1/test/ruby/test_io.rb
    branches/ruby_1_9_1/version.h

Index: ruby_1_9_1/version.h
===================================================================
--- ruby_1_9_1/version.h	(revision 25587)
+++ ruby_1_9_1/version.h	(revision 25588)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.1"
-#define RUBY_PATCHLEVEL 313
+#define RUBY_PATCHLEVEL 314
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1
Index: ruby_1_9_1/test/ruby/test_io.rb
===================================================================
--- ruby_1_9_1/test/ruby/test_io.rb	(revision 25587)
+++ ruby_1_9_1/test/ruby/test_io.rb	(revision 25588)
@@ -1374,4 +1374,10 @@
     assert(File.read(t.path, 4).tainted?, '[ruby-dev:38826]')
     assert(File.open(t.path) {|f| f.read(4)}.tainted?, '[ruby-dev:38826]')
   end
+
+  def test_binmode_after_closed
+    t = make_tempfile
+    t.close
+    assert_raise(IOError) {t.binmode}
+  end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]