Skip to content

Commit 2f3f842

Browse files
Skip fork interrupt test on JRuby
Assisted-By: devx/242ffd92-f36a-421a-88b9-270e5488162a
1 parent 1b18f3d commit 2f3f842

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/io/event/interrupt.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
with "test scheduler" do
4242
it "can be used to wake up a fiber blocked in `Thread#join`" do
4343
skip_unless_method_defined(:fork, Process.singleton_class)
44+
skip "Process.fork is not available on JRuby" if RUBY_ENGINE == "jruby"
4445

4546
10.times do
4647
r, w = IO.pipe
@@ -51,8 +52,6 @@
5152
Fiber.set_scheduler(scheduler)
5253

5354
Fiber.schedule do
54-
selector.dump_state($stderr, label: "interrupt fork before fork") if ENV["IO_EVENT_DIAGNOSTICS"]
55-
5655
pid = Process.fork do
5756
# Child process:
5857
w.write("hello")

0 commit comments

Comments
 (0)