Sha256: 4ec68d54a0ab0dc7ef04f3bd53bc880bbae0b49c55e94b3e5cb687318fe37b3b

Contents?: true

Size: 422 Bytes

Versions: 5

Compression:

Stored size: 422 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

if God::EventHandler.event_system == "kqueue"

  class TestHandlersKqueueHandler < Minitest::Test
    def test_register_process
      KQueueHandler.expects(:monitor_process).with(1234, 2147483648)
      KQueueHandler.register_process(1234, [:proc_exit])
    end

    def test_events_mask
      assert_equal 2147483648, KQueueHandler.events_mask([:proc_exit])
    end
  end

end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
resurrected_god-0.14.0 test/test_handlers_kqueue_handler.rb
mcproc-2016.2.20 test/test_handlers_kqueue_handler.rb
god-0.13.7 test/test_handlers_kqueue_handler.rb
god-0.13.6 test/test_handlers_kqueue_handler.rb
god-0.13.5 test/test_handlers_kqueue_handler.rb