mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
Fix FreeBSD test failure.
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name): use ps -o command instead of ps -o cmd. FreeBSD doesn't support -o cmd option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60fdd0f0f5
commit
39b1198410
2 changed files with 8 additions and 1 deletions
|
@ -404,7 +404,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
skip if /linux|freebsd|netbsd|openbsd/ !~ RUBY_PLATFORM
|
||||
|
||||
$0 = 'hello world'
|
||||
ps = `ps -p #{$$} -o cmd`
|
||||
ps = `ps -p #{$$} -o command`
|
||||
assert_match(/hello world/, ps)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue