with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
#include <stdlib.h>
#include <stdarg.h>
#include <setjmp.h>
netns_create_topology(test_channel_disconnection_state);
fprintf(stderr, "\nCreated topology\n");
- meshlink_destroy("nut");
- meshlink_destroy("peer");
- meshlink_destroy("relay");
+ assert(meshlink_destroy("nut"));
+ assert(meshlink_destroy("peer"));
+ assert(meshlink_destroy("relay"));
channel_discon_case_ping = false;
channel_discon_network_failure_01 = false;
channel_discon_network_failure_02 = false;
static int teardown_test(void **state) {
(void)state;
- meshlink_destroy("nut");
- meshlink_destroy("peer");
- meshlink_destroy("relay");
+ assert(meshlink_destroy("nut"));
+ assert(meshlink_destroy("peer"));
+ assert(meshlink_destroy("relay"));
netns_destroy_topology(test_channel_disconnection_state);
return EXIT_SUCCESS;