diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-22 15:46:11 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-22 15:46:11 +0000 |
commit | fe505c47c86e6ee6db45096913f81f29bf15c523 (patch) | |
tree | 9e4c8a32097539e16c4dae85e655a715dabd1c3d /test/test_syslog.rb | |
parent | d21bc2f84a1f2ac7460304ee69761242d15a5fc0 (diff) |
* 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
Diffstat (limited to 'test/test_syslog.rb')
-rw-r--r-- | test/test_syslog.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_syslog.rb b/test/test_syslog.rb index e9fc375c90..fe865bdd18 100644 --- a/test/test_syslog.rb +++ b/test/test_syslog.rb @@ -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) |