From 6c2b2c285372a8b5e3457058ff85ecf327e4e105 Mon Sep 17 00:00:00 2001 From: kosaki Date: Thu, 27 Jan 2011 16:33:23 +0000 Subject: * 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 --- test/ruby/test_process.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/ruby') 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 -- cgit v1.2.3