Skip to content

Commit

Permalink
Use H5VLcmp_connector_cls to compare VOL connector IDs in parallel AP…
Browse files Browse the repository at this point in the history
…I tests
  • Loading branch information
jhendersonHDF committed Oct 7, 2024
1 parent 54f8f12 commit 48aa314
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion testpar/API/H5_api_test_parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ main(int argc, char **argv)
INDEPENDENT_OP_ERROR(check_vol_register);
}
else {
int cmp = 0;

/*
* If the connector was successfully registered, check that
* the connector ID set on the default FAPL matches the ID
Expand All @@ -340,7 +342,13 @@ main(int argc, char **argv)
INDEPENDENT_OP_ERROR(check_vol_register);
}

if (default_con_id != registered_con_id) {
if (H5VLcmp_connector_cls(&cmp, default_con_id, registered_con_id) < 0) {
if (MAINPROCESS)
fprintf(stderr, "Couldn't compare VOL connector classes\n");
INDEPENDENT_OP_ERROR(check_vol_register);
}

if (0 != cmp) {
if (MAINPROCESS)
fprintf(stderr,
"VOL connector set on default FAPL didn't match specified VOL connector\n");
Expand Down

0 comments on commit 48aa314

Please sign in to comment.