51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
#include "execute_tests.h"
#include "test_cases_set_log_cb.h"
#include "../common/containers.h"
static bool test_set_log_cb_01(void);
static void test_case_set_log_cb_02(void **state);
static bool test_set_log_cb_02(void);
-static void test_case_set_log_cb_03(void **state);
-static bool test_set_log_cb_03(void);
/* log variable gives access to the log callback to know whether invoked or not */
static bool log;
/* log callback */
static void log_cb(meshlink_handle_t *mesh, meshlink_log_level_t level, const char *text) {
+ (void)mesh;
+ (void)level;
+
fprintf(stderr, "Received log text : %s\n", text);
log = true;
}
log callback should be invoked when NUT joins with relay.
*/
static bool test_set_log_cb_01(void) {
- meshlink_destroy("logconf");
+ assert(meshlink_destroy("logconf"));
// Create meshlink instance for NUT
// closing meshes and destroying confbase
meshlink_close(mesh);
- meshlink_destroy("logconf");
+ assert(meshlink_destroy("logconf"));
return true;
}