Project

General

Profile

Actions

Bug #7133

closed

[mingw] bogus TestProcess#test_execopts_gid test failure

Added by jonforums (Jon Forums) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 2.0.0dev (2012-10-09 trunk 37127) [i386-mingw32]
Backport:
[ruby-core:47878]

Description

On mingw windows builds, HAVE_GETGROUPS is not defined so Process.groups is not implemented

https://github.com/ruby/ruby/blob/trunk/process.c#L5389

Attached patch skips the test on windows and changes the output from

[15/74] TestProcess#test_execopts_gid = 0.00 s
2) Error:
test_execopts_gid(TestProcess):
NotImplementedError: groups() function is unimplemented on this machine
c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/test_process.rb:1506:in groups' c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/test_process.rb:1506:in test_execopts_gid'

to

[15/74] TestProcess#test_execopts_gid = 0.00 s
2) Skipped:
test_execopts_gid(TestProcess) [c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/test_process.rb:1504]:
Process.groups not implemented on Windows platform

thereby enabling test-all to finish with 0 errors.


Files

fix_test_execopts_gid.patch (464 Bytes) fix_test_execopts_gid.patch jonforums (Jon Forums), 10/10/2012 08:02 AM
Actions #1

Updated by usa (Usaku NAKAMURA) about 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37128.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • test/ruby/test_process.rb (TestProcess#test_execopts_gid): skip on
    windows because the platform does not have Process.group method.
    patched by Jon Forums in [ruby-core:47878] [Bug #7133].
Actions

Also available in: Atom PDF

Like0
Like0