Project

General

Profile

Actions

Bug #14174

closed

TestProcess#test_maxgroups failures

Added by vo.x (Vit Ondruch) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-12-12 trunk 61169) [x86_64-linux]
[ruby-core:84224]

Description

I observe following test error on Fedora Rawhide:

  1) Failure:
TestProcess#test_maxgroups [/builddir/build/BUILD/ruby-2.5.0-r61169/test/ruby/test_process.rb:1521]:
[ArgumentError] exception expected, not.
Class: <ZeroDivisionError>
Message: <"divided by 0">
---Backtrace---
/builddir/build/BUILD/ruby-2.5.0-r61169/test/ruby/test_process.rb:1521:in `/'
/builddir/build/BUILD/ruby-2.5.0-r61169/test/ruby/test_process.rb:1521:in `block in test_maxgroups'
/builddir/build/BUILD/ruby-2.5.0-r61169/test/lib/test/unit/assertions.rb:74:in `assert_raise'
/builddir/build/BUILD/ruby-2.5.0-r61169/test/ruby/test_process.rb:1521:in `test_maxgroups'
/builddir/build/BUILD/ruby-2.5.0-r61169/test/lib/test/unit.rb:1169:in `run_test'
---------------

This fails probably since r61094, but I am not really sure why this happens neither what is purpose of the test :/

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r61206.


test_process.rb: fix error when empty groups

  • test/ruby/test_process.rb (test_maxgroups): set one element at
    least get rid of ZeroDivisionError when no process groups.
    [ruby-core:84224] [Bug #14174]
Actions

Also available in: Atom PDF

Like0
Like0