• 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
Name
Last commit
Last update
..
Makefile.am Loading commit data...
test_connect_delay.cpp Loading commit data...
test_connect_resolve.cpp Loading commit data...
test_hwm.cpp Loading commit data...
test_invalid_rep.cpp Loading commit data...
test_last_endpoint.cpp Loading commit data...
test_monitor.cpp Loading commit data...
test_msg_flags.cpp Loading commit data...
test_pair_inproc.cpp Loading commit data...
test_pair_ipc.cpp Loading commit data...
test_pair_tcp.cpp Loading commit data...
test_reqrep_device.cpp Loading commit data...
test_reqrep_inproc.cpp Loading commit data...
test_reqrep_ipc.cpp Loading commit data...
test_reqrep_tcp.cpp Loading commit data...
test_router_behavior.cpp Loading commit data...
test_shutdown_stress.cpp Loading commit data...
test_sub_forward.cpp Loading commit data...
test_term_endpoint.cpp Loading commit data...
test_timeo.cpp Loading commit data...
testutil.hpp Loading commit data...