Skip to content

Commit

Permalink
prov/efa: Add missing mock for wc_is_unsolicited in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Jessie Yang <jiaxiyan@amazon.com>
  • Loading branch information
jiaxiyan authored and shijin-aws committed Jan 8, 2025
1 parent cefc67d commit d4ee2cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions prov/efa/test/efa_unit_test_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,12 @@ static void test_efa_cq_read(struct efa_resource *resource, fi_addr_t *addr,
will_return_maybe(efa_mock_ibv_read_src_qp_return_mock, raw_addr.qpn);
will_return_maybe(efa_mock_ibv_read_wc_flags_return_mock, 0);
#endif
#if HAVE_CAPS_UNSOLICITED_WRITE_RECV
if (efa_use_unsolicited_write_recv()) {
efadv_cq_from_ibv_cq_ex(ibv_cqx)->wc_is_unsolicited = &efa_mock_efadv_wc_is_unsolicited;
will_return_maybe(efa_mock_efadv_wc_is_unsolicited, false);
}
#endif
}

/**
Expand Down

0 comments on commit d4ee2cf

Please sign in to comment.