From 8ebc79d48a520c19990d991fe4e27986a52af59e Mon Sep 17 00:00:00 2001 From: Herwin Date: Thu, 7 Nov 2024 18:04:41 +0100 Subject: [PATCH] Update shared specs for Process.fork/Kernel.fork/Kernel#fork A number of tests called `Process.fork`, so the specs for Kernel were mostly calling the wrong method. --- shared/process/fork.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/process/fork.rb b/shared/process/fork.rb index 11e18d7b1c..8dbb3d0da4 100644 --- a/shared/process/fork.rb +++ b/shared/process/fork.rb @@ -23,31 +23,31 @@ end it "returns status zero" do - pid = Process.fork { exit! 0 } + pid = @object.fork { exit! 0 } _, result = Process.wait2(pid) result.exitstatus.should == 0 end it "returns status zero" do - pid = Process.fork { exit 0 } + pid = @object.fork { exit 0 } _, result = Process.wait2(pid) result.exitstatus.should == 0 end it "returns status zero" do - pid = Process.fork {} + pid = @object.fork {} _, result = Process.wait2(pid) result.exitstatus.should == 0 end it "returns status non-zero" do - pid = Process.fork { exit! 42 } + pid = @object.fork { exit! 42 } _, result = Process.wait2(pid) result.exitstatus.should == 42 end it "returns status non-zero" do - pid = Process.fork { exit 42 } + pid = @object.fork { exit 42 } _, result = Process.wait2(pid) result.exitstatus.should == 42 end