diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-21 10:18:38 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-21 10:18:38 +0000 |
commit | 61acccefb7b90ab8dcbccc216e56c0ea61f1b54a (patch) | |
tree | bd5ea03be1886ee286df3f4568bbc82bffeeec4e /test | |
parent | d34079b17a82ca0c3012a9eb0b99689ac65c585c (diff) | |
download | ruby-61acccefb7b90ab8dcbccc216e56c0ea61f1b54a.tar.gz |
* process.c (pst_pid): use rb_attr_get to avoid warning on
Process::Status.allocate.pid.
(pst_inspect): don't raise if self is not initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 668d054743..afcda48912 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1001,4 +1001,7 @@ class TestProcess < Test::Unit::TestCase assert(true == r || false == r) end + def test_pst_inspect + assert_nothing_raised { Process::Status.allocate.inspect } + end end |