summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 10:18:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 10:18:38 +0000
commit39070cabae3d911397c324323d6b7f29532f4915 (patch)
treebd5ea03be1886ee286df3f4568bbc82bffeeec4e /test/ruby
parent70a17d1da3e038eb2a36f6d26fd8c9b24e954ce9 (diff)
downloadruby-39070cabae3d911397c324323d6b7f29532f4915.tar.gz
ruby-39070cabae3d911397c324323d6b7f29532f4915.tar.xz
ruby-39070cabae3d911397c324323d6b7f29532f4915.zip
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_process.rb3
1 files changed, 3 insertions, 0 deletions
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