From 39070cabae3d911397c324323d6b7f29532f4915 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 21 Aug 2008 10:18:38 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@18752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 668d05474..afcda4891 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 -- cgit