From 08f8c6b2fef17f6fba54d14b4d70a5be085c137b Mon Sep 17 00:00:00 2001 From: Jordan Henderson Date: Fri, 4 Oct 2024 12:49:44 -0500 Subject: [PATCH] Use H5VLcmp_connector_cls to compare VOL connector IDs in API tests --- test/API/H5_api_test.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/API/H5_api_test.c b/test/API/H5_api_test.c index df489a3c69d..70b68a0bde2 100644 --- a/test/API/H5_api_test.c +++ b/test/API/H5_api_test.c @@ -214,6 +214,8 @@ main(int argc, char **argv) goto done; } else { + int cmp = 0; + /* * If the connector was successfully registered, check that * the connector ID set on the default FAPL matches the ID @@ -231,7 +233,13 @@ main(int argc, char **argv) goto done; } - if (default_con_id != registered_con_id) { + if (H5VLcmp_connector_cls(&cmp, default_con_id, registered_con_id) < 0) { + fprintf(stderr, "Couldn't compare VOL connector classes\n"); + err_occurred = true; + goto done; + } + + if (0 != cmp) { fprintf(stderr, "VOL connector set on default FAPL didn't match specified VOL connector\n"); err_occurred = true; goto done;