Skip to content

Commit

Permalink
* test/ruby/test_process.rb (TestProcess#test_too_long_path2):
Browse files Browse the repository at this point in the history
	  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
  • Loading branch information
kosaki committed Jan 27, 2011
1 parent 4a42b10 commit 6c2b2c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jan 28 01:27:42 2011 KOSAKI Motohiro <[email protected]>

* test/ruby/test_process.rb (TestProcess#test_too_long_path2):
Factored out from test_too_long_path. A test should only do
one test.

Thu Jan 27 23:29:36 2011 Nobuyoshi Nakada <[email protected]>

* st.c (st_foreach): check if unpacked.
Expand Down
9 changes: 5 additions & 4 deletions test/ruby/test_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1235,9 +1235,10 @@ def test_fallback_to_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

def test_too_long_path2
bug4315 = '[ruby-core:34833]'
assert_raise(Errno::ENOENT, bug4315) {Process.spawn('"a"|'*100_000_000)}
end
end

0 comments on commit 6c2b2c2

Please sign in to comment.