Check for the expected result instead of just any failure.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
int ret;
ret = ctdb_sock_addr_from_string(ip, &sa, with_port);
- assert(ret != 0);
+ assert(ret == EINVAL);
}
static void test_sock_addr_cmp(const char *ip1, const char *ip2,
int ret;
ret = ctdb_connection_from_string(conn_str, false, &conn);
- assert(ret != 0);
+ assert(ret == EINVAL);
}
/*
close(pipefd[0]);
ret = ctdb_connection_list_read(tmp_ctx, false, &conn_list);
- assert(ret != 0);
+ assert(ret == EINVAL);
talloc_free(tmp_ctx);
}