diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-11 19:54:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-11 20:21:03 +0900 |
commit | ed343c76fbd94dfcd429668b72844e0db87a0b46 (patch) | |
tree | c6e835906c413b3afac99a4723161447ed8b2f75 /test/ruby/test_process.rb | |
parent | 1728eba48a163c09c0e2a918c13d5c08961bf9a9 (diff) |
RDoc states that Process::Status.wait returns nil if cannot wait
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 4f96a623e0..53d0cd0fa7 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1459,6 +1459,10 @@ class TestProcess < Test::Unit::TestCase end end + def test_status_fail + assert_nil(Process::Status.wait($$)) + end + def test_wait_without_arg with_tmpchdir do write_file("foo", "sleep 0.1") |