Skip to content

Commit

Permalink
test windows: omit needless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 10, 2019
1 parent bd25c2a commit accf615
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test-exception.rb
Expand Up @@ -108,11 +108,16 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
include GroongaTestUtils

def setup
@sub_context = nil
unless Process.const_defined?(:RLIMIT_NOFILE)
omit("No Process::RLIMIT_NOFILE")
end
setup_database
@sub_context = create_sub_context
end

def teardown
return if @sub_context.nil?
@sub_context.database.close
@sub_context.close
end
Expand Down

0 comments on commit accf615

Please sign in to comment.