From 9ffa3795a311cef45b6d34054aa04936e12f43d7 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 22 Feb 2018 01:58:29 +0000 Subject: test_process.rb: assert minimum maxgroups * test/ruby/test_process.rb (TestProcess#test_maxgroups): maxgroups should be one at least. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 467c5bf163..59f699931b 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1522,6 +1522,7 @@ class TestProcess < Test::Unit::TestCase 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) -- cgit v1.2.3