diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-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 |