Skip to content

Commit d40e056

Browse files
committed
Skip the hang-up test on Windows
1 parent 3086d58 commit d40e056

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/ruby/test_thread.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ def test_thread_native_thread_id_across_fork_on_linux
14801480
end
14811481

14821482
def test_thread_interrupt_for_killed_thread
1483-
pend "hang-up" if RUBY_PLATFORM.include?("mingw")
1483+
pend "hang-up" if /mswin|mingw/ =~ RUBY_PLATFORM
14841484

14851485
opts = { timeout: 5, timeout_error: nil }
14861486

tool/test/testunit/test_assertion.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ def test_wrong_assertion
88
end
99

1010
def test_timeout_separately
11+
pend "hang-up" if /mswin|mingw/ =~ RUBY_PLATFORM
12+
1113
assert_raise(Timeout::Error) do
1214
assert_separately([], <<~"end;", timeout: 0.1)
1315
sleep

0 commit comments

Comments
 (0)