Skip to content

Commit 0e8d357

Browse files
committed
prov/efa: Rework the efa_cq unit tests
The current test_efa_cq* involves fi_send/fi_recv operations which are not relevant to the cq operation and make the test lose the value as unit tests. This patch rework the efa_cq unit tests to focus on the cq read operation and adds check for the returned cq entry. Signed-off-by: Shi Jin <[email protected]>
1 parent 7e8a17d commit 0e8d357

File tree

6 files changed

+234
-117
lines changed

6 files changed

+234
-117
lines changed

prov/efa/test/efa_unit_test_common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ void efa_unit_test_resource_construct_with_hints(struct efa_resource *resource,
8585
{
8686
int ret = 0;
8787
struct fi_av_attr av_attr = {0};
88-
struct fi_cq_attr cq_attr = {0};
88+
struct fi_cq_attr cq_attr = {
89+
.format = FI_CQ_FORMAT_DATA
90+
};
8991
struct fi_eq_attr eq_attr = {0};
9092

9193
ret = fi_getinfo(fi_version, NULL, NULL, 0ULL, hints, &resource->info);

0 commit comments

Comments
 (0)