mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0cf0b0eed4
commit
15ec8e6548
2 changed files with 8 additions and 2 deletions
|
@ -1463,4 +1463,10 @@ class TestIO < Test::Unit::TestCase
|
||||||
assert(File.read(t.path, 4).tainted?, '[ruby-dev:38826]')
|
assert(File.read(t.path, 4).tainted?, '[ruby-dev:38826]')
|
||||||
assert(File.open(t.path) {|f| f.read(4)}.tainted?, '[ruby-dev:38826]')
|
assert(File.open(t.path) {|f| f.read(4)}.tainted?, '[ruby-dev:38826]')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_binmode_after_closed
|
||||||
|
t = make_tempfile
|
||||||
|
t.close
|
||||||
|
assert_raise(IOError) {t.binmode}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#define RUBY_VERSION "1.9.2"
|
#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_PATCHLEVEL -1
|
||||||
#define RUBY_BRANCH_NAME "trunk"
|
#define RUBY_BRANCH_NAME "trunk"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
#define RUBY_VERSION_TEENY 1
|
#define RUBY_VERSION_TEENY 1
|
||||||
#define RUBY_RELEASE_YEAR 2009
|
#define RUBY_RELEASE_YEAR 2009
|
||||||
#define RUBY_RELEASE_MONTH 9
|
#define RUBY_RELEASE_MONTH 9
|
||||||
#define RUBY_RELEASE_DAY 4
|
#define RUBY_RELEASE_DAY 5
|
||||||
|
|
||||||
#include "ruby/version.h"
|
#include "ruby/version.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue