[Groonga-commit] ranguba/rroonga at accf615 [master] test windows: omit needless tests

Back to archive index
Kouhei Sutou null+****@clear*****
Fri May 10 18:03:02 JST 2019


Kouhei Sutou	2019-05-10 18:03:02 +0900 (Fri, 10 May 2019)

  Revision: accf6156e5690661d0e5b2e952a352979a5494c6
  https://github.com/ranguba/rroonga/commit/accf6156e5690661d0e5b2e952a352979a5494c6

  Message:
    test windows: omit needless tests

  Modified files:
    test/test-exception.rb

  Modified: test/test-exception.rb (+5 -0)
===================================================================
--- test/test-exception.rb    2019-05-10 17:57:37 +0900 (852cdb83)
+++ test/test-exception.rb    2019-05-10 18:03:02 +0900 (65782846)
@@ -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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190510/c85c5d5b/attachment-0001.html>


More information about the Groonga-commit mailing list
Back to archive index