1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2008-08-21 10:18:38 +00:00
parent d34079b17a
commit 61acccefb7
3 changed files with 16 additions and 3 deletions

View file

@ -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