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

ruby-changes:50403

From: nobu <ko1@a...>
Date: Thu, 22 Feb 2018 10:58:35 +0900 (JST)
Subject: [ruby-changes:50403] nobu:r62519 (trunk): test_process.rb: assert minimum maxgroups

nobu	2018-02-22 10:58:29 +0900 (Thu, 22 Feb 2018)

  New Revision: 62519

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

  Log:
    test_process.rb: assert minimum maxgroups
    
    * test/ruby/test_process.rb (TestProcess#test_maxgroups):
      maxgroups should be one at least.

  Modified files:
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 62518)
+++ test/ruby/test_process.rb	(revision 62519)
@@ -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)
+    assert_predicate(max, :positive?)
     skip "not limited to NGROUPS_MAX" if /darwin/ =~ RUBY_PLATFORM
     gs = Process.groups
     assert_operator(gs.size, :<=, max)

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

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