diff options
Diffstat (limited to 'test/fiber/test_process.rb')
| -rw-r--r-- | test/fiber/test_process.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/fiber/test_process.rb b/test/fiber/test_process.rb index a09b070c0a..f17f767704 100644 --- a/test/fiber/test_process.rb +++ b/test/fiber/test_process.rb @@ -59,12 +59,14 @@ class TestFiberProcess < Test::Unit::TestCase def test_fork omit 'fork not supported' unless Process.respond_to?(:fork) + + pid = Process.fork{} + Thread.new do scheduler = Scheduler.new Fiber.set_scheduler scheduler Fiber.schedule do - pid = Process.fork {} Process.wait(pid) assert_predicate $?, :success? |
