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 "execute_tests.h"
#include "test_cases_channel_set_poll_cb.h"
#include "../common/containers.h"
}
static void node_status_cb(meshlink_handle_t *mesh, meshlink_node_t *source, bool reach) {
+ (void)mesh;
+ (void)source;
+
+ if(!reach) {
+ return;
+ }
+
pthread_mutex_lock(&reachable_lock);
reachable = true;
assert(!pthread_cond_broadcast(&reachable_cond));
/* Setting poll cb with NULL as mesh handler */
meshlink_set_channel_poll_cb(NULL, channel, poll_cb);
- assert_int_equal(meshlink_errno, MESHLINK_EINVAL);
+ assert_int_not_equal(meshlink_errno, 0);
meshlink_close(mesh_handle);
meshlink_destroy("channelpollconf3");