diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-08 02:46:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-08 02:46:39 +0000 |
commit | e41a1c0f10db58206394bbef056a0613c353ab92 (patch) | |
tree | a62de6522301e526de6c42a444e9f5094b25af83 /test | |
parent | ec8d7f3672e379700d90d8ed0deab767584e5e76 (diff) | |
download | ruby-e41a1c0f10db58206394bbef056a0613c353ab92.tar.gz |
* parse.y (string_content): get rid of segfault at empty evstr.
fixed: [ruby-dev:25113]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_system.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index 410dd83e2a..826c615cd3 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -60,4 +60,8 @@ class TestSystem < Test::Unit::TestCase end end end + + def test_empty_evstr # [ruby-dev:25113] + assert_equal("", eval('"#{}"', nil, __FILE__, __LINE__)) + end end |