diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-02 12:45:42 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-02 12:45:42 +0000 |
commit | 7eb625425c3acb33ea712bc36bbe17302cfbca94 (patch) | |
tree | 18bc67e124c8ee9ee6331289c7cf6d133f29f07b /test/ruby/test_io.rb | |
parent | 8a5dd664e7dd66f63fdf7bf7b6ff2fdef715db3a (diff) |
* re.c: fix SEGV by Regexp.allocate.names, Match.allocate.names, etc.
* test/ruby/test_regexp.rb: add tests for above.
* io.c: fix SEGV by IO.allocate.print, etc.
* test/ruby/test_io.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 25ceb70be9..6e6a27f015 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1219,4 +1219,8 @@ class TestIO < Test::Unit::TestCase assert_equal("bar\n", File.read(t.path, 4, 4)) end + + def test_uninitialized + assert_raise(IOError) { IO.allocate.print "" } + end end |