Bug #7133
closed[mingw] bogus TestProcess#test_execopts_gid test failure
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
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].