[前][次][番号順一覧][スレッド一覧]

ruby-changes:50400

From: nobu <ko1@a...>
Date: Wed, 21 Feb 2018 18:04:54 +0900 (JST)
Subject: [ruby-changes:50400] nobu:r62516 (trunk): test_process.rb: unlimited getgroups on darwin

nobu	2018-02-21 18:04:48 +0900 (Wed, 21 Feb 2018)

  New Revision: 62516

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62516

  Log:
    test_process.rb: unlimited getgroups on darwin
    
    * test/ruby/test_process.rb (TestProcess#test_maxgroups): Darwin
      extension of getgroups(2) which is not limited to MAXGROUPS is
      used.

  Modified files:
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 62515)
+++ test/ruby/test_process.rb	(revision 62516)
@@ -1522,6 +1522,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1522
   rescue NotImplementedError
   else
     assert_kind_of(Integer, max)
+    skip "not limited to NGROUPS_MAX" if /darwin/ =~ RUBY_PLATFORM
     gs = Process.groups
     assert_operator(gs.size, :<=, max)
     gs[0] ||= 0

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]