mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
f718d2bead
Both memcmp and strcmp return zero on equal, nonzero on nonequal; so all of these tests were backwards. The original committer fixed the failure by comparing 22 bytes instead of the correct 21, so that the assertions would trigger only if the 22nd byte happened to match exactly --- which was rare. The correct fix is to compare the right number of bytes with the right sense. (I think all of the ".addr" fields are null-terminated, in which case it's more appropriate to use strcmp throughout.) |
||
---|---|---|
.. | ||
Makefile.am | ||
test_connect_delay.cpp | ||
test_connect_resolve.cpp | ||
test_hwm.cpp | ||
test_invalid_rep.cpp | ||
test_last_endpoint.cpp | ||
test_monitor.cpp | ||
test_msg_flags.cpp | ||
test_pair_inproc.cpp | ||
test_pair_ipc.cpp | ||
test_pair_tcp.cpp | ||
test_reqrep_device.cpp | ||
test_reqrep_inproc.cpp | ||
test_reqrep_ipc.cpp | ||
test_reqrep_tcp.cpp | ||
test_router_behavior.cpp | ||
test_shutdown_stress.cpp | ||
test_sub_forward.cpp | ||
test_term_endpoint.cpp | ||
test_timeo.cpp | ||
testutil.hpp |