Sha256: 5e4ee0b271200cc84831643da36cca5d913ccfe5c940e9b087a32d81e63ce9dc

Contents?: true

Size: 1.28 KB

Versions: 56

Compression:

Stored size: 1.28 KB

Contents

# Copyright (C) 2010  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

class LoggerTest < Test::Unit::TestCase
  include GroongaTestUtils

  def setup
    @default_log_path = Groonga::Logger.log_path
    @default_query_log_path = Groonga::Logger.query_log_path
  end

  def teardown
    Groonga::Logger.log_path = @default_log_path
    Groonga::Logger.query_log_path = @default_query_log_path
  end

  def test_reopen
    if File.exist?(@default_log_path)
      FileUtils.mv(@default_log_path, "#{@default_log_path}.old")
    end
    assert_false(File.exist?(@default_log_path))
    Groonga::Logger.reopen
    assert_true(File.exist?(@default_log_path))
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
rroonga-2.1.2-x86-mingw32 test/test-logger.rb
rroonga-2.1.2 test/test-logger.rb
rroonga-2.1.1-x86-mingw32 test/test-logger.rb
rroonga-2.1.1 test/test-logger.rb
rroonga-2.1.0-x86-mingw32 test/test-logger.rb
rroonga-2.1.0 test/test-logger.rb
rroonga-2.0.8-x86-mingw32 test/test-logger.rb
rroonga-2.0.8 test/test-logger.rb
rroonga-2.0.7-x86-mingw32 test/test-logger.rb
rroonga-2.0.7 test/test-logger.rb
rroonga-2.0.6 test/test-logger.rb
rroonga-2.0.5 test/test-logger.rb
rroonga-2.0.2 test/test-logger.rb
rroonga-2.0.2-x86-mingw32 test/test-logger.rb
rroonga-2.0.1-x86-mingw32 test/test-logger.rb
rroonga-2.0.1 test/test-logger.rb
rroonga-2.0.0-x86-mingw32 test/test-logger.rb
rroonga-2.0.0 test/test-logger.rb
rroonga-1.3.1-x86-mingw32 test/test-logger.rb
rroonga-1.3.1 test/test-logger.rb