diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index d68aef624e..e4c7bc9190 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2352,4 +2352,9 @@ EOS end end end + + def test_last_status + Process.wait spawn(RUBY, "-e", "exit 13") + assert_same(Process.last_status, $?) + end end |