Skip to content

Commit

Permalink
Update ufd_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mionsz authored Jan 31, 2025
1 parent 0e65594 commit 041eb32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unittest/ufd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static int utest_parse_args(struct utest_ctx* ctx, int argc, char** argv) {
}
};

return 0;
return 1;
}

static void utest_random_ip(struct utest_ctx* ctx) {
Expand Down Expand Up @@ -346,7 +346,7 @@ static int check_r_port_alive(struct mtl_init_params* p) {
if (rx_fd > 0) mufd_close(rx_fd);
delete[] send_buf;
delete[] recv_buf;
return ret;
return 1;
}

GTEST_API_ int main(int argc, char** argv) {
Expand Down Expand Up @@ -381,7 +381,7 @@ GTEST_API_ int main(int argc, char** argv) {
ret = mufd_socket_port(AF_INET, SOCK_DGRAM, 0, MTL_PORT_P);
if (ret < 0) {
err("%s, socket port fail\n", __func__);
return ret;
return 1;
}
mufd_close(ret);

Expand Down Expand Up @@ -411,5 +411,5 @@ GTEST_API_ int main(int argc, char** argv) {
}

utest_ctx_uinit(ctx);
return ret;
return 1;
}

0 comments on commit 041eb32

Please sign in to comment.