51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
#include "execute_tests.h"
#include "test_cases_add_addr.h"
#include "../common/containers.h"
*/
static bool test_steps_mesh_add_address_01(void) {
char *node = "foo";
- meshlink_destroy("add_conf.1");
+ assert(meshlink_destroy("add_conf.1"));
// Create node instance
meshlink_handle_t *mesh = meshlink_open("add_conf.1", node, "chat", DEV_CLASS_STATIONARY);
// Clean up
meshlink_close(mesh);
- meshlink_destroy("add_conf.1");
+ assert(meshlink_destroy("add_conf.1"));
return true;
}
meshlink_add_address API returns false by reporting error successfully.
*/
static bool test_steps_mesh_add_address_03(void) {
- meshlink_destroy("add_conf.3");
+ assert(meshlink_destroy("add_conf.3"));
// Create node instance
meshlink_handle_t *mesh = meshlink_open("add_conf.3", "foo", "chat", DEV_CLASS_STATIONARY);
assert_int_equal(result, false);
meshlink_close(mesh);
- meshlink_destroy("add_conf.3");
+ assert(meshlink_destroy("add_conf.3"));
return true;
}