We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528344b commit 5c7af72Copy full SHA for 5c7af72
1 file changed
test/ruby/test_fiber.rb
@@ -396,7 +396,7 @@ def test_fork_from_fiber
396
Fiber.new {}.transfer
397
Fiber.new { Fiber.yield }
398
end
399
- exit!(0)
+ exit!(true)
400
401
}.transfer
402
_, status = Process.waitpid2(xpid)
@@ -405,8 +405,8 @@ def test_fork_from_fiber
405
end.resume
406
407
pid, status = Process.waitpid2(pid)
408
- assert_equal(0, status.exitstatus, bug5700)
409
- assert_equal(false, status.signaled?, bug5700)
+ assert_not_predicate(status, :signaled?, bug5700)
+ assert_predicate(status, :success?, bug5700)
410
411
412
def test_exit_in_fiber
0 commit comments