diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-27 16:33:23 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-27 16:33:23 +0000 |
commit | 6c2b2c285372a8b5e3457058ff85ecf327e4e105 (patch) | |
tree | 2826490139bd976f3baed67ca5b88b7652af22e5 /test | |
parent | 4a42b101a9521b74ded79f2dc1b6260533abca8c (diff) | |
download | ruby-6c2b2c285372a8b5e3457058ff85ecf327e4e105.tar.gz |
* test/ruby/test_process.rb (TestProcess#test_too_long_path2):
Factored out from test_too_long_path. A test should only do
one test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index b25fa2c0a4..56a6c596a4 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1235,9 +1235,10 @@ class TestProcess < Test::Unit::TestCase def test_too_long_path bug4314 = '[ruby-core:34842]' assert_raise(Errno::ENOENT, bug4314) {Process.spawn("a" * 100_000_000)} - if /mswin|mingw/ =~ RUBY_PLATFORM - bug4315 = '[ruby-core:34833]' - assert_raise(Errno::ENOENT, bug4315) {Process.spawn('"a"|'*100_000_000)} - end + end + + def test_too_long_path2 + bug4315 = '[ruby-core:34833]' + assert_raise(Errno::ENOENT, bug4315) {Process.spawn('"a"|'*100_000_000)} end end |