mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
add for $0 test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1780714844
commit
4c79752cdf
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat May 14 19:52:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
|
||||
add for $0 test.
|
||||
|
||||
Sat May 14 19:50:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* missing/setproctitle.c (compat_init_setproctitle): use
|
||||
|
|
|
@ -400,6 +400,14 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
}
|
||||
end
|
||||
|
||||
def test_set_program_name
|
||||
skip if /linux|freebsd|netbsd|openbsd/ !~ RUBY_PLATFORM
|
||||
|
||||
$0 = 'hello world'
|
||||
ps = `ps -p #{$$} -o cmd`
|
||||
assert_match(/hello world/, ps)
|
||||
end
|
||||
|
||||
def test_segv_test
|
||||
opts = {}
|
||||
if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
|
|
Loading…
Reference in a new issue