Bug #7133

[mingw] bogus TestProcess#test_execopts_gid test failure

Added by Jon Forums over 1 year ago. Updated over 1 year ago.

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

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#testexecoptsgid = 0.00 s
2) Error:
testexecoptsgid(TestProcess):
NotImplementedError: groups() function is unimplemented on this machine
c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/testprocess.rb:1506:in groups'
c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/test_process.rb:1506:in
test
execopts_gid'

to

[15/74] TestProcess#testexecoptsgid = 0.00 s
2) Skipped:
testexecoptsgid(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.

fix_test_execopts_gid.patch Magnifier (464 Bytes) Jon Forums, 10/10/2012 08:02 AM

Associated revisions

Revision 37128
Added by Usaku NAKAMURA over 1 year ago

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

History

#1 Updated by Usaku NAKAMURA over 1 year 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/testprocess.rb (TestProcess#testexecopts_gid): skip on windows because the platform does not have Process.group method. patched by Jon Forums in [Bug #7133].

Also available in: Atom PDF