Skip to content

Commit ce936d0

Browse files
committed
fabtests/efa: Remove rnr cq error message check
The current check for rnr cq error message string is unnecessary and fragile as we may adjust the error message. This patch removes such error message check and relies on the error code check. Signed-off-by: Shi Jin <[email protected]>
1 parent 2ddb375 commit ce936d0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

fabtests/prov/efa/src/rdm_rnr_read_cq_error.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ static int rnr_read_cq_error(void)
4343
{
4444
int total_send, expected_rnr_error;
4545
int ret, i, cnt, rnr_flag;
46-
const char *prov_errmsg;
4746

4847
expected_rnr_error = fi->rx_attr->size;
4948
rnr_flag = 0;
@@ -89,16 +88,6 @@ static int rnr_read_cq_error(void)
8988
rnr_flag = 1;
9089
printf("Got RNR error CQ entry as expected: %d, %s\n",
9190
comp_err.err, fi_strerror(comp_err.err));
92-
prov_errmsg = fi_cq_strerror(txcq, comp_err.prov_errno,
93-
comp_err.err_data,
94-
comp_err.buf,
95-
comp_err.len);
96-
if (strstr(prov_errmsg, "Destination resource not ready") == NULL) {
97-
printf("Got unexpected provider error message.\n");
98-
printf(" Expected error message to have \"Destination resource not ready\" in it\n");
99-
printf(" Got: %s\n", prov_errmsg);
100-
return -FI_EINVAL;
101-
}
10291
} else {
10392
printf("Got non-RNR error CQ entry: %d, %s\n",
10493
comp_err.err, fi_strerror(comp_err.err));

0 commit comments

Comments
 (0)