Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use H5VLcmp_connector_cls to compare VOL connector IDs in parallel API tests #4936

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading