Skip to content

Commit

Permalink
MinGW on Actions (#2791)
Browse files Browse the repository at this point in the history
* MinGW - skip spec in spec/ruby/optional/capi/thread_spec.rb

C-API Thread function rb_thread_call_without_gvl
      -- runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO

stops/freezes spec tests

See https://bugs.ruby-lang.org/issues/16265

* MinGW - skip test test/resolv/test_dns.rb

Test times out in CI (both AppVeyor & Actions), cannot repo locally

* MinGW - skip test test/ruby/test_thread_queue.rb

* Add Actions mingw.yml
  • Loading branch information
MSP-Greg authored and k0kubun committed Dec 31, 2019
1 parent 4eecf3b commit 333fc0c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions test/resolv/test_dns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,19 @@ def test_no_server
# A race condition here.
# Another program may use the port.
# But no way to prevent it.
Timeout.timeout(5) do
Resolv::DNS.open(:nameserver_port => [[host, port]]) {|dns|
assert_equal([], dns.getresources("test-no-server.example.org", Resolv::DNS::Resource::IN::A))
}
begin
Timeout.timeout(5) do
Resolv::DNS.open(:nameserver_port => [[host, port]]) {|dns|
assert_equal([], dns.getresources("test-no-server.example.org", Resolv::DNS::Resource::IN::A))
}
end
rescue Timeout::Error
if RUBY_PLATFORM.match?(/mingw/)
# cannot repo locally
skip 'Timeout Error on MinGW CI'
else
raise Timeout::Error
end
end
end

Expand Down

0 comments on commit 333fc0c

Please sign in to comment.