]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_add_ex_addr.c
Revert "Fix warnings caused by C-only flags passed to the C++ compiler."
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_add_ex_addr.c
index bff9dd83c08c45bd6eca1d2320ba76a2be589091..894d3d3f36ce0a5243ab65f5a09079f60b46b496 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_add_ex_addr.h"
 #include "../common/containers.h"
@@ -61,7 +65,7 @@ void test_case_mesh_add_ex_address_01(void **state) {
     meshlink_add_external_address API adds the new address given to it's confbase
 */
 bool test_steps_mesh_add_ex_address_01(void) {
-       meshlink_destroy("addex_conf.1");
+       assert(meshlink_destroy("addex_conf.1"));
 
        // Create node instance
        meshlink_handle_t *mesh = meshlink_open("addex_conf.1", "foo", "test", DEV_CLASS_STATIONARY);
@@ -90,7 +94,7 @@ bool test_steps_mesh_add_ex_address_01(void) {
        assert_int_equal(found, true);
 
        meshlink_close(mesh);
-       meshlink_destroy("addex_conf.1");
+       assert(meshlink_destroy("addex_conf.1"));
        return true;
 }