ruby-changes:24583
From: usa <ko1@a...>
Date: Mon, 6 Aug 2012 11:09:46 +0900 (JST)
Subject: [ruby-changes:24583] usa:r36634 (trunk): * test/syslog/test_syslog_logger.rb: skip unless Syslog module is
usa 2012-08-06 11:09:33 +0900 (Mon, 06 Aug 2012) New Revision: 36634 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36634 Log: * test/syslog/test_syslog_logger.rb: skip unless Syslog module is available. Modified files: trunk/ChangeLog trunk/test/syslog/test_syslog_logger.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 36633) +++ ChangeLog (revision 36634) @@ -1,3 +1,8 @@ +Mon Aug 6 11:08:48 2012 NAKAMURA Usaku <usa@r...> + + * test/syslog/test_syslog_logger.rb: skip unless Syslog module is + available. + Mon Aug 6 00:40:54 2012 Nobuyoshi Nakada <nobu@r...> * ext/bigdecimal/bigdecimal.c (BigMath_s_log): fix format specifier. Index: test/syslog/test_syslog_logger.rb =================================================================== --- test/syslog/test_syslog_logger.rb (revision 36633) +++ test/syslog/test_syslog_logger.rb (revision 36634) @@ -1,6 +1,10 @@ require 'test/unit' require 'tempfile' -require 'syslog/logger' +begin + require 'syslog/logger' +rescue LoadError + # skip. see the bottom of this file. +end # These tests ensure Syslog::Logger works like Logger @@ -504,4 +508,4 @@ assert_equal false, @logger.unknown? end -end +end if defined?(Syslog) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/