mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/test_syslog.rb: Fix to make a lot of test failure if
the platform doesn't support syslog. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d21bc2f84a
commit
fe505c47c8
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Jan 23 00:40:10 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* test/test_syslog.rb: Fix to make a lot of test failure if
|
||||
the platform doesn't support syslog.
|
||||
|
||||
Sat Jan 22 11:49:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing merge key support
|
||||
|
|
|
@ -6,7 +6,12 @@
|
|||
# If in doubt, ask your admin.
|
||||
|
||||
require 'test/unit'
|
||||
require 'syslog'
|
||||
|
||||
begin
|
||||
require 'syslog'
|
||||
rescue LoadError
|
||||
# suppress error messages.
|
||||
end
|
||||
|
||||
class TestSyslog < Test::Unit::TestCase
|
||||
def test_new
|
||||
|
@ -159,4 +164,4 @@ class TestSyslog < Test::Unit::TestCase
|
|||
|
||||
assert_equal(format('<#%s: opened=false>', Syslog), Syslog.inspect)
|
||||
end
|
||||
end
|
||||
end if defined?(Syslog)
|
||||
|
|
Loading…
Add table
Reference in a new issue