1. 24 Mar, 2019 1 commit
  2. 29 Sep, 2018 1 commit
    • Luca Boccassi's avatar
      Problem: test_connect_delay_tipc randomly fails · 1a593775
      Luca Boccassi authored
      Solution: use a monitor to wait for a disconnect instead of a sleep,
      and retry to send a message until it fails since the state machine
      might be delayed due to the I/O thread being pre-empted on busy
      systems.
      Also set a receive timeout to avoid random hangs.
      
      Fixes #3124
      1a593775
  3. 16 Aug, 2018 1 commit
  4. 15 Aug, 2018 1 commit
  5. 09 Mar, 2018 1 commit
    • Luca Boccassi's avatar
      Problem: TIPC availability check is too strict (#2977) · 19060345
      Luca Boccassi authored
      * Problem: TIPC availability check is too strict
      
      Solution: at build time only check if the API is available. In the tests
      do a first check and a skip if the functionality is not available.
      
      TIPC needs an in-tree but not loaded by default kernel module, tipc.ko
      to be loaded, which requires root, so it is unlikely to be available on
      any build system by default.
      This will allow most distributions to ship with TIPC support built in,
      and to avoid tests failure if the module is not there.
      
      * Problem: no Travis tests for TIPC
      
      Solution: mark one job with sudo: required and load the kernel module
      
      * Problem: CMake fails when test returns 77 (skip)
      
      Solution: set property to let it mark the test as skipped as intended
      19060345
  6. 02 Feb, 2018 1 commit
  7. 11 May, 2016 1 commit
    • Erik Hugne's avatar
      tipc: add support for address domain suffix · f81ef1bc
      Erik Hugne authored
      The TIPC protocol bindings in ZeroMQ defaults to a lookup domain
      of 1.0.0 to prevent 'closest first' search, and instead always
      do round robin if several sockets in the network or node have
      the same name published. In retrospect, this might have been a
      bad idea because it won't work on standalone configurations.
      We solve this by allowing an optional domain suffix to be provided
      in the address, and 0.0.0 should be used in that case, or if the
      TIPC address range in the cluster configuration is defined to some
      other value. Domain suffixes are only relevant for connecting
      addresses.
      Signed-off-by: 's avatarErik Hugne <erik.hugne@gmail.com>
      f81ef1bc
  8. 12 Feb, 2016 1 commit
    • Pieter Hintjens's avatar
      Problem: tests don't build on Windows · bbcc79d1
      Pieter Hintjens authored
      There were numerous small issues with test cases:
      
      - some lacked the right source file header
      - some were not portable at all
      - some were using internal libzmq APIs (headers)
      
      Solution: fixed and cleaned up.
      bbcc79d1
  9. 01 Feb, 2016 3 commits
  10. 28 Jan, 2016 1 commit
  11. 02 Jun, 2015 1 commit
  12. 30 Jan, 2015 1 commit
  13. 22 Jan, 2015 1 commit
  14. 24 Jul, 2014 1 commit
  15. 02 Jan, 2014 1 commit
  16. 06 Nov, 2013 1 commit
    • Pieter Hintjens's avatar
      Removed over-long pauses in tests · 5b60540e
      Pieter Hintjens authored
      - used msleep (10) in most places instead of zmq_sleep (1)
      - may cause failures on slower machines
      - to change, modify SETTLE_TIME in testutil.h
      - tested down to 1 msec on fast boxes
      5b60540e
  17. 01 Nov, 2013 1 commit
  18. 20 Sep, 2013 1 commit
  19. 18 Sep, 2013 1 commit
  20. 15 Sep, 2013 1 commit
    • Pieter Hintjens's avatar
      Added z85 codec to ZMQ API · 576e3ca5
      Pieter Hintjens authored
      * Removed redundant Z85 code and include files from project
      * Simplified use of headers in test cases (now they all just use testutil.hpp)
      * Export zmq_z85_encode() and zmq_z85_decode() in API
      * Added man pages for these two functions
      576e3ca5
  21. 17 Aug, 2013 1 commit
  22. 21 May, 2013 1 commit
  23. 12 Mar, 2013 1 commit
  24. 31 Jan, 2013 1 commit
    • Pieter Hintjens's avatar
      Lots of cleanups to self-tests · 963c6a8e
      Pieter Hintjens authored
      * Removed or truncated sleeps so the tests run faster
      * Removed dependencies on zmq_utils
      * Rewrote a few tests that were confusing
      * Minor code cleanups
      963c6a8e
  25. 30 Jan, 2013 1 commit
  26. 17 Jan, 2013 1 commit
  27. 08 Jan, 2013 3 commits
  28. 30 Nov, 2012 1 commit
    • Ian Barber's avatar
      Serialise test_connect_delay · 75161b5c
      Ian Barber authored
      Simplify the test connect delay test script, removing the threads and
      moving to a serialised version. AFAICS this should provide the same
      test, but without the race conditions that happened with the previous
      test.
      75161b5c
  29. 25 Oct, 2012 1 commit
  30. 18 Sep, 2012 1 commit
  31. 06 Sep, 2012 1 commit
    • Arthur O'Dwyer's avatar
      Add "#undef NDEBUG" to all tests. · cf20932d
      Arthur O'Dwyer authored
      This change makes sure that even if the tests are built in a
      "release" configuration (with optimizations and NDEBUG turned on),
      the assertions won't get compiled out of the tests themselves.
      
      The C standard guarantees that the most recent inclusion of
      <assert.h> is the one that counts, so it's important that the
      "#undef NDEBUG/#include <assert.h>" come as the last thing in
      the block of header files.
      
      "testutil.hpp" includes <assert.h>, so I've left <assert.h> out
      of any test that #includes "testutil.hpp", just for the sake of
      brevity.
      cf20932d
  32. 04 Sep, 2012 1 commit
    • Ian Barber's avatar
      Fixing PGM issues · d7331b7b
      Ian Barber authored
      Hopefully fixed LIBZMQ-427 - there was a slight typo in the init_address
      refactor. The encoder refactoring had also broken pgm_sender and
      receiver, but just required updating to use the new functions.
      d7331b7b
  33. 27 Aug, 2012 1 commit
  34. 13 Jun, 2012 2 commits
  35. 12 Jun, 2012 1 commit
    • Ian Barber's avatar
      Allow blocking while connect() is completing · 409d5e8f
      Ian Barber authored
      This patch, salvaged from a trainwreck accidental merge earlier, adds a
      new sockopt, ZMQ_DELAY_ATTACH_ON_CONNECT which prevents a end point
      being available to push messages to until it has fully connected, making
      connect work more like bind. This also applies to reconnecting sockets,
      which may cause message loss of in-queue messages, so it is sensible to
      use this in conjunction with a low HWM and potentially an alternative
      acknowledgement path.
      
      Notes on most of the individual commits can be found the repository log.
      409d5e8f