Skip to content

Commit

Permalink
Fix the test app
Browse files Browse the repository at this point in the history
Signed-off-by: Dmytro Podgornyi <[email protected]>
  • Loading branch information
pasis committed Aug 22, 2024
1 parent 18e9572 commit 5ffa993
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/extra_api/xlio_socket_api_listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* SOFTWARE.
*/

/* g++ -I./install/include -L./install/lib -L../dpcp/install/lib -o test xlio_socket_api.c -lxlio -lm -lnl-3 -ldpcp -libverbs -lmlx5 -lrdmacm -lnl-route-3 -g3 */
/* g++ -I./install/include -L./install/lib -L../dpcp/install/lib -o test xlio_socket_api_listen.c -lxlio -lm -lnl-3 -ldpcp -libverbs -lmlx5 -lrdmacm -lnl-route-3 -g3 */
/* LD_LIBRARY_PATH=./install/lib:../dpcp/install/lib ./test */
/* Use `nc -l 8080` on the remote side */

Expand Down Expand Up @@ -276,8 +276,10 @@ int main(int argc, char **argv)

rc = xlio_socket_destroy(sock);
assert(rc == 0);


for (unsigned i = 0; i < sock_nr; ++i) {
rc = xlio_socket_destroy(sock_arr[i]);
assert(rc == 0);
}
while (!terminated || destroyed_sock_nr < sock_nr) {
xlio_poll_group_poll(group);
}
Expand Down

0 comments on commit 5ffa993

Please sign in to comment.