Skip to content

Commit

Permalink
prov/cxi: Correct checking of MR test rc
Browse files Browse the repository at this point in the history
For invalid_client_rkey, -FI_EKEYREJECTED will be returned if
FI_MR_PROV_KEY is not being used.

Signed-off-by: Ian Ziemba <[email protected]>
  • Loading branch information
iziemba committed Nov 14, 2024
1 parent 8345021 commit d678ba3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prov/cxi/test/mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ Test(mr, invalid_client_rkey)
attr.requested_key = ~1;

ret = fi_mr_regattr(cxit_domain, &attr, 0, &mr);
cr_assert_eq(ret, -FI_EKEYREJECTED, "fi_mr_regattr failed: %d", ret);
if ((cxit_fi->domain_attr->mr_mode & FI_MR_PROV_KEY) != FI_MR_PROV_KEY)
cr_assert_eq(ret, -FI_EKEYREJECTED, "fi_mr_regattr failed: %d", ret);
}

Test(mr, std_mrs, .timeout = 600, .disabled = true)
Expand Down

0 comments on commit d678ba3

Please sign in to comment.