PageRenderTime 53ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/patches/ruby/2.1.8/railsexpress/01-zero-broken-tests.patch

http://github.com/railsmachine/moonshine
Patch | 61 lines | 53 code | 8 blank | 0 comment | 0 complexity | 3ac133297b3fa9d94c1062c7e3c94eb4 MD5 | raw file
Possible License(s): MIT, LGPL-3.0
  1. diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
  2. index 946be9b..12a99fe 100644
  3. --- a/test/etc/test_etc.rb
  4. +++ b/test/etc/test_etc.rb
  5. @@ -68,6 +68,7 @@ class TestEtc < Test::Unit::TestCase
  6. end
  7. def test_group
  8. + skip "Broken Etc.group on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GROUP']=='1'
  9. Etc.group do |s|
  10. assert_instance_of(String, s.name)
  11. assert_instance_of(String, s.passwd) if s.respond_to?(:passwd)
  12. @@ -78,6 +79,7 @@ class TestEtc < Test::Unit::TestCase
  13. end
  14. def test_getgrgid
  15. + skip "Broken Etc.getgrgid on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GETGRGID']=='1'
  16. # group database is not unique on GID, and which entry will be
  17. # returned by getgrgid() is not specified.
  18. groups = Hash.new {[]}
  19. @@ -94,6 +96,7 @@ class TestEtc < Test::Unit::TestCase
  20. end
  21. def test_getgrnam
  22. + skip "Broken Etc.getgrnam on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GETGRNAM']=='1'
  23. groups = {}
  24. Etc.group do |s|
  25. groups[s.name] ||= s unless /\A\+/ =~ s.name
  26. @@ -104,6 +107,7 @@ class TestEtc < Test::Unit::TestCase
  27. end
  28. def test_group_with_low_level_api
  29. + skip "Broken Etc.group on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GROUP']=='1'
  30. a = []
  31. Etc.group {|s| a << s }
  32. b = []
  33. diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
  34. index d79653c..0c7488e 100644
  35. --- a/test/rinda/test_rinda.rb
  36. +++ b/test/rinda/test_rinda.rb
  37. @@ -479,6 +479,8 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
  38. end
  39. def test_take_bug_8215
  40. + skip "test_take_bug_8215 broken on my machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_DRB']=='1'
  41. +
  42. require_relative '../ruby/envutil'
  43. service = DRb.start_service("druby://localhost:0", @ts_base)
  44. diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
  45. index 28e08ce..4fb6cae 100644
  46. --- a/test/ruby/test_process.rb
  47. +++ b/test/ruby/test_process.rb
  48. @@ -1620,6 +1620,7 @@ class TestProcess < Test::Unit::TestCase
  49. def test_execopts_gid
  50. skip "Process.groups not implemented on Windows platform" if windows?
  51. + skip "Broken Etc.getgrgid on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GETGRGID']=='1'
  52. feature6975 = '[ruby-core:47414]'
  53. [30000, *Process.groups.map {|g| g = Etc.getgrgid(g); [g.name, g.gid]}].each do |group, gid|