summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-22 01:58:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-22 01:58:29 +0000
commit9ffa3795a311cef45b6d34054aa04936e12f43d7 (patch)
tree498a736cf7bc072c5293d0cf1bec9f39d404a846 /test
parentb6f290f21c73586536175caec831682aea447da2 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_process.rb1
1 files changed, 1 insertions, 0 deletions
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)