mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
Use H5VLcmp_connector_cls to compare VOL connector IDs in parallel API tests (#4936)
This commit is contained in:
parent
302ba0a7f7
commit
ab913d7ab5
@ -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
|
||||
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user