diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 55bae0650b..b25fa2c0a4 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1231,4 +1231,13 @@ class TestProcess < Test::Unit::TestCase assert_equal("2: a b c\n", result, feature) end end if File.executable?("/bin/sh") + + 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 end |