summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-12-06 02:11:28 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-12-06 02:11:28 +1300
commit399d3e6dba4f8c5ead13a1ba37d6c9cebd5f8208 (patch)
tree17473d5b8cd25ec5e4f0077c3642d9585f73f8ee
parent991312056a07d99a4e2cb48ca3de3847a9a17df0 (diff)
downloadruby-scheduler-process-wait.tar.gz
Update test to check $? value.scheduler-process-wait
-rw-r--r--test/fiber/test_process.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fiber/test_process.rb b/test/fiber/test_process.rb
index 01114c2083..22ea1109ba 100644
--- a/test/fiber/test_process.rb
+++ b/test/fiber/test_process.rb
@@ -9,7 +9,8 @@ class TestFiberProcess < Test::Unit::TestCase
Fiber.set_scheduler scheduler
Fiber.schedule do
- system("sleep 1")
+ system("true")
+ assert_predicate $?, :success?
end
end.join
end