diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index ab893dbfd8..7a0ecc0cf1 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1463,4 +1463,10 @@ class TestIO < Test::Unit::TestCase 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 diff --git a/version.h b/version.h index 0d29a26215..a4d7754ce9 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_RELEASE_DATE "2009-09-04" +#define RUBY_RELEASE_DATE "2009-09-05" #define RUBY_PATCHLEVEL -1 #define RUBY_BRANCH_NAME "trunk" @@ -8,7 +8,7 @@ #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 9 -#define RUBY_RELEASE_DAY 4 +#define RUBY_RELEASE_DAY 5 #include "ruby/version.h"