Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
end

it "can fail to execute child process" do
skip "JRuby does not spawn a missing command, so there is no process to wait for" if RUBY_ENGINE == "jruby"

expect(reactor).to receive(:process_wait)

result = ::Kernel.system("does-not-exist")
Expand Down
6 changes: 6 additions & 0 deletions test/process/fork.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
describe Process do
describe ".fork" do
it "can fork with block form" do
skip "Process.fork is not supported!" unless Process.respond_to?(:fork)

r, w = IO.pipe

Async do
Expand All @@ -27,6 +29,8 @@
end

it "can fork with non-block form" do
skip "Process.fork is not supported!" unless Process.respond_to?(:fork)

r, w = IO.pipe

Async do
Expand All @@ -46,6 +50,8 @@
end

it "can fork while another fiber is blocked" do
skip "Process.fork is not supported!" unless Process.respond_to?(:fork)

r, w = IO.pipe
queue = Thread::Queue.new

Expand Down