diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-23 11:47:02 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-23 11:47:02 +0000 |
commit | ee8c98e5ccdc6a421d52652ae560f2efcb850749 (patch) | |
tree | ae74fac903089ee809a09f2b0c450d10283af4a7 /test/ruby | |
parent | c2086cc7ff1142b14c95c8758af24b8689b78ffc (diff) | |
download | ruby-ee8c98e5ccdc6a421d52652ae560f2efcb850749.tar.gz |
* win32/win32.c (szInternalCmds, internal_match, internal_cmd_match):
get rid of a segmentation fault with GCC 4.7.0.
reported by raylinn@gmail.com (ray linn) at [ruby-core:44505]
[Bug #6333], and patched by mame.
* test/ruby/test_system.rb (TestSystem#test_system): test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 f1372781cf..13266d9d37 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -84,6 +84,10 @@ class TestSystem < Test::Unit::TestCase ENV["PATH"] = path end File.unlink tmpfilename + + testname = '[ruby-core:44505]' + assert_match /Windows/, `ver`, testname + assert_equal 0, $?.to_i, testname end } end |