diff options
Diffstat (limited to 'test/API')
-rw-r--r-- | test/API/H5_api_async_test.c | 92 | ||||
-rw-r--r-- | test/API/H5_api_attribute_test.c | 2262 | ||||
-rw-r--r-- | test/API/H5_api_dataset_test.c | 1460 | ||||
-rw-r--r-- | test/API/H5_api_datatype_test.c | 450 | ||||
-rw-r--r-- | test/API/H5_api_file_test.c | 389 | ||||
-rw-r--r-- | test/API/H5_api_group_test.c | 372 | ||||
-rw-r--r-- | test/API/H5_api_link_test.c | 6982 | ||||
-rw-r--r-- | test/API/H5_api_misc_test.c | 150 | ||||
-rw-r--r-- | test/API/H5_api_object_test.c | 1346 | ||||
-rw-r--r-- | test/API/H5_api_test.c | 60 | ||||
-rw-r--r-- | test/API/H5_api_test_util.c | 104 | ||||
-rw-r--r-- | test/API/tarray.c | 4 | ||||
-rw-r--r-- | test/API/tattr.c | 18 | ||||
-rw-r--r-- | test/API/testhdf5.c | 100 | ||||
-rw-r--r-- | test/API/testhdf5.h | 6 | ||||
-rw-r--r-- | test/API/tfile.c | 2 | ||||
-rw-r--r-- | test/API/tgenprop.c | 24 | ||||
-rw-r--r-- | test/API/th5s.c | 38 | ||||
-rw-r--r-- | test/API/titerate.c | 14 | ||||
-rw-r--r-- | test/API/tmisc.c | 20 | ||||
-rw-r--r-- | test/API/trefer.c | 24 | ||||
-rw-r--r-- | test/API/tselect.c | 60 | ||||
-rw-r--r-- | test/API/ttime.c | 4 | ||||
-rw-r--r-- | test/API/tunicode.c | 8 |
24 files changed, 6892 insertions, 7097 deletions
diff --git a/test/API/H5_api_async_test.c b/test/API/H5_api_async_test.c index 3d676c0..4afea50 100644 --- a/test/API/H5_api_async_test.c +++ b/test/API/H5_api_async_test.c @@ -73,8 +73,7 @@ test_one_dataset_io(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf( - " API functions for basic file, dataset, or flush aren't supported with this connector\n"); + printf(" API functions for basic file, dataset, or flush aren't supported with this connector\n"); return 0; } @@ -135,7 +134,7 @@ test_one_dataset_io(void) for (j = 0; j < 10; j++) if (wbuf[i][j] != rbuf[i][j]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(single_dset_eswait); } /* end if */ @@ -177,7 +176,7 @@ test_one_dataset_io(void) for (j = 0; j < 10; j++) if (wbuf[i][j] != rbuf[i][j]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(single_dset_dclose); } /* end if */ @@ -222,7 +221,7 @@ test_one_dataset_io(void) for (j = 0; j < 10; j++) if (wbuf[i][j] != rbuf[i][j]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(single_dset_dflush); } /* end if */ @@ -276,7 +275,7 @@ test_one_dataset_io(void) for (j = 0; j < 10; j++) if (wbuf[i][j] != rbuf[i][j]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(single_dset_fclose); } /* end if */ @@ -341,8 +340,7 @@ test_multi_dataset_io(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf( - " API functions for basic file, dataset, or flush aren't supported with this connector\n"); + printf(" API functions for basic file, dataset, or flush aren't supported with this connector\n"); return 0; } @@ -432,7 +430,7 @@ test_multi_dataset_io(void) for (k = 0; k < 10; k++) if (wbuf[i][j][k] != rbuf[i][j][k]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(multi_dset_open); } /* end if */ @@ -526,7 +524,7 @@ test_multi_dataset_io(void) for (k = 0; k < 10; k++) if (wbuf[i][j][k] != rbuf[i][j][k]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(multi_dset_close); } /* end if */ @@ -596,8 +594,7 @@ test_multi_file_dataset_io(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf( - " API functions for basic file, dataset, or flush aren't supported with this connector\n"); + printf(" API functions for basic file, dataset, or flush aren't supported with this connector\n"); return 0; } @@ -673,7 +670,7 @@ test_multi_file_dataset_io(void) for (k = 0; k < 10; k++) if (wbuf[i][j][k] != rbuf[i][j][k]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(multi_file_dset_open); } /* end if */ @@ -744,7 +741,7 @@ test_multi_file_dataset_io(void) for (k = 0; k < 10; k++) if (wbuf[i][j][k] != rbuf[i][j][k]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(multi_file_dset_dclose); } /* end if */ @@ -838,7 +835,7 @@ test_multi_file_dataset_io(void) for (k = 0; k < 10; k++) if (wbuf[i][j][k] != rbuf[i][j][k]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(multi_file_dset_fclose); } /* end if */ @@ -907,8 +904,7 @@ test_multi_file_grp_dset_io(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -1028,7 +1024,7 @@ test_multi_file_grp_dset_io(void) for (k = 0; k < 10; k++) if (wbuf[i][j][k] != rbuf[i][j][k]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(multi_file_grp_dset_no_kick); } /* end if */ @@ -1149,7 +1145,7 @@ test_multi_file_grp_dset_io(void) for (k = 0; k < 10; k++) if (wbuf[i][j][k] != rbuf[i][j][k]) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); PART_ERROR(multi_file_grp_dset_kick); } /* end if */ @@ -1224,8 +1220,8 @@ test_set_extent(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, dataset, dataset more, or flush aren't supported with " - "this connector\n"); + printf(" API functions for basic file, dataset, dataset more, or flush aren't supported with " + "this connector\n"); return 0; } @@ -1428,8 +1424,8 @@ test_attribute_exists(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't " - "supported with this connector\n"); + printf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't " + "supported with this connector\n"); return 0; } @@ -1549,8 +1545,8 @@ test_attribute_io(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't " - "supported with this connector\n"); + printf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't " + "supported with this connector\n"); return 0; } @@ -1691,7 +1687,7 @@ test_attribute_io_tconv(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, attribute, or flush aren't supported with this connector\n"); return 0; } @@ -1837,7 +1833,7 @@ test_attribute_io_compound(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, attribute, or flush aren't supported with this connector\n"); return 0; } @@ -2143,8 +2139,8 @@ test_group(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or group more aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, or group more aren't supported " + "with this connector\n"); return 0; } @@ -2314,8 +2310,8 @@ test_link(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) || !(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" API functions for basic file, link, hard link, soft link, flush, or creation order " - "aren't supported with this connector\n"); + printf(" API functions for basic file, link, hard link, soft link, flush, or creation order " + "aren't supported with this connector\n"); return 0; } @@ -2505,8 +2501,8 @@ test_ocopy_orefresh(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, object more, flush, or refresh aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, dataset, object more, flush, or refresh aren't " + "supported with this connector\n"); return 0; } @@ -2615,7 +2611,7 @@ test_file_reopen(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file or file more aren't supported with this connector\n"); + printf(" API functions for basic file or file more aren't supported with this connector\n"); return 0; } @@ -2691,16 +2687,16 @@ H5_api_async_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Async Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Async Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ASYNC)) { SKIPPED(); - HDprintf(" Async APIs aren't supported with this connector\n"); + printf(" Async APIs aren't supported with this connector\n"); return 0; } @@ -2708,9 +2704,9 @@ H5_api_async_test(void) nerrors += (*async_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); - HDprintf("Cleaning up testing files\n"); + printf("Cleaning up testing files\n"); cleanup_files(); return nerrors; @@ -2721,13 +2717,13 @@ H5_api_async_test(void) int H5_api_async_test(void) { - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Async Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Async Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); - HDprintf("SKIPPED due to no async support in HDF5 library\n"); + printf("SKIPPED due to no async support in HDF5 library\n"); return 0; } diff --git a/test/API/H5_api_attribute_test.c b/test/API/H5_api_attribute_test.c index f1409a4..84ddbb0 100644 --- a/test/API/H5_api_attribute_test.c +++ b/test/API/H5_api_attribute_test.c @@ -126,7 +126,7 @@ test_create_attribute_on_root(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or attribute aren't supported with this connector\n"); + printf(" API functions for basic file or attribute aren't supported with this connector\n"); return 0; } @@ -134,7 +134,7 @@ test_create_attribute_on_root(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -157,22 +157,22 @@ test_create_attribute_on_root(void) if ((attr_id = H5Acreate2(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME, attr_dtype1, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' using H5Acreate\n", - ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME); + printf(" couldn't create attribute '%s' using H5Acreate\n", + ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME); PART_ERROR(H5Acreate2); } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME); PART_ERROR(H5Acreate2); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME); PART_ERROR(H5Acreate2); } @@ -187,21 +187,21 @@ test_create_attribute_on_root(void) if ((attr_id2 = H5Acreate_by_name(file_id, "/", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2, attr_dtype2, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute on root group using H5Acreate_by_name\n"); + printf(" couldn't create attribute on root group using H5Acreate_by_name\n"); PART_ERROR(H5Acreate_by_name); } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2); PART_ERROR(H5Acreate_by_name); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2); PART_ERROR(H5Acreate_by_name); } @@ -269,8 +269,8 @@ test_create_attribute_on_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or attribute aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, dataset, or attribute aren't supported with this " + "connector\n"); return 0; } @@ -278,20 +278,20 @@ test_create_attribute_on_dataset(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME); goto error; } @@ -312,7 +312,7 @@ test_create_attribute_on_dataset(void) if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_CREATE_ON_DATASET_DSET_NAME, dset_dtype, dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); goto error; } @@ -327,21 +327,21 @@ test_create_attribute_on_dataset(void) if ((attr_id = H5Acreate2(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME, attr_dtype1, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); PART_ERROR(H5Acreate_on_dataset); } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME); PART_ERROR(H5Acreate_on_dataset); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME); PART_ERROR(H5Acreate_on_dataset); } @@ -357,21 +357,21 @@ test_create_attribute_on_dataset(void) ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2, attr_dtype2, attr_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute on dataset by name\n"); + printf(" couldn't create attribute on dataset by name\n"); PART_ERROR(H5Acreate_by_name_on_dataset); } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2); PART_ERROR(H5Acreate_by_name_on_dataset); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2); PART_ERROR(H5Acreate_by_name_on_dataset); } @@ -453,8 +453,8 @@ test_create_attribute_on_datatype(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, stored datatype, or attribute aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, stored datatype, or attribute aren't supported " + "with this connector\n"); return 0; } @@ -462,33 +462,33 @@ test_create_attribute_on_datatype(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, ATTRIBUTE_CREATE_ON_DATATYPE_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype\n"); + printf(" couldn't commit datatype\n"); goto error; } @@ -511,19 +511,19 @@ test_create_attribute_on_datatype(void) if ((attr_id = H5Acreate2(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME, attr_dtype1, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute on datatype using H5Acreate\n"); + printf(" couldn't create attribute on datatype using H5Acreate\n"); PART_ERROR(H5Acreate_on_datatype); } if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); PART_ERROR(H5Acreate_on_datatype); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); PART_ERROR(H5Acreate_on_datatype); } @@ -539,20 +539,20 @@ test_create_attribute_on_datatype(void) ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2, attr_dtype2, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute on datatype using H5Acreate_by_name\n"); + printf(" couldn't create attribute on datatype using H5Acreate_by_name\n"); PART_ERROR(H5Acreate_by_name_on_datatype); } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); PART_ERROR(H5Acreate_by_name_on_datatype); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); PART_ERROR(H5Acreate_by_name_on_datatype); } @@ -625,27 +625,27 @@ test_create_attribute_with_null_space(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup\n"); + printf(" couldn't create container subgroup\n"); goto error; } @@ -658,20 +658,20 @@ test_create_attribute_with_null_space(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -680,7 +680,7 @@ test_create_attribute_with_null_space(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute\n"); + printf(" couldn't open attribute\n"); goto error; } @@ -736,27 +736,27 @@ test_create_attribute_with_scalar_space(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup\n"); + printf(" couldn't create container subgroup\n"); goto error; } @@ -769,20 +769,20 @@ test_create_attribute_with_scalar_space(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -791,7 +791,7 @@ test_create_attribute_with_scalar_space(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute\n"); + printf(" couldn't open attribute\n"); goto error; } @@ -849,28 +849,27 @@ test_create_attribute_with_space_in_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME); goto error; } @@ -884,20 +883,20 @@ test_create_attribute_with_space_in_name(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -953,7 +952,7 @@ test_create_attribute_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -962,20 +961,20 @@ test_create_attribute_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group\n"); + printf(" couldn't create container group\n"); goto error; } @@ -1002,7 +1001,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate with an invalid loc_id!\n"); + printf(" created attribute using H5Acreate with an invalid loc_id!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_invalid_loc_id); } @@ -1023,7 +1022,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate with a NULL name!\n"); + printf(" created attribute using H5Acreate with a NULL name!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_invalid_attr_name); } @@ -1036,7 +1035,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate with an invalid name of ''!\n"); + printf(" created attribute using H5Acreate with an invalid name of ''!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_invalid_attr_name); } @@ -1058,7 +1057,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate with an invalid datatype!\n"); + printf(" created attribute using H5Acreate with an invalid datatype!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_invalid_datatype); } @@ -1080,7 +1079,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate with an invalid dataspace!\n"); + printf(" created attribute using H5Acreate with an invalid dataspace!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_invalid_dataspace); } @@ -1102,7 +1101,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate with an invalid ACPL!\n"); + printf(" created attribute using H5Acreate with an invalid ACPL!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_invalid_acpl); } @@ -1124,7 +1123,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate with an invalid AAPL!\n"); + printf(" created attribute using H5Acreate with an invalid AAPL!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_invalid_aapl); } @@ -1147,7 +1146,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n"); + printf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_loc_id); } @@ -1169,7 +1168,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with a NULL object name!\n"); + printf(" created attribute using H5Acreate_by_name with a NULL object name!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_obj_name); } @@ -1183,8 +1182,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf( - " created attribute using H5Acreate_by_name with an invalid object name of ''!\n"); + printf(" created attribute using H5Acreate_by_name with an invalid object name of ''!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_obj_name); } @@ -1206,7 +1204,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n"); + printf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_attr_name); } @@ -1220,7 +1218,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf( + printf( " created attribute using H5Acreate_by_name with an invalid attribute name of ''!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_attr_name); @@ -1244,7 +1242,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with an invalid datatype!\n"); + printf(" created attribute using H5Acreate_by_name with an invalid datatype!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_datatype); } @@ -1267,7 +1265,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n"); + printf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_dataspace); } @@ -1290,7 +1288,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n"); + printf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_acpl); } @@ -1313,7 +1311,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n"); + printf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_aapl); } @@ -1336,7 +1334,7 @@ test_create_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n"); + printf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n"); H5Aclose(attr_id); PART_ERROR(H5Acreate_by_name_invalid_lapl); } @@ -1398,8 +1396,8 @@ test_open_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or attribute aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, or attribute aren't supported " + "with this connector\n"); return 0; } @@ -1407,26 +1405,26 @@ test_open_attribute(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for attribute creation order tracking\n"); + printf(" couldn't create GCPL for attribute creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order tracking\n"); + printf(" couldn't set attribute creation order tracking\n"); goto error; } } @@ -1434,7 +1432,7 @@ test_open_attribute(void) if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME); goto error; } @@ -1448,7 +1446,7 @@ test_open_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, attr_type, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); goto error; } @@ -1458,7 +1456,7 @@ test_open_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME2, attr_type, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); goto error; } @@ -1468,7 +1466,7 @@ test_open_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME3, attr_type, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); goto error; } @@ -1485,13 +1483,13 @@ test_open_attribute(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen); } @@ -1506,14 +1504,14 @@ test_open_attribute(void) if ((attr_id = H5Aopen_by_name(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' using H5Aopen_by_name\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't open attribute '%s' using H5Aopen_by_name\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen_by_name); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen_by_name); } @@ -1527,52 +1525,52 @@ test_open_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking is not supported with this VOL connector\n"); + printf(" creation order tracking is not supported with this VOL connector\n"); PART_EMPTY(H5Aopen_by_idx_crt_order_increasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " - "order in increasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " + "order in increasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0); PART_ERROR(H5Aopen_by_idx_crt_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen_by_idx_crt_order_increasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " - "order in increasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " + "order in increasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); PART_ERROR(H5Aopen_by_idx_crt_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); PART_ERROR(H5Aopen_by_idx_crt_order_increasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " - "order in increasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " + "order in increasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2); PART_ERROR(H5Aopen_by_idx_crt_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); PART_ERROR(H5Aopen_by_idx_crt_order_increasing); } @@ -1586,52 +1584,52 @@ test_open_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking is not supported with this VOL connector\n"); + printf(" creation order tracking is not supported with this VOL connector\n"); PART_EMPTY(H5Aopen_by_idx_crt_order_decreasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " - "order in decreasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " + "order in decreasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2); PART_ERROR(H5Aopen_by_idx_crt_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen_by_idx_crt_order_decreasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " - "order in decreasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " + "order in decreasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); PART_ERROR(H5Aopen_by_idx_crt_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); PART_ERROR(H5Aopen_by_idx_crt_order_decreasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " - "order in decreasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation " + "order in decreasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0); PART_ERROR(H5Aopen_by_idx_crt_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); PART_ERROR(H5Aopen_by_idx_crt_order_decreasing); } @@ -1646,45 +1644,45 @@ test_open_attribute(void) if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical " - "order in increasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical " + "order in increasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0); PART_ERROR(H5Aopen_by_idx_name_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen_by_idx_name_order_increasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical " - "order in increasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical " + "order in increasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); PART_ERROR(H5Aopen_by_idx_name_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); PART_ERROR(H5Aopen_by_idx_name_order_increasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical " - "order in increasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical " + "order in increasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2); PART_ERROR(H5Aopen_by_idx_name_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); PART_ERROR(H5Aopen_by_idx_name_order_increasing); } @@ -1699,45 +1697,45 @@ test_open_attribute(void) if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by " - "alphabetical order in decreasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by " + "alphabetical order in decreasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2); PART_ERROR(H5Aopen_by_idx_name_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME); PART_ERROR(H5Aopen_by_idx_name_order_decreasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by " - "alphabetical order in decreasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by " + "alphabetical order in decreasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1); PART_ERROR(H5Aopen_by_idx_name_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2); PART_ERROR(H5Aopen_by_idx_name_order_decreasing); } if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by " - "alphabetical order in decreasing order\n", - ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0); + printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by " + "alphabetical order in decreasing order\n", + ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0); PART_ERROR(H5Aopen_by_idx_name_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3); PART_ERROR(H5Aopen_by_idx_name_order_decreasing); } @@ -1801,7 +1799,7 @@ test_open_attribute_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -1810,20 +1808,20 @@ test_open_attribute_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -1837,7 +1835,7 @@ test_open_attribute_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME, attr_type, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); goto error; } @@ -1860,8 +1858,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_invalid_loc_id); } @@ -1882,8 +1880,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_invalid_attr_name); } @@ -1896,8 +1894,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_invalid_attr_name); } @@ -1918,8 +1916,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_invalid_aapl); } @@ -1942,8 +1940,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_name_invalid_loc_id); } @@ -1965,8 +1963,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_name_invalid_obj_name); } @@ -1980,9 +1978,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf( - " opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_name_invalid_obj_name); } @@ -2004,8 +2001,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_name_invalid_attr_name); } @@ -2019,7 +2016,7 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf( + printf( " opened attribute '%s' using H5Aopen_by_name with an invalid attribute name of ''!\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); @@ -2044,8 +2041,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_name_invalid_aapl); } @@ -2068,8 +2065,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_name_invalid_lapl); } @@ -2091,8 +2088,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_loc_id); } @@ -2114,8 +2111,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_obj_name); } @@ -2129,9 +2126,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf( - " opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_obj_name); } @@ -2153,9 +2149,9 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type " - "H5_INDEX_UNKNOWN!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type " + "H5_INDEX_UNKNOWN!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_index_type); } @@ -2169,9 +2165,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf( - " opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_index_type); } @@ -2193,9 +2188,9 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order " - "H5_ITER_UNKNOWN!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order " + "H5_ITER_UNKNOWN!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_iter_order); } @@ -2209,9 +2204,9 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order " - "H5_ITER_N!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order " + "H5_ITER_N!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_iter_order); } @@ -2233,8 +2228,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_aapl); } @@ -2256,8 +2251,8 @@ test_open_attribute_invalid_params(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n", - ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); + printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n", + ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME); H5Aclose(attr_id); PART_ERROR(H5Aopen_by_idx_invalid_lapl); } @@ -2323,27 +2318,27 @@ test_write_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or file flush aren't supported with " - "this connector\n"); + printf(" API functions for basic file, group, attribute, or file flush aren't supported with " + "this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME); goto error; } @@ -2353,20 +2348,20 @@ test_write_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -2382,14 +2377,14 @@ test_write_attribute(void) if (H5Awrite(attr_id, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to attribute\n"); + printf(" couldn't write to attribute\n"); goto error; } /* Make sure that the attribute can be flushed to the file */ if (H5Fflush(file_id, H5F_SCOPE_GLOBAL) < 0) { H5_FAILED(); - HDprintf(" couldn't flush the attribute\n"); + printf(" couldn't flush the attribute\n"); goto error; } @@ -2453,7 +2448,7 @@ test_write_attribute_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -2462,21 +2457,20 @@ test_write_attribute_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -2488,20 +2482,20 @@ test_write_attribute_invalid_params(void) ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -2531,7 +2525,7 @@ test_write_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to attribute using an invalid attr_id!\n"); + printf(" wrote to attribute using an invalid attr_id!\n"); PART_ERROR(H5Awrite_invalid_attr_id); } @@ -2551,7 +2545,7 @@ test_write_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to attribute using an invalid datatype!\n"); + printf(" wrote to attribute using an invalid datatype!\n"); PART_ERROR(H5Awrite_invalid_datatype); } @@ -2571,7 +2565,7 @@ test_write_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to attribute using an invalid data buffer!\n"); + printf(" wrote to attribute using an invalid data buffer!\n"); PART_ERROR(H5Awrite_invalid_data_buf); } @@ -2644,27 +2638,27 @@ test_read_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME); goto error; } @@ -2674,20 +2668,20 @@ test_read_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, ATTRIBUTE_READ_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -2705,7 +2699,7 @@ test_read_attribute(void) if (H5Awrite(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to attribute\n"); + printf(" couldn't write to attribute\n"); goto error; } @@ -2719,20 +2713,20 @@ test_read_attribute(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute\n"); + printf(" couldn't open attribute\n"); goto error; } if (H5Aread(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from attribute\n"); + printf(" couldn't read from attribute\n"); goto error; } for (i = 0; i < data_size / ATTRIBUTE_READ_TEST_ATTR_DTYPE_SIZE; i++) { if (((int *)read_buf)[i] != (int)i) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); goto error; } } @@ -2800,7 +2794,7 @@ test_read_attribute_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -2809,20 +2803,20 @@ test_read_attribute_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -2834,20 +2828,20 @@ test_read_attribute_invalid_params(void) ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -2865,7 +2859,7 @@ test_read_attribute_invalid_params(void) if (H5Awrite(attr_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to attribute\n"); + printf(" couldn't write to attribute\n"); goto error; } @@ -2879,7 +2873,7 @@ test_read_attribute_invalid_params(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute\n"); + printf(" couldn't open attribute\n"); goto error; } @@ -2899,7 +2893,7 @@ test_read_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read attribute with an invalid attr_id!\n"); + printf(" read attribute with an invalid attr_id!\n"); PART_ERROR(H5Aread_invalid_attr_id); } @@ -2919,7 +2913,7 @@ test_read_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read attribute with an invalid datatype!\n"); + printf(" read attribute with an invalid datatype!\n"); PART_ERROR(H5Aread_invalid_datatype); } @@ -2939,7 +2933,7 @@ test_read_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read attribute with an invalid read buffer!\n"); + printf(" read attribute with an invalid read buffer!\n"); PART_ERROR(H5Aread_invalid_read_buf); } @@ -3011,27 +3005,27 @@ test_read_empty_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME); goto error; } @@ -3041,20 +3035,20 @@ test_read_empty_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, ATTRIBUTE_READ_EMPTY_DTYPE, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -3063,7 +3057,7 @@ test_read_empty_attribute(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute\n"); + printf(" couldn't open attribute\n"); goto error; } @@ -3076,7 +3070,7 @@ test_read_empty_attribute(void) if (H5Aread(attr_id, ATTRIBUTE_READ_EMPTY_DTYPE, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from attribute\n"); + printf(" couldn't read from attribute\n"); goto error; } @@ -3130,13 +3124,13 @@ test_close_attribute_invalid_id(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or attribute aren't supported with this connector\n"); + printf(" API functions for basic file or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -3148,7 +3142,7 @@ test_close_attribute_invalid_id(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aclose succeeded with an invalid attribute ID!\n"); + printf(" H5Aclose succeeded with an invalid attribute ID!\n"); goto error; } @@ -3195,8 +3189,8 @@ test_get_attribute_space_and_type(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or attribute aren't supported with " - "this connector\n"); + printf(" API functions for basic file, group, attribute, or attribute aren't supported with " + "this connector\n"); return 0; } @@ -3204,20 +3198,20 @@ test_get_attribute_space_and_type(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME); goto error; } @@ -3231,20 +3225,20 @@ test_get_attribute_space_and_type(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -3259,7 +3253,7 @@ test_get_attribute_space_and_type(void) if ((tmp_type_id = H5Aget_type(attr_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve attribute's datatype\n"); + printf(" couldn't retrieve attribute's datatype\n"); PART_ERROR(H5Aget_type); } @@ -3268,13 +3262,13 @@ test_get_attribute_space_and_type(void) if (types_equal < 0) { H5_FAILED(); - HDprintf(" datatype was invalid\n"); + printf(" datatype was invalid\n"); PART_ERROR(H5Aget_type); } if (!types_equal) { H5_FAILED(); - HDprintf(" attribute's datatype did not match\n"); + printf(" attribute's datatype did not match\n"); PART_ERROR(H5Aget_type); } } @@ -3289,7 +3283,7 @@ test_get_attribute_space_and_type(void) if ((tmp_space_id = H5Aget_space(attr_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve attribute's dataspace\n"); + printf(" couldn't retrieve attribute's dataspace\n"); PART_ERROR(H5Aget_space); } @@ -3298,14 +3292,14 @@ test_get_attribute_space_and_type(void) if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dimensions of dataspace\n"); + printf(" couldn't retrieve dimensions of dataspace\n"); PART_ERROR(H5Aget_space); } for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) if (space_dims[i] != attr_dims[i]) { H5_FAILED(); - HDprintf(" attribute's dataspace dims didn't match\n"); + printf(" attribute's dataspace dims didn't match\n"); PART_ERROR(H5Aget_space); } } @@ -3348,13 +3342,13 @@ test_get_attribute_space_and_type(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME); + printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME); PART_ERROR(H5Aget_type_reopened); } if ((tmp_type_id = H5Aget_type(attr_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve attribute's datatype\n"); + printf(" couldn't retrieve attribute's datatype\n"); PART_ERROR(H5Aget_type_reopened); } @@ -3363,13 +3357,13 @@ test_get_attribute_space_and_type(void) if (types_equal < 0) { H5_FAILED(); - HDprintf(" datatype was invalid\n"); + printf(" datatype was invalid\n"); PART_ERROR(H5Aget_type_reopened); } if (!types_equal) { H5_FAILED(); - HDprintf(" attribute's datatype did not match\n"); + printf(" attribute's datatype did not match\n"); PART_ERROR(H5Aget_type_reopened); } } @@ -3393,13 +3387,13 @@ test_get_attribute_space_and_type(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME); + printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME); PART_ERROR(H5Aget_space_reopened); } if ((tmp_space_id = H5Aget_space(attr_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve attribute's dataspace\n"); + printf(" couldn't retrieve attribute's dataspace\n"); PART_ERROR(H5Aget_space_reopened); } @@ -3408,14 +3402,14 @@ test_get_attribute_space_and_type(void) if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dimensions of dataspace\n"); + printf(" couldn't retrieve dimensions of dataspace\n"); PART_ERROR(H5Aget_space_reopened); } for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) { if (space_dims[i] != attr_dims[i]) { H5_FAILED(); - HDprintf(" dataspace dims didn't match!\n"); + printf(" dataspace dims didn't match!\n"); PART_ERROR(H5Aget_space_reopened); } } @@ -3498,7 +3492,7 @@ test_get_attribute_space_and_type_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -3507,21 +3501,21 @@ test_get_attribute_space_and_type_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", + ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -3535,20 +3529,20 @@ test_get_attribute_space_and_type_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -3569,7 +3563,7 @@ test_get_attribute_space_and_type_invalid_params(void) if (tmp_type_id >= 0) { H5_FAILED(); - HDprintf(" retrieved copy of attribute's datatype using an invalid attr_id!\n"); + printf(" retrieved copy of attribute's datatype using an invalid attr_id!\n"); PART_ERROR(H5Aget_type_invalid_attr_id); } @@ -3589,7 +3583,7 @@ test_get_attribute_space_and_type_invalid_params(void) if (tmp_space_id >= 0) { H5_FAILED(); - HDprintf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n"); + printf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n"); PART_ERROR(H5Aget_space_invalid_attr_id); } @@ -3658,8 +3652,8 @@ test_attribute_property_lists(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or getting property list aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, attribute, or getting property list aren't " + "supported with this connector\n"); return 0; } @@ -3667,20 +3661,20 @@ test_attribute_property_lists(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group\n"); + printf(" couldn't create container sub-group\n"); goto error; } @@ -3694,27 +3688,27 @@ test_attribute_property_lists(void) if ((acpl_id1 = H5Pcreate(H5P_ATTRIBUTE_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create ACPL\n"); + printf(" couldn't create ACPL\n"); goto error; } if (H5Pset_char_encoding(acpl_id1, encoding) < 0) { H5_FAILED(); - HDprintf(" couldn't set ACPL property value\n"); + printf(" couldn't set ACPL property value\n"); goto error; } if ((attr_id1 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, attr_dtype1, space_id, acpl_id1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, attr_dtype2, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } @@ -3724,25 +3718,25 @@ test_attribute_property_lists(void) /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -3758,13 +3752,13 @@ test_attribute_property_lists(void) * does not */ if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Aget_create_plist); } if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Aget_create_plist); } @@ -3773,13 +3767,13 @@ test_attribute_property_lists(void) if (H5Pget_char_encoding(acpl_id1, &encoding) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve ACPL property value\n"); + printf(" couldn't retrieve ACPL property value\n"); PART_ERROR(H5Aget_create_plist); } if (H5T_CSET_UTF8 != encoding) { H5_FAILED(); - HDprintf(" ACPL property value was incorrect\n"); + printf(" ACPL property value was incorrect\n"); PART_ERROR(H5Aget_create_plist); } @@ -3787,13 +3781,13 @@ test_attribute_property_lists(void) if (H5Pget_char_encoding(acpl_id2, &encoding) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve ACPL property value\n"); + printf(" couldn't retrieve ACPL property value\n"); PART_ERROR(H5Aget_create_plist); } if (H5T_CSET_UTF8 == encoding) { H5_FAILED(); - HDprintf(" ACPL property value was set!\n"); + printf(" ACPL property value was set!\n"); PART_ERROR(H5Aget_create_plist); } @@ -3844,26 +3838,26 @@ test_attribute_property_lists(void) if ((attr_id1 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1); + printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1); PART_ERROR(H5Aget_create_plist_reopened); } if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2); + printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2); PART_ERROR(H5Aget_create_plist_reopened); } if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Aget_create_plist_reopened); } if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Aget_create_plist_reopened); } @@ -3945,8 +3939,8 @@ test_get_attribute_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or attribute aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, or attribute aren't supported " + "with this connector\n"); return 0; } @@ -3954,26 +3948,26 @@ test_get_attribute_name(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for attribute creation order tracking\n"); + printf(" couldn't create GCPL for attribute creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order tracking\n"); + printf(" couldn't set attribute creation order tracking\n"); goto error; } } @@ -3981,7 +3975,7 @@ test_get_attribute_name(void) if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME); goto error; } @@ -3995,7 +3989,7 @@ test_get_attribute_name(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); goto error; } @@ -4005,7 +3999,7 @@ test_get_attribute_name(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); goto error; } @@ -4015,7 +4009,7 @@ test_get_attribute_name(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); goto error; } @@ -4025,39 +4019,37 @@ test_get_attribute_name(void) /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); goto error; } @@ -4065,7 +4057,7 @@ test_get_attribute_name(void) name_buf_size = strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 2; if (NULL == (name_buf = (char *)HDmalloc((size_t)name_buf_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for storing attribute's name\n"); + printf(" couldn't allocate buffer for storing attribute's name\n"); goto error; } @@ -4079,28 +4071,28 @@ test_get_attribute_name(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); PART_ERROR(H5Aget_name); } *name_buf = '\0'; if (H5Aget_name(attr_id, (size_t)name_buf_size, name_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve attribute name\n"); + printf(" couldn't retrieve attribute name\n"); PART_ERROR(H5Aget_name); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); PART_ERROR(H5Aget_name); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); PART_ERROR(H5Aget_name); } @@ -4121,7 +4113,7 @@ test_get_attribute_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aget_name_by_idx_crt_order_increasing); } @@ -4129,17 +4121,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "creation order in increasing order\n", - 0); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "creation order in increasing order\n", + 0); PART_ERROR(H5Aget_name_by_idx_crt_order_increasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); PART_ERROR(H5Aget_name_by_idx_crt_order_increasing); } @@ -4147,17 +4139,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "creation order in increasing order\n", - 1); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "creation order in increasing order\n", + 1); PART_ERROR(H5Aget_name_by_idx_crt_order_increasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); PART_ERROR(H5Aget_name_by_idx_crt_order_increasing); } @@ -4165,17 +4157,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "creation order in increasing order\n", - 2); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "creation order in increasing order\n", + 2); PART_ERROR(H5Aget_name_by_idx_crt_order_increasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); PART_ERROR(H5Aget_name_by_idx_crt_order_increasing); } @@ -4189,7 +4181,7 @@ test_get_attribute_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aget_name_by_idx_crt_order_decreasing); } @@ -4197,17 +4189,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "creation order in decreasing order\n", - 2); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "creation order in decreasing order\n", + 2); PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing); } @@ -4215,17 +4207,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "creation order in decreasing order\n", - 1); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "creation order in decreasing order\n", + 1); PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing); } @@ -4233,17 +4225,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "creation order in decreasing order\n", - 0); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "creation order in decreasing order\n", + 0); PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing); } @@ -4259,17 +4251,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "alphabetical order in increasing order\n", - 0); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "alphabetical order in increasing order\n", + 0); PART_ERROR(H5Aget_name_by_idx_name_order_increasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); PART_ERROR(H5Aget_name_by_idx_name_order_increasing); } @@ -4277,17 +4269,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "alphabetical order in increasing order\n", - 1); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "alphabetical order in increasing order\n", + 1); PART_ERROR(H5Aget_name_by_idx_name_order_increasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); PART_ERROR(H5Aget_name_by_idx_name_order_increasing); } @@ -4295,17 +4287,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " - "alphabetical order in increasing order\n", - 2); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by " + "alphabetical order in increasing order\n", + 2); PART_ERROR(H5Aget_name_by_idx_name_order_increasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); PART_ERROR(H5Aget_name_by_idx_name_order_increasing); } @@ -4321,17 +4313,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index " - "by alphabetical order in decreasing order\n", - 2); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index " + "by alphabetical order in decreasing order\n", + 2); PART_ERROR(H5Aget_name_by_idx_name_order_decreasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME); PART_ERROR(H5Aget_name_by_idx_name_order_decreasing); } @@ -4339,17 +4331,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index " - "by alphabetical order in decreasing order\n", - 1); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index " + "by alphabetical order in decreasing order\n", + 1); PART_ERROR(H5Aget_name_by_idx_name_order_decreasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2); PART_ERROR(H5Aget_name_by_idx_name_order_decreasing); } @@ -4357,17 +4349,17 @@ test_get_attribute_name(void) if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index " - "by alphabetical order in decreasing order\n", - 0); + printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index " + "by alphabetical order in decreasing order\n", + 0); PART_ERROR(H5Aget_name_by_idx_name_order_decreasing); } if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) { H5_FAILED(); - HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, - ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); + printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf, + ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3); PART_ERROR(H5Aget_name_by_idx_name_order_decreasing); } @@ -4443,7 +4435,7 @@ test_get_attribute_name_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -4452,21 +4444,21 @@ test_get_attribute_name_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", + ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -4480,20 +4472,20 @@ test_get_attribute_name_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -4503,7 +4495,7 @@ test_get_attribute_name_invalid_params(void) if ((name_buf_size = H5Aget_name(attr_id, 0, NULL)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve name buf size\n"); + printf(" couldn't retrieve name buf size\n"); goto error; } @@ -4526,7 +4518,7 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n"); + printf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n"); PART_ERROR(H5Aget_name_invalid_attr_id); } @@ -4547,7 +4539,7 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n"); + printf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n"); PART_ERROR(H5Aget_name_invalid_name_buf); } @@ -4569,7 +4561,7 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_loc_id); } @@ -4590,7 +4582,7 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_obj_name); } @@ -4603,8 +4595,8 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name " - "of ''!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name " + "of ''!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_obj_name); } @@ -4626,8 +4618,8 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type " - "H5_INDEX_UNKNOWN!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type " + "H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_index_type); } @@ -4641,8 +4633,8 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type " - "H5_INDEX_N!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type " + "H5_INDEX_N!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_index_type); } @@ -4664,8 +4656,8 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order " - "H5_ITER_UNKNOWN!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order " + "H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_iter_order); } @@ -4679,8 +4671,8 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order " - "H5_ITER_N!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order " + "H5_ITER_N!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_iter_order); } @@ -4703,7 +4695,7 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf( + printf( " retrieved attribute name using H5Aget_name_by_idx with an invalid name buffer!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_name_buf); } @@ -4726,7 +4718,7 @@ test_get_attribute_name_invalid_params(void) if (name_buf_size >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n"); + printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n"); PART_ERROR(H5Aget_name_by_idx_invalid_lapl); } @@ -4812,8 +4804,8 @@ test_get_attribute_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or attribute aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, or attribute aren't supported " + "with this connector\n"); return 0; } @@ -4821,26 +4813,26 @@ test_get_attribute_info(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for attribute creation order tracking\n"); + printf(" couldn't create GCPL for attribute creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order tracking\n"); + printf(" couldn't set attribute creation order tracking\n"); goto error; } } @@ -4848,7 +4840,7 @@ test_get_attribute_info(void) if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME); goto error; } @@ -4862,7 +4854,7 @@ test_get_attribute_info(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); goto error; } @@ -4872,7 +4864,7 @@ test_get_attribute_info(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); goto error; } @@ -4882,7 +4874,7 @@ test_get_attribute_info(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); goto error; } @@ -4892,37 +4884,37 @@ test_get_attribute_info(void) /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); goto error; } @@ -4936,21 +4928,21 @@ test_get_attribute_info(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); + printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); PART_ERROR(H5Aget_info); } HDmemset(&attr_info, 0, sizeof(attr_info)); if (H5Aget_info(attr_id, &attr_info) < 0) { H5_FAILED(); - HDprintf(" couldn't get attribute info\n"); + printf(" couldn't get attribute info\n"); PART_ERROR(H5Aget_info); } if (attr_info.corder_valid && (attr_info.corder != 0)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)0); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)0); PART_ERROR(H5Aget_info); } @@ -4958,13 +4950,13 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); + printf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); PART_ERROR(H5Aget_info); } @@ -4987,14 +4979,14 @@ test_get_attribute_info(void) if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); + printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME); PART_ERROR(H5Aget_info_by_name); } if (attr_info.corder_valid && (attr_info.corder != 0)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)0); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)0); PART_ERROR(H5Aget_info_by_name); } @@ -5002,7 +4994,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_name); } @@ -5010,15 +5002,14 @@ test_get_attribute_info(void) if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get attribute info by name '%s'\n", - ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); + printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2); PART_ERROR(H5Aget_info_by_name); } if (attr_info.corder_valid && (attr_info.corder != 1)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)1); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)1); PART_ERROR(H5Aget_info_by_name); } @@ -5026,7 +5017,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_name); } @@ -5034,15 +5025,14 @@ test_get_attribute_info(void) if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get attribute info by name '%s'\n", - ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); + printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3); PART_ERROR(H5Aget_info_by_name); } if (attr_info.corder_valid && (attr_info.corder != 2)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)2); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)2); PART_ERROR(H5Aget_info_by_name); } @@ -5050,7 +5040,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_name); } @@ -5064,7 +5054,7 @@ test_get_attribute_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aget_info_by_idx_crt_order_increasing); } @@ -5072,16 +5062,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "creation order in increasing order\n", - 0); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "creation order in increasing order\n", + 0); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } if (attr_info.corder_valid && (attr_info.corder != 0)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)0); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)0); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } @@ -5089,7 +5079,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } @@ -5097,16 +5087,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "creation order in increasing order\n", - 1); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "creation order in increasing order\n", + 1); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } if (attr_info.corder_valid && (attr_info.corder != 1)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)1); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)1); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } @@ -5114,7 +5104,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } @@ -5122,16 +5112,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "creation order in increasing order\n", - 2); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "creation order in increasing order\n", + 2); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } if (attr_info.corder_valid && (attr_info.corder != 2)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)2); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)2); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } @@ -5139,7 +5129,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_crt_order_increasing); } @@ -5153,7 +5143,7 @@ test_get_attribute_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aget_info_by_idx_crt_order_decreasing); } @@ -5161,16 +5151,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "creation order in decreasing order\n", - 2); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "creation order in decreasing order\n", + 2); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } if (attr_info.corder_valid && (attr_info.corder != 0)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)0); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)0); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } @@ -5178,7 +5168,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } @@ -5186,16 +5176,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "creation order in decreasing order\n", - 1); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "creation order in decreasing order\n", + 1); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } if (attr_info.corder_valid && (attr_info.corder != 1)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)1); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)1); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } @@ -5203,7 +5193,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } @@ -5211,16 +5201,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "creation order in decreasing order\n", - 0); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "creation order in decreasing order\n", + 0); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } if (attr_info.corder_valid && (attr_info.corder != 2)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)2); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)2); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } @@ -5228,7 +5218,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing); } @@ -5244,16 +5234,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "alphabetical order in increasing order\n", - 0); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "alphabetical order in increasing order\n", + 0); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } if (attr_info.corder_valid && (attr_info.corder != 0)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)0); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)0); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } @@ -5261,7 +5251,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } @@ -5269,16 +5259,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "alphabetical order in increasing order\n", - 1); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "alphabetical order in increasing order\n", + 1); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } if (attr_info.corder_valid && (attr_info.corder != 1)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)1); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)1); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } @@ -5286,7 +5276,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } @@ -5294,16 +5284,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "alphabetical order in increasing order\n", - 2); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "alphabetical order in increasing order\n", + 2); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } if (attr_info.corder_valid && (attr_info.corder != 2)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)2); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)2); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } @@ -5311,7 +5301,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_name_order_increasing); } @@ -5327,16 +5317,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "alphabetical order in decreasing order\n", - 2); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "alphabetical order in decreasing order\n", + 2); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } if (attr_info.corder_valid && (attr_info.corder != 0)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)0); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)0); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } @@ -5344,7 +5334,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } @@ -5352,16 +5342,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "alphabetical order in decreasing order\n", - 1); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "alphabetical order in decreasing order\n", + 1); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } if (attr_info.corder_valid && (attr_info.corder != 1)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)1); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)1); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } @@ -5369,7 +5359,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } @@ -5377,16 +5367,16 @@ test_get_attribute_info(void) if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &attr_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " - "alphabetical order in decreasing order\n", - 0); + printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by " + "alphabetical order in decreasing order\n", + 0); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } if (attr_info.corder_valid && (attr_info.corder != 2)) { H5_FAILED(); - HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", - (long long)attr_info.corder, (long long)2); + printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n", + (long long)attr_info.corder, (long long)2); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } @@ -5394,7 +5384,7 @@ test_get_attribute_info(void) if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 && attr_info.cset != H5T_CSET_ERROR) { H5_FAILED(); - HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); + printf(" attribute info's 'cset' field wasn't set to a meaningful value\n"); PART_ERROR(H5Aget_info_by_idx_name_order_decreasing); } @@ -5462,7 +5452,7 @@ test_get_attribute_info_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -5471,21 +5461,21 @@ test_get_attribute_info_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", + ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -5499,20 +5489,20 @@ test_get_attribute_info_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -5532,7 +5522,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n"); + printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n"); PART_ERROR(H5Aget_info_invalid_attr_id); } @@ -5552,7 +5542,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n"); + printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n"); PART_ERROR(H5Aget_info_invalid_attr_info_pointer); } @@ -5574,7 +5564,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n"); + printf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n"); PART_ERROR(H5Aget_info_by_name_invalid_loc_id); } @@ -5596,7 +5586,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n"); + printf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n"); PART_ERROR(H5Aget_info_by_name_invalid_obj_name); } @@ -5609,8 +5599,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name " - "of ''!\n"); + printf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name " + "of ''!\n"); PART_ERROR(H5Aget_info_by_name_invalid_obj_name); } @@ -5630,7 +5620,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( + printf( " retrieved attribute info using H5Aget_info_by_name with a NULL attribute name!\n"); PART_ERROR(H5Aget_info_by_name_invalid_attr_name); } @@ -5643,8 +5633,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute " - "name of ''!\n"); + printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute " + "name of ''!\n"); PART_ERROR(H5Aget_info_by_name_invalid_attr_name); } @@ -5665,8 +5655,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute " - "info pointer!\n"); + printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute " + "info pointer!\n"); PART_ERROR(H5Aget_info_by_name_invalid_attr_info_pointer); } @@ -5687,7 +5677,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n"); + printf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n"); PART_ERROR(H5Aget_info_by_name_invalid_lapl); } @@ -5708,7 +5698,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_loc_id); } @@ -5729,7 +5719,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_obj_name); } @@ -5742,8 +5732,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name " - "of ''!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name " + "of ''!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_obj_name); } @@ -5764,8 +5754,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type " - "H5_INDEX_UNKNOWN!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type " + "H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_index_type); } @@ -5778,8 +5768,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type " - "H5_INDEX_N!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type " + "H5_INDEX_N!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_index_type); } @@ -5800,8 +5790,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order " - "H5_ITER_UNKNOWN!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order " + "H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_iter_order); } @@ -5814,8 +5804,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order " - "H5_ITER_N!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order " + "H5_ITER_N!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_iter_order); } @@ -5835,8 +5825,8 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute " - "info pointer!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute " + "info pointer!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_attr_info_pointer); } @@ -5857,7 +5847,7 @@ test_get_attribute_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n"); + printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n"); PART_ERROR(H5Aget_info_by_idx_invalid_lapl); } @@ -5922,7 +5912,7 @@ test_rename_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -5931,20 +5921,20 @@ test_rename_attribute(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME); goto error; } @@ -5957,39 +5947,39 @@ test_rename_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -6003,33 +5993,33 @@ test_rename_attribute(void) if (H5Arename(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME) < 0) { H5_FAILED(); - HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename\n", - ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME); + printf(" couldn't rename attribute '%s' to '%s' using H5Arename\n", + ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME); PART_ERROR(H5Arename); } /* Verify the attribute has been renamed */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); PART_ERROR(H5Arename); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute did not get renamed!\n"); + printf(" attribute did not get renamed!\n"); PART_ERROR(H5Arename); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); PART_ERROR(H5Arename); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not get renamed!\n"); + printf(" attribute did not get renamed!\n"); PART_ERROR(H5Arename); } @@ -6045,33 +6035,33 @@ test_rename_attribute(void) ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n", - ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2); + printf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n", + ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2); PART_ERROR(H5Arename_by_name); } /* Verify the attribute has been renamed */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); PART_ERROR(H5Arename_by_name); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute did not get renamed!\n"); + printf(" attribute did not get renamed!\n"); PART_ERROR(H5Arename_by_name); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); PART_ERROR(H5Arename_by_name); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not get renamed!\n"); + printf(" attribute did not get renamed!\n"); PART_ERROR(H5Arename_by_name); } @@ -6140,7 +6130,7 @@ test_rename_attribute_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -6149,21 +6139,20 @@ test_rename_attribute_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -6177,39 +6166,39 @@ test_rename_attribute_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -6230,7 +6219,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename with an invalid loc_id!\n"); + printf(" renamed attribute using H5Arename with an invalid loc_id!\n"); PART_ERROR(H5Arename_invalid_loc_id); } @@ -6250,7 +6239,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename with a NULL old attribute name!\n"); + printf(" renamed attribute using H5Arename with a NULL old attribute name!\n"); PART_ERROR(H5Arename_invalid_old_attr_name); } @@ -6262,7 +6251,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n"); + printf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n"); PART_ERROR(H5Arename_invalid_old_attr_name); } @@ -6282,7 +6271,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename with a NULL new attribute name!\n"); + printf(" renamed attribute using H5Arename with a NULL new attribute name!\n"); PART_ERROR(H5Arename_invalid_new_attr_name); } @@ -6294,7 +6283,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n"); + printf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n"); PART_ERROR(H5Arename_invalid_new_attr_name); } @@ -6316,7 +6305,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n"); + printf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n"); PART_ERROR(H5Arename_by_name_invalid_loc_id); } @@ -6337,7 +6326,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename_by_name with a NULL object name!\n"); + printf(" renamed attribute using H5Arename_by_name with a NULL object name!\n"); PART_ERROR(H5Arename_by_name_invalid_obj_name); } @@ -6350,8 +6339,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( - " renamed attribute using H5Arename_by_name with an invalid object name of ''!\n"); + printf(" renamed attribute using H5Arename_by_name with an invalid object name of ''!\n"); PART_ERROR(H5Arename_by_name_invalid_obj_name); } @@ -6372,7 +6360,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n"); + printf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n"); PART_ERROR(H5Arename_by_name_invalid_old_attr_name); } @@ -6385,8 +6373,8 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename_by_name with an invalid old attribute name " - "of ''!\n"); + printf(" renamed attribute using H5Arename_by_name with an invalid old attribute name " + "of ''!\n"); PART_ERROR(H5Arename_by_name_invalid_old_attr_name); } @@ -6407,7 +6395,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n"); + printf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n"); PART_ERROR(H5Arename_by_name_invalid_new_attr_name); } @@ -6420,8 +6408,8 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename_by_name with an invalid new attribute name " - "of ''!\n"); + printf(" renamed attribute using H5Arename_by_name with an invalid new attribute name " + "of ''!\n"); PART_ERROR(H5Arename_by_name_invalid_new_attr_name); } @@ -6442,7 +6430,7 @@ test_rename_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n"); + printf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n"); PART_ERROR(H5Arename_by_name_invalid_lapl); } @@ -6515,8 +6503,8 @@ test_attribute_iterate_group(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or iterate aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, attribute, or iterate aren't " + "supported with this connector\n"); return 0; } @@ -6524,26 +6512,26 @@ test_attribute_iterate_group(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for attribute creation order tracking\n"); + printf(" couldn't create GCPL for attribute creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order tracking\n"); + printf(" couldn't set attribute creation order tracking\n"); goto error; } } @@ -6551,7 +6539,7 @@ test_attribute_iterate_group(void) if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME); goto error; } @@ -6571,26 +6559,26 @@ test_attribute_iterate_group(void) if ((attr_id = H5Acreate2(group_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", attr_name); + printf(" couldn't create attribute '%s'\n", attr_name); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, attr_name)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name); + printf(" couldn't determine if attribute '%s' exists\n", attr_name); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", attr_name); + printf(" attribute '%s' did not exist\n", attr_name); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", attr_name); + printf(" failed to close attribute '%s'\n", attr_name); goto error; } } @@ -6617,15 +6605,15 @@ test_attribute_iterate_group(void) if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type name in increasing order failed\n"); + printf(" H5Aiterate2 by index type name in increasing order failed\n"); PART_ERROR(H5Aiterate2_name_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 0) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_name_increasing); } @@ -6642,15 +6630,15 @@ test_attribute_iterate_group(void) if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n"); + printf(" H5Aiterate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Aiterate2_name_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_name_decreasing); } @@ -6664,7 +6652,7 @@ test_attribute_iterate_group(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate2_creation_increasing); } @@ -6674,15 +6662,15 @@ test_attribute_iterate_group(void) if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n"); + printf(" H5Aiterate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Aiterate2_creation_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_creation_increasing); } @@ -6696,7 +6684,7 @@ test_attribute_iterate_group(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate2_creation_decreasing); } @@ -6706,15 +6694,15 @@ test_attribute_iterate_group(void) if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n"); + printf(" H5Aiterate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Aiterate2_creation_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_creation_decreasing); } @@ -6733,15 +6721,15 @@ test_attribute_iterate_group(void) file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n"); + printf(" H5Aiterate_by_name by index type name in increasing order failed\n"); PART_ERROR(H5Aiterate_by_name_name_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_name_increasing); } @@ -6760,15 +6748,15 @@ test_attribute_iterate_group(void) file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n"); + printf(" H5Aiterate_by_name by index type name in decreasing order failed\n"); PART_ERROR(H5Aiterate_by_name_name_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_name_decreasing); } @@ -6782,7 +6770,7 @@ test_attribute_iterate_group(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate_by_name_creation_increasing); } @@ -6794,15 +6782,15 @@ test_attribute_iterate_group(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n"); + printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n"); PART_ERROR(H5Aiterate_by_name_creation_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_creation_increasing); } @@ -6816,7 +6804,7 @@ test_attribute_iterate_group(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate_by_name_creation_decreasing); } @@ -6828,15 +6816,15 @@ test_attribute_iterate_group(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n"); + printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n"); PART_ERROR(H5Aiterate_by_name_creation_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_creation_decreasing); } @@ -6911,8 +6899,8 @@ test_attribute_iterate_dataset(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, attribute, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, dataset, attribute, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -6920,33 +6908,33 @@ test_attribute_iterate_dataset(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME); goto error; } if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL for attribute creation order tracking\n"); + printf(" couldn't create DCPL for attribute creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_attr_creation_order(dcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order tracking\n"); + printf(" couldn't set attribute creation order tracking\n"); goto error; } } @@ -6966,7 +6954,7 @@ test_attribute_iterate_dataset(void) if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_DSET_NAME, dset_dtype, dset_space_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME); goto error; } @@ -6980,26 +6968,26 @@ test_attribute_iterate_dataset(void) if ((attr_id = H5Acreate2(dset_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", attr_name); + printf(" couldn't create attribute '%s'\n", attr_name); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(dset_id, attr_name)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name); + printf(" couldn't determine if attribute '%s' exists\n", attr_name); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", attr_name); + printf(" attribute '%s' did not exist\n", attr_name); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", attr_name); + printf(" failed to close attribute '%s'\n", attr_name); goto error; } } @@ -7026,15 +7014,15 @@ test_attribute_iterate_dataset(void) if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type name in increasing order failed\n"); + printf(" H5Aiterate2 by index type name in increasing order failed\n"); PART_ERROR(H5Aiterate2_name_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 0) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_name_increasing); } @@ -7051,15 +7039,15 @@ test_attribute_iterate_dataset(void) if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n"); + printf(" H5Aiterate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Aiterate2_name_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_name_decreasing); } @@ -7073,7 +7061,7 @@ test_attribute_iterate_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate2_creation_increasing); } @@ -7083,15 +7071,15 @@ test_attribute_iterate_dataset(void) if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n"); + printf(" H5Aiterate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Aiterate2_creation_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_creation_increasing); } @@ -7105,7 +7093,7 @@ test_attribute_iterate_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate2_creation_decreasing); } @@ -7115,15 +7103,15 @@ test_attribute_iterate_dataset(void) if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n"); + printf(" H5Aiterate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Aiterate2_creation_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_creation_decreasing); } @@ -7144,15 +7132,15 @@ test_attribute_iterate_dataset(void) H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n"); + printf(" H5Aiterate_by_name by index type name in increasing order failed\n"); PART_ERROR(H5Aiterate_by_name_name_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_name_increasing); } @@ -7173,15 +7161,15 @@ test_attribute_iterate_dataset(void) H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n"); + printf(" H5Aiterate_by_name by index type name in decreasing order failed\n"); PART_ERROR(H5Aiterate_by_name_name_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_name_decreasing); } @@ -7195,7 +7183,7 @@ test_attribute_iterate_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate_by_name_creation_increasing); } @@ -7208,15 +7196,15 @@ test_attribute_iterate_dataset(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n"); + printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n"); PART_ERROR(H5Aiterate_by_name_creation_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_creation_increasing); } @@ -7230,7 +7218,7 @@ test_attribute_iterate_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate_by_name_creation_decreasing); } @@ -7243,15 +7231,15 @@ test_attribute_iterate_dataset(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n"); + printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n"); PART_ERROR(H5Aiterate_by_name_creation_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_creation_decreasing); } @@ -7333,8 +7321,8 @@ test_attribute_iterate_datatype(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, stored datatype, attribute, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, stored datatype, attribute, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -7342,33 +7330,33 @@ test_attribute_iterate_datatype(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME); goto error; } if ((tcpl_id = H5Pcreate(H5P_DATATYPE_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create TCPL for attribute creation order tracking\n"); + printf(" couldn't create TCPL for attribute creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_attr_creation_order(tcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order tracking\n"); + printf(" couldn't set attribute creation order tracking\n"); goto error; } } @@ -7385,7 +7373,7 @@ test_attribute_iterate_datatype(void) if (H5Tcommit2(group_id, ATTRIBUTE_ITERATE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, tcpl_id, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME); + printf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME); goto error; } @@ -7399,26 +7387,26 @@ test_attribute_iterate_datatype(void) if ((attr_id = H5Acreate2(type_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", attr_name); + printf(" couldn't create attribute '%s'\n", attr_name); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(type_id, attr_name)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name); + printf(" couldn't determine if attribute '%s' exists\n", attr_name); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", attr_name); + printf(" attribute '%s' did not exist\n", attr_name); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", attr_name); + printf(" failed to close attribute '%s'\n", attr_name); goto error; } } @@ -7445,15 +7433,15 @@ test_attribute_iterate_datatype(void) if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type name in increasing order failed\n"); + printf(" H5Aiterate2 by index type name in increasing order failed\n"); PART_ERROR(H5Aiterate2_name_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 0) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_name_increasing); } @@ -7470,15 +7458,15 @@ test_attribute_iterate_datatype(void) if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n"); + printf(" H5Aiterate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Aiterate2_name_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_name_decreasing); } @@ -7492,7 +7480,7 @@ test_attribute_iterate_datatype(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate2_creation_increasing); } @@ -7502,15 +7490,15 @@ test_attribute_iterate_datatype(void) if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n"); + printf(" H5Aiterate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Aiterate2_creation_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_creation_increasing); } @@ -7524,7 +7512,7 @@ test_attribute_iterate_datatype(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate2_creation_decreasing); } @@ -7534,15 +7522,15 @@ test_attribute_iterate_datatype(void) if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n"); + printf(" H5Aiterate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Aiterate2_creation_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " - "have been called!\n"); + printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not " + "have been called!\n"); PART_ERROR(H5Aiterate2_creation_decreasing); } @@ -7563,15 +7551,15 @@ test_attribute_iterate_datatype(void) "/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n"); + printf(" H5Aiterate_by_name by index type name in increasing order failed\n"); PART_ERROR(H5Aiterate_by_name_name_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_name_increasing); } @@ -7592,15 +7580,15 @@ test_attribute_iterate_datatype(void) "/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n"); + printf(" H5Aiterate_by_name by index type name in decreasing order failed\n"); PART_ERROR(H5Aiterate_by_name_name_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_name_decreasing); } @@ -7614,7 +7602,7 @@ test_attribute_iterate_datatype(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate_by_name_creation_increasing); } @@ -7628,15 +7616,15 @@ test_attribute_iterate_datatype(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n"); + printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n"); PART_ERROR(H5Aiterate_by_name_creation_increasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_creation_increasing); } @@ -7650,7 +7638,7 @@ test_attribute_iterate_datatype(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Aiterate_by_name_creation_decreasing); } @@ -7664,15 +7652,15 @@ test_attribute_iterate_datatype(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n"); + printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n"); PART_ERROR(H5Aiterate_by_name_creation_decreasing); } /* Make sure that the attribute iteration callback was actually called */ if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " - "must not have been called!\n"); + printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function " + "must not have been called!\n"); PART_ERROR(H5Aiterate_by_name_creation_decreasing); } @@ -7760,8 +7748,8 @@ test_attribute_iterate_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or iterate aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, attribute, or iterate aren't supported with this " + "connector\n"); return 0; } @@ -7769,20 +7757,20 @@ test_attribute_iterate_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup\n"); + printf(" couldn't create container subgroup\n"); goto error; } @@ -7796,77 +7784,77 @@ test_attribute_iterate_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } if ((attr_id3 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } if ((attr_id4 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -7887,7 +7875,7 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n"); + printf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n"); PART_ERROR(H5Aiterate_invalid_loc_id); } @@ -7908,8 +7896,8 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate with invalid index type " - "H5_INDEX_UNKNOWN!\n"); + printf(" iterated over attributes using H5Aiterate with invalid index type " + "H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Aiterate_invalid_index_type); } @@ -7921,8 +7909,7 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( - " iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n"); + printf(" iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Aiterate_invalid_index_type); } @@ -7943,8 +7930,8 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate with invalid index ordering " - "H5_ITER_UNKNOWN!\n"); + printf(" iterated over attributes using H5Aiterate with invalid index ordering " + "H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Aiterate_invalid_index_order); } @@ -7956,7 +7943,7 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( + printf( " iterated over attributes using H5Aiterate with invalid index ordering H5_ITER_N!\n"); PART_ERROR(H5Aiterate_invalid_index_order); } @@ -7978,7 +7965,7 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n"); PART_ERROR(H5Aiterate_by_name_invalid_loc_id); } @@ -7999,7 +7986,7 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n"); PART_ERROR(H5Aiterate_by_name_invalid_obj_name); } @@ -8012,8 +7999,8 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid object name " - "of ''!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with an invalid object name " + "of ''!\n"); PART_ERROR(H5Aiterate_by_name_invalid_obj_name); } @@ -8034,8 +8021,8 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type " - "H5_INDEX_UNKNOWN!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with invalid index type " + "H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Aiterate_by_name_invalid_index_type); } @@ -8048,8 +8035,8 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type " - "H5_INDEX_N!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with invalid index type " + "H5_INDEX_N!\n"); PART_ERROR(H5Aiterate_by_name_invalid_index_type); } @@ -8070,8 +8057,8 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering " - "H5_ITER_UNKNOWN!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering " + "H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Aiterate_by_name_invalid_index_order); } @@ -8084,8 +8071,8 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering " - "H5_ITER_N!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering " + "H5_ITER_N!\n"); PART_ERROR(H5Aiterate_by_name_invalid_index_order); } @@ -8106,7 +8093,7 @@ test_attribute_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n"); + printf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n"); PART_ERROR(H5Aiterate_by_name_invalid_lapl); } @@ -8180,8 +8167,8 @@ test_attribute_iterate_0_attributes(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, attribute, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, dataset, attribute, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -8189,20 +8176,20 @@ test_attribute_iterate_0_attributes(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup\n"); + printf(" couldn't create container subgroup\n"); goto error; } @@ -8216,7 +8203,7 @@ test_attribute_iterate_0_attributes(void) if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, dset_dtype, dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); goto error; } @@ -8230,7 +8217,7 @@ test_attribute_iterate_0_attributes(void) if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 on object with 0 attributes failed\n"); + printf(" H5Aiterate2 on object with 0 attributes failed\n"); PART_ERROR(H5Aiterate_0_attributes_native); } @@ -8244,7 +8231,7 @@ test_attribute_iterate_0_attributes(void) if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback2, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 on object with 0 attributes failed\n"); + printf(" H5Aiterate2 on object with 0 attributes failed\n"); PART_ERROR(H5Aiterate_0_attributes_inc); } @@ -8258,7 +8245,7 @@ test_attribute_iterate_0_attributes(void) if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback2, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate2 on object with 0 attributes failed\n"); + printf(" H5Aiterate2 on object with 0 attributes failed\n"); PART_ERROR(H5Aiterate_0_attributes_dec); } @@ -8273,7 +8260,7 @@ test_attribute_iterate_0_attributes(void) if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME, H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n"); + printf(" H5Aiterate_by_name on object with 0 attributes failed\n"); PART_ERROR(H5Aiterate_by_name_0_attributes_native); } @@ -8288,7 +8275,7 @@ test_attribute_iterate_0_attributes(void) if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n"); + printf(" H5Aiterate_by_name on object with 0 attributes failed\n"); PART_ERROR(H5Aiterate_by_name_0_attributes_inc); } @@ -8302,7 +8289,7 @@ test_attribute_iterate_0_attributes(void) if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n"); + printf(" H5Aiterate_by_name on object with 0 attributes failed\n"); PART_ERROR(H5Aiterate_by_name_0_attributes_dec); } @@ -8368,8 +8355,8 @@ test_delete_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or attribute aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, or attribute aren't supported " + "with this connector\n"); return 0; } @@ -8377,26 +8364,26 @@ test_delete_attribute(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for attribute creation order tracking\n"); + printf(" couldn't create GCPL for attribute creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order tracking\n"); + printf(" couldn't set attribute creation order tracking\n"); goto error; } } @@ -8404,7 +8391,7 @@ test_delete_attribute(void) if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME); goto error; } @@ -8426,49 +8413,49 @@ test_delete_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete); } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete); } /* Delete the attribute */ if (H5Adelete(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete); } /* Verify the attribute has been deleted */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete); } @@ -8491,22 +8478,22 @@ test_delete_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_name); } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_name); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_name); } @@ -8514,27 +8501,27 @@ test_delete_attribute(void) if (H5Adelete_by_name(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, ATTRIBUTE_DELETION_TEST_ATTR_NAME, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_name); } /* Verify the attribute has been deleted */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_name); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_name); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_name); } @@ -8555,7 +8542,7 @@ test_delete_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Adelete_by_idx_crt_order_increasing); } @@ -8563,82 +8550,82 @@ test_delete_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } @@ -8646,50 +8633,50 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in " - "increasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by creation order in " + "increasing order\n"); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } /* Ensure that the attribute is gone and others remain */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } @@ -8697,95 +8684,95 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in " - "increasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by creation order in " + "increasing order\n"); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in " - "increasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by creation order in " + "increasing order\n"); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_increasing); } @@ -8806,7 +8793,7 @@ test_delete_attribute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Adelete_by_idx_crt_order_decreasing); } @@ -8814,82 +8801,82 @@ test_delete_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } @@ -8897,50 +8884,50 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in " - "decreasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by creation order in " + "decreasing order\n"); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } /* Ensure that the attribute is gone and others remain */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } @@ -8948,95 +8935,95 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in " - "decreasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by creation order in " + "decreasing order\n"); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in " - "decreasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by creation order in " + "decreasing order\n"); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_crt_order_decreasing); } @@ -9059,82 +9046,82 @@ test_delete_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } @@ -9142,50 +9129,50 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " - "increasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " + "increasing order\n"); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } /* Ensure that the attribute is gone and others remain */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } @@ -9193,95 +9180,95 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " - "increasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " + "increasing order\n"); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " - "increasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " + "increasing order\n"); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_increasing); } @@ -9304,82 +9291,82 @@ test_delete_attribute(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } /* Verify the attributes have been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' didn't exist before deletion\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' didn't exist before deletion\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } @@ -9387,50 +9374,50 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " - "decreasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " + "decreasing order\n"); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } /* Ensure that the attribute is gone and others remain */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } @@ -9438,95 +9425,95 @@ test_delete_attribute(void) if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " - "decreasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " + "decreasing order\n"); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " - "decreasing order\n"); + printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in " + "decreasing order\n"); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } if (attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); + printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3); PART_ERROR(H5Adelete_by_idx_name_order_decreasing); } @@ -9601,7 +9588,7 @@ test_delete_attribute_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -9610,21 +9597,21 @@ test_delete_attribute_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", + ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -9638,20 +9625,20 @@ test_delete_attribute_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute didn't exists\n"); + printf(" attribute didn't exists\n"); goto error; } @@ -9671,7 +9658,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete with an invalid loc_id!\n"); + printf(" deleted an attribute using H5Adelete with an invalid loc_id!\n"); PART_ERROR(H5Adelete_invalid_loc_id); } @@ -9691,7 +9678,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete with a NULL attribute name!\n"); + printf(" deleted an attribute using H5Adelete with a NULL attribute name!\n"); PART_ERROR(H5Adelete_invalid_attr_name); } @@ -9703,7 +9690,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n"); + printf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n"); PART_ERROR(H5Adelete_invalid_attr_name); } @@ -9724,7 +9711,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n"); + printf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n"); PART_ERROR(H5Adelete_by_name_invalid_loc_id); } @@ -9745,7 +9732,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n"); + printf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n"); PART_ERROR(H5Adelete_by_name_invalid_obj_name); } @@ -9758,7 +9745,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( + printf( " deleted an attribute using H5Adelete_by_name with an invalid object name of ''!\n"); PART_ERROR(H5Adelete_by_name_invalid_obj_name); } @@ -9779,7 +9766,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n"); + printf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n"); PART_ERROR(H5Adelete_by_name_invalid_attr_name); } @@ -9791,8 +9778,8 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of " - "''!\n"); + printf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of " + "''!\n"); PART_ERROR(H5Adelete_by_name_invalid_attr_name); } @@ -9813,7 +9800,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n"); + printf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n"); PART_ERROR(H5Adelete_by_name_invalid_lapl); } @@ -9833,7 +9820,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n"); + printf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n"); PART_ERROR(H5Adelete_by_idx_invalid_loc_id); } @@ -9853,7 +9840,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n"); + printf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n"); PART_ERROR(H5Adelete_by_idx_invalid_obj_name); } @@ -9865,7 +9852,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( + printf( " deleted an attribute using H5Adelete_by_idx with an invalid object name of ''!\n"); PART_ERROR(H5Adelete_by_idx_invalid_obj_name); } @@ -9886,8 +9873,8 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index type " - "H5_INDEX_UNKNOWN!\n"); + printf(" deleted an attribute using H5Adelete_by_idx with invalid index type " + "H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Adelete_by_idx_invalid_index_type); } @@ -9899,7 +9886,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( + printf( " deleted an attribute using H5Adelete_by_idx with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Adelete_by_idx_invalid_index_type); } @@ -9920,8 +9907,8 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering " - "H5_ITER_UNKNOWN!\n"); + printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering " + "H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Adelete_by_idx_invalid_index_order); } @@ -9933,8 +9920,8 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering " - "H5_ITER_N!\n"); + printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering " + "H5_ITER_N!\n"); PART_ERROR(H5Adelete_by_idx_invalid_index_order); } @@ -9954,7 +9941,7 @@ test_delete_attribute_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n"); + printf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n"); PART_ERROR(H5Adelete_by_idx_invalid_lapl); } @@ -10018,7 +10005,7 @@ test_attribute_exists(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -10027,20 +10014,20 @@ test_attribute_exists(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME); goto error; } @@ -10053,7 +10040,7 @@ test_attribute_exists(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } @@ -10067,13 +10054,13 @@ test_attribute_exists(void) if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); PART_ERROR(H5Aexists); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME); + printf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME); PART_ERROR(H5Aexists); } @@ -10088,13 +10075,13 @@ test_attribute_exists(void) if ((attr_exists = H5Aexists_by_name(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME, ATTRIBUTE_EXISTS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists by name\n"); + printf(" couldn't determine if attribute exists by name\n"); PART_ERROR(H5Aexists_by_name); } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME); + printf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME); PART_ERROR(H5Aexists_by_name); } @@ -10160,7 +10147,7 @@ test_attribute_exists_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } @@ -10169,21 +10156,20 @@ test_attribute_exists_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -10197,20 +10183,20 @@ test_attribute_exists_invalid_params(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute didn't exists\n"); + printf(" attribute didn't exists\n"); goto error; } @@ -10230,7 +10216,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists with an invalid loc_id succeeded!\n"); + printf(" H5Aexists with an invalid loc_id succeeded!\n"); PART_ERROR(H5Aexists_invalid_loc_id); } @@ -10250,7 +10236,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists with a NULL attribute name succeeded!\n"); + printf(" H5Aexists with a NULL attribute name succeeded!\n"); PART_ERROR(H5Aexists_invalid_attr_name); } @@ -10262,7 +10248,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists with an invalid attribute name of '' succeeded!\n"); + printf(" H5Aexists with an invalid attribute name of '' succeeded!\n"); PART_ERROR(H5Aexists_invalid_attr_name); } @@ -10283,7 +10269,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists_by_name with an invalid loc_id succeeded!\n"); + printf(" H5Aexists_by_name with an invalid loc_id succeeded!\n"); PART_ERROR(H5Aexists_by_name_invalid_loc_id); } @@ -10304,7 +10290,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists_by_name with a NULL object name succeeded!\n"); + printf(" H5Aexists_by_name with a NULL object name succeeded!\n"); PART_ERROR(H5Aexists_by_name_invalid_obj_name); } @@ -10317,7 +10303,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n"); + printf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n"); PART_ERROR(H5Aexists_by_name_invalid_obj_name); } @@ -10338,7 +10324,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists_by_name with a NULL attribute name succeeded!\n"); + printf(" H5Aexists_by_name with a NULL attribute name succeeded!\n"); PART_ERROR(H5Aexists_by_name_invalid_attr_name); } @@ -10351,7 +10337,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n"); + printf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n"); PART_ERROR(H5Aexists_by_name_invalid_attr_name); } @@ -10372,7 +10358,7 @@ test_attribute_exists_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Aexists_by_name with an invalid link access property list succeeded!\n"); + printf(" H5Aexists_by_name with an invalid link access property list succeeded!\n"); PART_ERROR(H5Aexists_by_name_invalid_lapl); } @@ -10439,27 +10425,27 @@ test_attribute_many(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_MANY_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME); + printf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME); goto error; } @@ -10475,20 +10461,20 @@ test_attribute_many(void) if ((attr_id = H5Acreate2(group_id, attrname, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, attrname)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -10547,27 +10533,27 @@ test_attribute_duplicate_id(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or attribute aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DUPLICATE_ID_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME); + printf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME); goto error; } @@ -10580,27 +10566,27 @@ test_attribute_duplicate_id(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } /* Open the attribute just created and get a second ID */ if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" attribute can't be opened for a second time\n"); + printf(" attribute can't be opened for a second time\n"); goto error; } @@ -10663,8 +10649,8 @@ test_get_number_attributes(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or object aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, attribute, or object aren't supported with this " + "connector\n"); return 0; } @@ -10672,20 +10658,20 @@ test_get_number_attributes(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME); + printf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME); goto error; } @@ -10698,20 +10684,20 @@ test_get_number_attributes(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -10726,13 +10712,13 @@ test_get_number_attributes(void) /* Now get the number of attributes from the group */ if (H5Oget_info3(group_id, &obj_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve group info using H5Oget_info3\n"); + printf(" couldn't retrieve group info using H5Oget_info3\n"); PART_ERROR(H5Oget_info); } if (obj_info.num_attrs != 1) { H5_FAILED(); - HDprintf(" invalid number of attributes received\n"); + printf(" invalid number of attributes received\n"); PART_ERROR(H5Oget_info); } @@ -10747,13 +10733,13 @@ test_get_number_attributes(void) if (H5Oget_info_by_name3(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve group info using H5Oget_info_by_name3\n"); + printf(" couldn't retrieve group info using H5Oget_info_by_name3\n"); PART_ERROR(H5Oget_info_by_name); } if (obj_info.num_attrs != 1) { H5_FAILED(); - HDprintf(" invalid number of attributes received\n"); + printf(" invalid number of attributes received\n"); PART_ERROR(H5Oget_info_by_name); } @@ -10768,13 +10754,13 @@ test_get_number_attributes(void) if (H5Oget_info_by_idx3(container_group, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve group info using H5Oget_info_by_idx3\n"); + printf(" couldn't retrieve group info using H5Oget_info_by_idx3\n"); PART_ERROR(H5Oget_info_by_idx); } if (obj_info.num_attrs != 1) { H5_FAILED(); - HDprintf(" invalid number of attributes received\n"); + printf(" invalid number of attributes received\n"); PART_ERROR(H5Oget_info_by_idx); } @@ -10845,27 +10831,27 @@ test_attr_shared_dtype(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, stored datatype, or object aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, attribute, stored datatype, or object aren't " + "supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_SHARED_DTYPE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME); + printf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME); goto error; } @@ -10879,73 +10865,73 @@ test_attr_shared_dtype(void) if (H5Tcommit2(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, attr_dtype, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype\n"); + printf(" couldn't commit datatype\n"); goto error; } if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n"); + printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n"); goto error; } if (obj_info.rc != 1) { H5_FAILED(); - HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc); + printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc); goto error; } if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute\n"); + printf(" couldn't create attribute\n"); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute exists\n"); + printf(" couldn't determine if attribute exists\n"); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n"); + printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n"); goto error; } if (obj_info.rc != 2) { H5_FAILED(); - HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc); + printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc); goto error; } if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_SHARED_DTYPE_DSET_NAME, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); goto error; } if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n"); + printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n"); goto error; } if (obj_info.rc != 3) { H5_FAILED(); - HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc); + printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc); goto error; } @@ -11016,7 +11002,7 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t * } if (HDstrncmp(attr_name, expected_attr_name, ATTRIBUTE_ITERATE_TEST_ATTR_NAME_BUF_SIZE)) { - HDprintf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name); + printf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name); ret_val = H5_ITER_ERROR; goto done; } @@ -11043,8 +11029,8 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t * if (ainfo->corder != expected_crt_order) { H5_FAILED(); - HDprintf(" attribute's creation order value of %lld didn't match expected value of %lld\n", - (long long)ainfo->corder, (long long)expected_crt_order); + printf(" attribute's creation order value of %lld didn't match expected value of %lld\n", + (long long)ainfo->corder, (long long)expected_crt_order); ret_val = H5_ITER_ERROR; goto done; } @@ -11073,17 +11059,17 @@ H5_api_attribute_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Attribute Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Attribute Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(attribute_tests); i++) { nerrors += (*attribute_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); return nerrors; } diff --git a/test/API/H5_api_dataset_test.c b/test/API/H5_api_dataset_test.c index e31ed43..e3843a6 100644 --- a/test/API/H5_api_dataset_test.c +++ b/test/API/H5_api_dataset_test.c @@ -169,13 +169,13 @@ test_create_dataset_under_root(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or dataset aren't supported with this connector\n"); + printf(" API functions for basic file or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -189,7 +189,7 @@ test_create_dataset_under_root(void) if ((dset_id = H5Dcreate2(file_id, DATASET_CREATE_UNDER_ROOT_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_ROOT_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_ROOT_DSET_NAME); goto error; } @@ -238,27 +238,26 @@ test_create_dataset_under_existing_group(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_UNDER_EXISTING_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_UNDER_EXISTING_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATASET_CREATE_UNDER_EXISTING_GROUP_NAME); goto error; } @@ -272,7 +271,7 @@ test_create_dataset_under_existing_group(void) if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_UNDER_EXISTING_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_EXISTING_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_EXISTING_DSET_NAME); goto error; } @@ -327,8 +326,7 @@ test_create_dataset_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -336,20 +334,20 @@ test_create_dataset_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_INVALID_PARAMS_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATASET_CREATE_INVALID_PARAMS_GROUP_NAME); goto error; } @@ -377,7 +375,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with an invalid loc_id!\n"); + printf(" created dataset using H5Dcreate with an invalid loc_id!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_loc_id); } @@ -399,7 +397,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with a NULL dataset name!\n"); + printf(" created dataset using H5Dcreate with a NULL dataset name!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_dataset_name); } @@ -413,7 +411,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with an invalid dataset name of ''!\n"); + printf(" created dataset using H5Dcreate with an invalid dataset name of ''!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_dataset_name); } @@ -435,7 +433,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with an invalid datatype!\n"); + printf(" created dataset using H5Dcreate with an invalid datatype!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_datatype); } @@ -457,7 +455,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with an invalid dataspace!\n"); + printf(" created dataset using H5Dcreate with an invalid dataspace!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_dataspace); } @@ -479,7 +477,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with an invalid LCPL!\n"); + printf(" created dataset using H5Dcreate with an invalid LCPL!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_lcpl); } @@ -501,7 +499,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with an invalid DCPL!\n"); + printf(" created dataset using H5Dcreate with an invalid DCPL!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_dcpl); } @@ -523,7 +521,7 @@ test_create_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created dataset using H5Dcreate with an invalid DAPL!\n"); + printf(" created dataset using H5Dcreate with an invalid DAPL!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_invalid_dapl); } @@ -584,27 +582,26 @@ test_create_anonymous_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_ANONYMOUS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_ANONYMOUS_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATASET_CREATE_ANONYMOUS_GROUP_NAME); goto error; } @@ -616,7 +613,7 @@ test_create_anonymous_dataset(void) if ((dset_id = H5Dcreate_anon(group_id, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create anonymous dataset\n"); + printf(" couldn't create anonymous dataset\n"); goto error; } @@ -672,8 +669,7 @@ test_create_anonymous_dataset_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -681,21 +677,21 @@ test_create_anonymous_dataset_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME); + printf(" couldn't create container group '%s'\n", + DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME); goto error; } @@ -722,7 +718,7 @@ test_create_anonymous_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous dataset using an invalid loc_id!\n"); + printf(" created anonymous dataset using an invalid loc_id!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_anon_invalid_loc_id); } @@ -743,7 +739,7 @@ test_create_anonymous_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous dataset using an invalid dataset datatype!\n"); + printf(" created anonymous dataset using an invalid dataset datatype!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_anon_invalid_datatype); } @@ -764,7 +760,7 @@ test_create_anonymous_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous dataset using an invalid dataset dataspace!\n"); + printf(" created anonymous dataset using an invalid dataset dataspace!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_anon_invalid_dataspace); } @@ -785,7 +781,7 @@ test_create_anonymous_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous dataset using an invalid DCPL!\n"); + printf(" created anonymous dataset using an invalid DCPL!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_anon_invalid_dcpl); } @@ -806,7 +802,7 @@ test_create_anonymous_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous dataset using an invalid DAPL!\n"); + printf(" created anonymous dataset using an invalid DAPL!\n"); H5Dclose(dset_id); PART_ERROR(H5Dcreate_anon_invalid_dapl); } @@ -868,28 +864,27 @@ test_create_dataset_null_space(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME); goto error; } @@ -902,7 +897,7 @@ test_create_dataset_null_space(void) if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME); goto error; } @@ -911,7 +906,7 @@ test_create_dataset_null_space(void) if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME); goto error; } @@ -966,28 +961,27 @@ test_create_dataset_scalar_space(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME); goto error; } @@ -1000,7 +994,7 @@ test_create_dataset_scalar_space(void) if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME); goto error; } @@ -1009,7 +1003,7 @@ test_create_dataset_scalar_space(void) if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME); goto error; } @@ -1066,27 +1060,26 @@ test_create_zero_dim_dset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ZERO_DIM_DSET_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", ZERO_DIM_DSET_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", ZERO_DIM_DSET_TEST_GROUP_NAME); goto error; } @@ -1096,27 +1089,27 @@ test_create_zero_dim_dset(void) if ((dset_id = H5Dcreate2(group_id, ZERO_DIM_DSET_TEST_DSET_NAME, H5T_NATIVE_INT, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create 0-sized dataset\n"); + printf(" failed to create 0-sized dataset\n"); goto error; } if (H5Sselect_none(fspace_id) < 0) { H5_FAILED(); - HDprintf(" failed to set none selection in dataset's file dataspace\n"); + printf(" failed to set none selection in dataset's file dataspace\n"); goto error; } /* Attempt to write 0 elements to dataset */ if (H5Dwrite(dset_id, H5T_NATIVE_INT, fspace_id, fspace_id, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" failed to write 0 elements to 0-sized dataset\n"); + printf(" failed to write 0 elements to 0-sized dataset\n"); goto error; } /* Attempt to read 0 elements from dataset */ if (H5Dread(dset_id, H5T_NATIVE_INT, fspace_id, fspace_id, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" failed to read 0 elements from 0-sized dataset\n"); + printf(" failed to read 0 elements from 0-sized dataset\n"); goto error; } @@ -1168,27 +1161,26 @@ test_create_dataset_random_shapes(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SHAPE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group\n"); + printf(" couldn't create container sub-group\n"); goto error; } @@ -1201,7 +1193,7 @@ test_create_dataset_random_shapes(void) if ((space_id = generate_random_dataspace(ndims, NULL, NULL, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataspace\n"); + printf(" couldn't create dataspace\n"); goto error; } @@ -1210,7 +1202,7 @@ test_create_dataset_random_shapes(void) if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); goto error; } @@ -1273,28 +1265,26 @@ test_create_dataset_predefined_types(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create sub-container group '%s'\n", - DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME); + printf(" couldn't create sub-container group '%s'\n", DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME); goto error; } @@ -1310,7 +1300,7 @@ test_create_dataset_predefined_types(void) if ((dset_id = H5Dcreate2(group_id, name, predefined_type_test_table[i], fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", name); + printf(" couldn't create dataset '%s'\n", name); goto error; } @@ -1321,7 +1311,7 @@ test_create_dataset_predefined_types(void) if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", name); + printf(" failed to open dataset '%s'\n", name); goto error; } @@ -1373,8 +1363,7 @@ test_create_dataset_string_types(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -1382,32 +1371,32 @@ test_create_dataset_string_types(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_STRING_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_STRING_TYPE_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_STRING_TYPE_TEST_SUBGROUP_NAME); goto error; } if ((type_id_fixed = H5Tcreate(H5T_STRING, DATASET_STRING_TYPE_TEST_STRING_LENGTH)) < 0) { H5_FAILED(); - HDprintf(" couldn't create fixed-length string type\n"); + printf(" couldn't create fixed-length string type\n"); goto error; } if ((type_id_variable = H5Tcreate(H5T_STRING, H5T_VARIABLE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create variable-length string type\n"); + printf(" couldn't create variable-length string type\n"); goto error; } @@ -1425,8 +1414,8 @@ test_create_dataset_string_types(void) if ((dset_id_fixed = H5Dcreate2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME1, type_id_fixed, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create fixed-length string dataset '%s'\n", - DATASET_STRING_TYPE_TEST_DSET_NAME1); + printf(" couldn't create fixed-length string dataset '%s'\n", + DATASET_STRING_TYPE_TEST_DSET_NAME1); PART_ERROR(H5Dcreate_fixed_string_type); } @@ -1441,7 +1430,7 @@ test_create_dataset_string_types(void) if ((dset_id_fixed = H5Dopen2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME1); + printf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME1); PART_ERROR(H5Dcreate_fixed_string_type); } @@ -1457,8 +1446,8 @@ test_create_dataset_string_types(void) H5Dcreate2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME2, type_id_variable, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create variable-length string dataset '%s'\n", - DATASET_STRING_TYPE_TEST_DSET_NAME2); + printf(" couldn't create variable-length string dataset '%s'\n", + DATASET_STRING_TYPE_TEST_DSET_NAME2); PART_ERROR(H5Dcreate_variable_string_type); } @@ -1474,7 +1463,7 @@ test_create_dataset_string_types(void) if ((dset_id_variable = H5Dopen2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME2); + printf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME2); PART_ERROR(H5Dcreate_variable_string_type); } @@ -1546,8 +1535,7 @@ test_create_dataset_compound_types(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -1561,20 +1549,20 @@ test_create_dataset_compound_types(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME); goto error; } @@ -1601,7 +1589,7 @@ test_create_dataset_compound_types(void) if ((compound_type = H5Tcreate(H5T_COMPOUND, 1)) < 0) { H5_FAILED(); - HDprintf(" couldn't create compound datatype\n"); + printf(" couldn't create compound datatype\n"); goto error; } @@ -1614,13 +1602,13 @@ test_create_dataset_compound_types(void) if ((type_pool[j] = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create compound datatype member %zu\n", j); + printf(" couldn't create compound datatype member %zu\n", j); goto error; } if (!(member_size = H5Tget_size(type_pool[j]))) { H5_FAILED(); - HDprintf(" couldn't get compound member %zu size\n", j); + printf(" couldn't get compound member %zu size\n", j); goto error; } @@ -1643,7 +1631,7 @@ test_create_dataset_compound_types(void) if ((dset_id = H5Dcreate2(group_id, dset_name, compound_type, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", dset_name); + printf(" couldn't create dataset '%s'\n", dset_name); goto error; } @@ -1652,7 +1640,7 @@ test_create_dataset_compound_types(void) if ((dset_id = H5Dopen2(group_id, dset_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", dset_name); + printf(" failed to open dataset '%s'\n", dset_name); goto error; } @@ -1717,33 +1705,32 @@ test_create_dataset_enum_types(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME); goto error; } if ((enum_native = H5Tcreate(H5T_ENUM, sizeof(int))) < 0) { H5_FAILED(); - HDprintf(" couldn't create native enum type\n"); + printf(" couldn't create native enum type\n"); goto error; } @@ -1753,7 +1740,7 @@ test_create_dataset_enum_types(void) if ((enum_non_native = H5Tenum_create(H5T_STD_U32LE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create non-native enum type\n"); + printf(" couldn't create non-native enum type\n"); goto error; } @@ -1772,14 +1759,14 @@ test_create_dataset_enum_types(void) if ((dset_id_native = H5Dcreate2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME1, enum_native, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1); + printf(" couldn't create native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1); goto error; } if ((dset_id_non_native = H5Dcreate2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME2, enum_non_native, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create non-native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2); + printf(" couldn't create non-native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2); goto error; } @@ -1790,13 +1777,13 @@ test_create_dataset_enum_types(void) if ((dset_id_native = H5Dopen2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1); + printf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1); goto error; } if ((dset_id_non_native = H5Dopen2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2); + printf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2); goto error; } @@ -1865,27 +1852,26 @@ test_create_dataset_array_types(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME); goto error; } @@ -1899,7 +1885,7 @@ test_create_dataset_array_types(void) if ((array_type_id1 = H5Tarray_create2(array_base_type_id1, DATASET_ARRAY_TYPE_TEST_RANK1, array_dims1)) < 0) { H5_FAILED(); - HDprintf(" couldn't create first array type\n"); + printf(" couldn't create first array type\n"); goto error; } @@ -1912,7 +1898,7 @@ test_create_dataset_array_types(void) if ((array_type_id2 = H5Tarray_create2(array_base_type_id2, DATASET_ARRAY_TYPE_TEST_RANK2, array_dims2)) < 0) { H5_FAILED(); - HDprintf(" couldn't create second array type\n"); + printf(" couldn't create second array type\n"); goto error; } @@ -1926,13 +1912,13 @@ test_create_dataset_array_types(void) if ((nested_type_id = H5Tarray_create2(array_base_type_id3, DATASET_ARRAY_TYPE_TEST_RANK3, array_dims3)) < 0) { H5_FAILED(); - HDprintf(" couldn't create nested array base type\n"); + printf(" couldn't create nested array base type\n"); goto error; } if ((array_type_id3 = H5Tarray_create2(nested_type_id, DATASET_ARRAY_TYPE_TEST_RANK3, array_dims3)) < 0) { H5_FAILED(); - HDprintf(" couldn't create nested array type\n"); + printf(" couldn't create nested array type\n"); goto error; } @@ -1942,21 +1928,21 @@ test_create_dataset_array_types(void) if ((dset_id1 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME1, array_type_id1, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1); + printf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1); goto error; } if ((dset_id2 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME2, array_type_id2, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2); + printf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2); goto error; } if ((dset_id3 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME3, array_type_id3, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create nested array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3); + printf(" couldn't create nested array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3); goto error; } @@ -1969,19 +1955,19 @@ test_create_dataset_array_types(void) if ((dset_id1 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1); + printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1); goto error; } if ((dset_id2 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2); + printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2); goto error; } if ((dset_id3 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3); + printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3); goto error; } @@ -2063,8 +2049,8 @@ test_create_dataset_creation_properties(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or dataset " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset " + "aren't supported with this connector\n"); return 0; } @@ -2072,20 +2058,20 @@ test_create_dataset_creation_properties(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME); goto error; } @@ -2119,7 +2105,7 @@ test_create_dataset_creation_properties(void) if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); PART_ERROR(DCPL_alloc_time_test); } @@ -2128,7 +2114,7 @@ test_create_dataset_creation_properties(void) if (H5Pset_alloc_time(dcpl_id, alloc_times[i]) < 0) { H5_FAILED(); - HDprintf(" couldn't set alloc time property value\n"); + printf(" couldn't set alloc time property value\n"); PART_ERROR(DCPL_alloc_time_test); } @@ -2137,7 +2123,7 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", name); + printf(" couldn't create dataset '%s'\n", name); PART_ERROR(DCPL_alloc_time_test); } @@ -2152,7 +2138,7 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", name); + printf(" couldn't open dataset '%s'\n", name); PART_ERROR(DCPL_alloc_time_test); } @@ -2189,13 +2175,13 @@ test_create_dataset_creation_properties(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking is not supported by this VOL connector\n"); + printf(" creation order tracking is not supported by this VOL connector\n"); PART_EMPTY(DCPL_attr_crt_order_test); } if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); PART_ERROR(DCPL_attr_crt_order_test); } @@ -2204,7 +2190,7 @@ test_create_dataset_creation_properties(void) if (H5Pset_attr_creation_order(dcpl_id, creation_orders[i]) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute creation order property\n"); + printf(" couldn't set attribute creation order property\n"); PART_ERROR(DCPL_attr_crt_order_test); } @@ -2213,7 +2199,7 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", name); + printf(" couldn't create dataset '%s'\n", name); PART_ERROR(DCPL_attr_crt_order_test); } @@ -2228,7 +2214,7 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", name); + printf(" couldn't open dataset '%s'\n", name); PART_ERROR(DCPL_attr_crt_order_test); } @@ -2262,22 +2248,22 @@ test_create_dataset_creation_properties(void) if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); PART_ERROR(DCPL_attr_phase_change_test); } if (H5Pset_attr_phase_change(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_MAX_COMPACT, DATASET_CREATION_PROPERTIES_TEST_MIN_DENSE) < 0) { H5_FAILED(); - HDprintf(" couldn't set attribute phase change property\n"); + printf(" couldn't set attribute phase change property\n"); PART_ERROR(DCPL_attr_phase_change_test); } if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME); PART_ERROR(DCPL_attr_phase_change_test); } @@ -2293,8 +2279,8 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME); + printf(" couldn't open dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME); PART_ERROR(DCPL_attr_phase_change_test); } @@ -2328,7 +2314,7 @@ test_create_dataset_creation_properties(void) if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); PART_ERROR(DCPL_fill_time_property_test); } @@ -2337,7 +2323,7 @@ test_create_dataset_creation_properties(void) if (H5Pset_fill_time(dcpl_id, fill_times[i]) < 0) { H5_FAILED(); - HDprintf(" couldn't set dataset fill time property\n"); + printf(" couldn't set dataset fill time property\n"); PART_ERROR(DCPL_fill_time_property_test); } @@ -2346,7 +2332,7 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", name); + printf(" couldn't create dataset '%s'\n", name); PART_ERROR(DCPL_fill_time_property_test); } @@ -2361,7 +2347,7 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", name); + printf(" couldn't open dataset '%s'\n", name); PART_ERROR(DCPL_fill_time_property_test); } @@ -2397,46 +2383,46 @@ test_create_dataset_creation_properties(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILTERS)) { SKIPPED(); - HDprintf(" dataset filters are not supported by this VOL connector\n"); + printf(" dataset filters are not supported by this VOL connector\n"); PART_EMPTY(DCPL_filters_test); } if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); PART_ERROR(DCPL_filters_test); } if (H5Pset_chunk(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_SHAPE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" couldn't set chunking on DCPL\n"); + printf(" couldn't set chunking on DCPL\n"); PART_ERROR(DCPL_filters_test); } /* Set all of the available filters on the DCPL */ if (H5Pset_deflate(dcpl_id, 7) < 0) { H5_FAILED(); - HDprintf(" couldn't set deflate filter on DCPL\n"); + printf(" couldn't set deflate filter on DCPL\n"); PART_ERROR(DCPL_filters_test); } if (H5Pset_shuffle(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" couldn't set shuffle filter on DCPL\n"); + printf(" couldn't set shuffle filter on DCPL\n"); PART_ERROR(DCPL_filters_test); } if (H5Pset_fletcher32(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" couldn't set fletcher32 filter on DCPL\n"); + printf(" couldn't set fletcher32 filter on DCPL\n"); PART_ERROR(DCPL_filters_test); } if (H5Pset_nbit(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" couldn't set nbit filter on DCPL\n"); + printf(" couldn't set nbit filter on DCPL\n"); PART_ERROR(DCPL_filters_test); } if (H5Pset_scaleoffset(dcpl_id, H5Z_SO_FLOAT_ESCALE, 2) < 0) { H5_FAILED(); - HDprintf(" couldn't set scaleoffset filter on DCPL\n"); + printf(" couldn't set scaleoffset filter on DCPL\n"); PART_ERROR(DCPL_filters_test); } @@ -2446,8 +2432,8 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME, H5T_NATIVE_INT, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME); PART_ERROR(DCPL_filters_test); } @@ -2463,8 +2449,8 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME); + printf(" couldn't open dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME); PART_ERROR(DCPL_filters_test); } @@ -2499,7 +2485,7 @@ test_create_dataset_creation_properties(void) if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); PART_ERROR(DCPL_storage_layout_test); } @@ -2508,7 +2494,7 @@ test_create_dataset_creation_properties(void) if (H5Pset_layout(dcpl_id, layouts[i]) < 0) { H5_FAILED(); - HDprintf(" couldn't set storage layout property\n"); + printf(" couldn't set storage layout property\n"); PART_ERROR(DCPL_storage_layout_test); } @@ -2522,7 +2508,7 @@ test_create_dataset_creation_properties(void) if (H5Pset_chunk(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_CHUNK_DIM_RANK, local_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" couldn't set chunk dimensionality\n"); + printf(" couldn't set chunk dimensionality\n"); PART_ERROR(DCPL_storage_layout_test); } } @@ -2534,7 +2520,7 @@ test_create_dataset_creation_properties(void) (H5D_COMPACT == layouts[i]) ? compact_fspace_id : fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", name); + printf(" couldn't create dataset '%s'\n", name); PART_ERROR(DCPL_storage_layout_test); } @@ -2549,7 +2535,7 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", name); + printf(" couldn't open dataset '%s'\n", name); PART_ERROR(DCPL_storage_layout_test); } @@ -2583,27 +2569,27 @@ test_create_dataset_creation_properties(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_TRACK_TIMES)) { SKIPPED(); - HDprintf(" object time tracking is not supported by this VOL connector\n"); + printf(" object time tracking is not supported by this VOL connector\n"); PART_EMPTY(DCPL_track_obj_times_test); } if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); PART_ERROR(DCPL_track_obj_times_test); } if (H5Pset_obj_track_times(dcpl_id, true) < 0) { H5_FAILED(); - HDprintf(" couldn't set object time tracking property\n"); + printf(" couldn't set object time tracking property\n"); PART_ERROR(DCPL_track_obj_times_test); } if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME); PART_ERROR(DCPL_track_obj_times_test); } @@ -2619,8 +2605,8 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME); + printf(" couldn't open dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME); PART_ERROR(DCPL_track_obj_times_test); } @@ -2635,15 +2621,15 @@ test_create_dataset_creation_properties(void) if (H5Pset_obj_track_times(dcpl_id, false) < 0) { H5_FAILED(); - HDprintf(" couldn't set object time tracking property\n"); + printf(" couldn't set object time tracking property\n"); PART_ERROR(DCPL_track_obj_times_test); } if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME); PART_ERROR(DCPL_track_obj_times_test); } @@ -2659,8 +2645,8 @@ test_create_dataset_creation_properties(void) if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME); + printf(" couldn't open dataset '%s'\n", + DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME); PART_ERROR(DCPL_track_obj_times_test); } @@ -2746,58 +2732,57 @@ test_create_many_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_MANY_CREATE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATASET_MANY_CREATE_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATASET_MANY_CREATE_GROUP_NAME); goto error; } if ((dataspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create scalar data space\n"); + printf(" couldn't create scalar data space\n"); goto error; } - HDprintf("\n"); + printf("\n"); for (i = 0; i < DATASET_NUMB; i++) { - HDprintf("\r %u/%u", i + 1, DATASET_NUMB); + printf("\r %u/%u", i + 1, DATASET_NUMB); sprintf(dset_name, "dset_%02u", i); data = i % 256; if ((dset_id = H5Dcreate2(group_id, dset_name, H5T_NATIVE_UCHAR, dataspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", dset_name); + printf(" couldn't create dataset '%s'\n", dset_name); goto error; } if (H5Dwrite(dset_id, H5T_NATIVE_UCHAR, H5S_ALL, H5S_ALL, H5P_DEFAULT, &data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", dset_name); + printf(" couldn't write to dataset '%s'\n", dset_name); goto error; } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close dataset '%s'\n", dset_name); + printf(" couldn't close dataset '%s'\n", dset_name); goto error; } } @@ -2862,8 +2847,7 @@ test_open_dataset_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -2871,20 +2855,20 @@ test_open_dataset_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_OPEN_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATASET_OPEN_INVALID_PARAMS_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATASET_OPEN_INVALID_PARAMS_GROUP_NAME); goto error; } @@ -2898,7 +2882,7 @@ test_open_dataset_invalid_params(void) if ((dset_id = H5Dcreate2(group_id, DATASET_OPEN_INVALID_PARAMS_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_OPEN_INVALID_PARAMS_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_OPEN_INVALID_PARAMS_DSET_NAME); goto error; } @@ -2921,7 +2905,7 @@ test_open_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" opened dataset using H5Dopen2 with an invalid loc_id!\n"); + printf(" opened dataset using H5Dopen2 with an invalid loc_id!\n"); H5Dclose(dset_id); PART_ERROR(H5Dopen_invalid_loc_id); } @@ -2942,7 +2926,7 @@ test_open_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" opened dataset using H5Dopen2 with a NULL dataset name!\n"); + printf(" opened dataset using H5Dopen2 with a NULL dataset name!\n"); H5Dclose(dset_id); PART_ERROR(H5Dopen_invalid_dataset_name); } @@ -2955,7 +2939,7 @@ test_open_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" opened dataset using H5Dopen2 with an invalid dataset name of ''!\n"); + printf(" opened dataset using H5Dopen2 with an invalid dataset name of ''!\n"); H5Dclose(dset_id); PART_ERROR(H5Dopen_invalid_dataset_name); } @@ -2976,7 +2960,7 @@ test_open_dataset_invalid_params(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" opened dataset using H5Dopen2 with an invalid DAPL!\n"); + printf(" opened dataset using H5Dopen2 with an invalid DAPL!\n"); H5Dclose(dset_id); PART_ERROR(H5Dopen_invalid_dapl); } @@ -3034,13 +3018,13 @@ test_close_dataset_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or dataset aren't supported with this connector\n"); + printf(" API functions for basic file or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -3052,7 +3036,7 @@ test_close_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Dclose succeeded with an invalid dataset ID!\n"); + printf(" H5Dclose succeeded with an invalid dataset ID!\n"); goto error; } @@ -3098,8 +3082,7 @@ test_get_dataset_space_and_type(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -3107,20 +3090,20 @@ test_get_dataset_space_and_type(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME); goto error; } @@ -3134,7 +3117,7 @@ test_get_dataset_space_and_type(void) if ((dset_id = H5Dcreate2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, dset_dtype, dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME); goto error; } @@ -3149,7 +3132,7 @@ test_get_dataset_space_and_type(void) if ((tmp_type_id = H5Dget_type(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dataset's datatype\n"); + printf(" couldn't retrieve dataset's datatype\n"); PART_ERROR(H5Dget_type); } @@ -3158,13 +3141,13 @@ test_get_dataset_space_and_type(void) if (types_equal < 0) { H5_FAILED(); - HDprintf(" datatype was invalid\n"); + printf(" datatype was invalid\n"); PART_ERROR(H5Dget_type); } if (!types_equal) { H5_FAILED(); - HDprintf(" dataset's datatype did not match\n"); + printf(" dataset's datatype did not match\n"); PART_ERROR(H5Dget_type); } } @@ -3179,7 +3162,7 @@ test_get_dataset_space_and_type(void) if ((tmp_space_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dataset's dataspace\n"); + printf(" couldn't retrieve dataset's dataspace\n"); PART_ERROR(H5Dget_space); } @@ -3188,14 +3171,14 @@ test_get_dataset_space_and_type(void) if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dataspace dimensions\n"); + printf(" couldn't retrieve dataspace dimensions\n"); PART_ERROR(H5Dget_space); } for (i = 0; i < DATASET_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) if (space_dims[i] != dset_dims[i]) { H5_FAILED(); - HDprintf(" dataset's dataspace dims didn't match\n"); + printf(" dataset's dataspace dims didn't match\n"); PART_ERROR(H5Dget_space); } } @@ -3238,13 +3221,13 @@ test_get_dataset_space_and_type(void) if ((dset_id = H5Dopen2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME); PART_ERROR(H5Dget_type_reopened); } if ((tmp_type_id = H5Dget_type(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dataset's datatype\n"); + printf(" couldn't retrieve dataset's datatype\n"); PART_ERROR(H5Dget_type_reopened); } @@ -3253,13 +3236,13 @@ test_get_dataset_space_and_type(void) if (types_equal < 0) { H5_FAILED(); - HDprintf(" datatype was invalid\n"); + printf(" datatype was invalid\n"); PART_ERROR(H5Dget_type_reopened); } if (!types_equal) { H5_FAILED(); - HDprintf(" dataset's datatype did not match\n"); + printf(" dataset's datatype did not match\n"); PART_ERROR(H5Dget_type_reopened); } } @@ -3283,13 +3266,13 @@ test_get_dataset_space_and_type(void) if ((dset_id = H5Dopen2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME); PART_ERROR(H5Dget_space_reopened); } if ((tmp_space_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dataset's dataspace\n"); + printf(" couldn't retrieve dataset's dataspace\n"); PART_ERROR(H5Dget_space_reopened); } @@ -3298,14 +3281,14 @@ test_get_dataset_space_and_type(void) if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve dataspace dimensions\n"); + printf(" couldn't retrieve dataspace dimensions\n"); PART_ERROR(H5Dget_space_reopened); } for (i = 0; i < DATASET_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) { if (space_dims[i] != dset_dims[i]) { H5_FAILED(); - HDprintf(" dataset's dataspace dims didn't match!\n"); + printf(" dataset's dataspace dims didn't match!\n"); PART_ERROR(H5Dget_space_reopened); } } @@ -3387,8 +3370,7 @@ test_get_dataset_space_and_type_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -3396,21 +3378,21 @@ test_get_dataset_space_and_type_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", + DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -3424,7 +3406,7 @@ test_get_dataset_space_and_type_invalid_params(void) if ((dset_id = H5Dcreate2(group_id, DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype, dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME); goto error; } @@ -3444,7 +3426,7 @@ test_get_dataset_space_and_type_invalid_params(void) if (tmp_type_id >= 0) { H5_FAILED(); - HDprintf(" retrieved copy of dataset's datatype using an invalid dataset ID!\n"); + printf(" retrieved copy of dataset's datatype using an invalid dataset ID!\n"); PART_ERROR(H5Dget_type_invalid_dset_id); } @@ -3464,7 +3446,7 @@ test_get_dataset_space_and_type_invalid_params(void) if (tmp_space_id >= 0) { H5_FAILED(); - HDprintf(" retrieved copy of dataset's dataspace using an invalid dataset ID!\n"); + printf(" retrieved copy of dataset's dataspace using an invalid dataset ID!\n"); PART_ERROR(H5Dget_space_invalid_dset_id); } @@ -3571,8 +3553,8 @@ test_dataset_property_lists(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } @@ -3580,27 +3562,27 @@ test_dataset_property_lists(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } /** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */ if (H5VLget_connector_name(file_id, vol_name, 5) < 0) { H5_FAILED(); - HDprintf(" couldn't get VOL connector name\n"); + printf(" couldn't get VOL connector name\n"); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME); goto error; } @@ -3621,27 +3603,27 @@ test_dataset_property_lists(void) if ((dcpl_id1 = H5Pcreate(H5P_DATASET_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DCPL\n"); + printf(" couldn't create DCPL\n"); goto error; } if (H5Pset_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" couldn't set DCPL property\n"); + printf(" couldn't set DCPL property\n"); goto error; } if ((dset_id1 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME1, dset_dtype1, space_id, H5P_DEFAULT, dcpl_id1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1); + printf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1); goto error; } if ((dset_id2 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME2, dset_dtype2, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2); + printf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2); goto error; } @@ -3660,13 +3642,13 @@ test_dataset_property_lists(void) * does not */ if ((dcpl_id1 = H5Dget_create_plist(dset_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Dget_create_plist); } if ((dcpl_id2 = H5Dget_create_plist(dset_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Dget_create_plist); } @@ -3678,14 +3660,14 @@ test_dataset_property_lists(void) if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" couldn't get DCPL property value\n"); + printf(" couldn't get DCPL property value\n"); PART_ERROR(H5Dget_create_plist); } for (i = 0; i < DATASET_PROPERTY_LIST_TEST_SPACE_RANK; i++) if (tmp_chunk_dims[i] != chunk_dims[i]) { H5_FAILED(); - HDprintf(" DCPL property values were incorrect\n"); + printf(" DCPL property values were incorrect\n"); PART_ERROR(H5Dget_create_plist); } @@ -3698,8 +3680,8 @@ test_dataset_property_lists(void) /* DAOS VOL can auto chunk, so don't fail */ if (err_ret >= 0 && strcmp(vol_name, "daos") != 0) { H5_FAILED(); - HDprintf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked " - "layout)\n"); + printf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked " + "layout)\n"); PART_ERROR(H5Dget_create_plist); } } @@ -3714,27 +3696,27 @@ test_dataset_property_lists(void) if ((dapl_id1 = H5Pcreate(H5P_DATASET_ACCESS)) < 0) { H5_FAILED(); - HDprintf(" couldn't create DAPL\n"); + printf(" couldn't create DAPL\n"); PART_ERROR(H5Dget_access_plist); } if (H5Pset_efile_prefix(dapl_id1, path_prefix) < 0) { H5_FAILED(); - HDprintf(" couldn't set DAPL property\n"); + printf(" couldn't set DAPL property\n"); PART_ERROR(H5Dget_access_plist); } if ((dset_id3 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME3, dset_dtype3, space_id, H5P_DEFAULT, H5P_DEFAULT, dapl_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); PART_ERROR(H5Dget_access_plist); } if ((dset_id4 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME4, dset_dtype4, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); PART_ERROR(H5Dget_access_plist); } @@ -3751,13 +3733,13 @@ test_dataset_property_lists(void) * does not */ if ((dapl_id1 = H5Dget_access_plist(dset_id3)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Dget_access_plist); } if ((dapl_id2 = H5Dget_access_plist(dset_id4)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Dget_access_plist); } @@ -3767,25 +3749,25 @@ test_dataset_property_lists(void) if ((buf_size = H5Pget_efile_prefix(dapl_id1, NULL, 0)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve size for property value buffer\n"); + printf(" couldn't retrieve size for property value buffer\n"); PART_ERROR(H5Dget_access_plist); } if (NULL == (tmp_prefix = (char *)HDcalloc(1, (size_t)buf_size + 1))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for property value\n"); + printf(" couldn't allocate buffer for property value\n"); PART_ERROR(H5Dget_access_plist); } if (H5Pget_efile_prefix(dapl_id1, tmp_prefix, (size_t)buf_size + 1) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve property list value\n"); + printf(" couldn't retrieve property list value\n"); PART_ERROR(H5Dget_access_plist); } if (HDstrncmp(tmp_prefix, path_prefix, (size_t)buf_size + 1)) { H5_FAILED(); - HDprintf(" DAPL values were incorrect!\n"); + printf(" DAPL values were incorrect!\n"); PART_ERROR(H5Dget_access_plist); } @@ -3793,13 +3775,13 @@ test_dataset_property_lists(void) if (H5Pget_efile_prefix(dapl_id2, tmp_prefix, (size_t)buf_size) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve property list value\n"); + printf(" couldn't retrieve property list value\n"); PART_ERROR(H5Dget_access_plist); } if (!HDstrncmp(tmp_prefix, path_prefix, (size_t)buf_size + 1)) { H5_FAILED(); - HDprintf(" DAPL property value was set!\n"); + printf(" DAPL property value was set!\n"); PART_ERROR(H5Dget_access_plist); } } @@ -3850,25 +3832,25 @@ test_dataset_property_lists(void) if ((dset_id1 = H5Dopen2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1); + printf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1); PART_ERROR(H5Dget_create_plist_reopened); } if ((dset_id2 = H5Dopen2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2); + printf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2); PART_ERROR(H5Dget_create_plist_reopened); } if ((dcpl_id1 = H5Dget_create_plist(dset_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Dget_create_plist_reopened); } if ((dcpl_id2 = H5Dget_create_plist(dset_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Dget_create_plist_reopened); } @@ -3880,14 +3862,14 @@ test_dataset_property_lists(void) if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" couldn't get DCPL property value\n"); + printf(" couldn't get DCPL property value\n"); PART_ERROR(H5Dget_create_plist_reopened); } for (i = 0; i < DATASET_PROPERTY_LIST_TEST_SPACE_RANK; i++) if (tmp_chunk_dims[i] != chunk_dims[i]) { H5_FAILED(); - HDprintf(" DCPL property values were incorrect\n"); + printf(" DCPL property values were incorrect\n"); PART_ERROR(H5Dget_create_plist_reopened); } @@ -3900,8 +3882,8 @@ test_dataset_property_lists(void) /* DAOS VOL can auto chunk, so don't fail */ if (err_ret >= 0 && strcmp(vol_name, "daos") != 0) { H5_FAILED(); - HDprintf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked " - "layout)\n"); + printf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked " + "layout)\n"); PART_ERROR(H5Dget_create_plist_reopened); } } @@ -4088,27 +4070,26 @@ test_read_dataset_small_all(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_ALL_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_READ_TEST_ALL_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_READ_TEST_ALL_GROUP_NAME); goto error; } @@ -4119,7 +4100,7 @@ test_read_dataset_small_all(void) DATASET_SMALL_READ_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME); goto error; } @@ -4133,7 +4114,7 @@ test_read_dataset_small_all(void) if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_ALL_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME); goto error; } @@ -4198,28 +4179,27 @@ test_read_dataset_small_hyperslab(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME); goto error; } @@ -4232,7 +4212,7 @@ test_read_dataset_small_hyperslab(void) DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME); goto error; } @@ -4258,7 +4238,7 @@ test_read_dataset_small_hyperslab(void) if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME); goto error; } @@ -4326,28 +4306,27 @@ test_read_dataset_small_point_selection(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME); goto error; } @@ -4361,7 +4340,7 @@ test_read_dataset_small_point_selection(void) DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME); goto error; } @@ -4381,14 +4360,14 @@ test_read_dataset_small_point_selection(void) if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_SMALL_READ_TEST_POINT_SELECTION_NUM_POINTS, points) < 0) { H5_FAILED(); - HDprintf(" couldn't select points\n"); + printf(" couldn't select points\n"); goto error; } if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME); goto error; } @@ -4481,8 +4460,7 @@ test_dataset_io_point_selections(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -4951,8 +4929,7 @@ test_read_dataset_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -4960,21 +4937,20 @@ test_read_dataset_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -4985,7 +4961,7 @@ test_read_dataset_invalid_params(void) DATASET_READ_INVALID_PARAMS_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_DSET_NAME); goto error; } @@ -5013,7 +4989,7 @@ test_read_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read from dataset using H5Dread with an invalid dataset ID!\n"); + printf(" read from dataset using H5Dread with an invalid dataset ID!\n"); PART_ERROR(H5Dread_invalid_dset_id); } @@ -5033,7 +5009,7 @@ test_read_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read from dataset using H5Dread with an invalid memory datatype!\n"); + printf(" read from dataset using H5Dread with an invalid memory datatype!\n"); PART_ERROR(H5Dread_invalid_datatype); } @@ -5054,7 +5030,7 @@ test_read_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read from dataset using H5Dread with an invalid memory dataspace!\n"); + printf(" read from dataset using H5Dread with an invalid memory dataspace!\n"); PART_ERROR(H5Dread_invalid_mem_dataspace); } @@ -5075,7 +5051,7 @@ test_read_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read from dataset using H5Dread with an invalid file dataspace!\n"); + printf(" read from dataset using H5Dread with an invalid file dataspace!\n"); PART_ERROR(H5Dread_invalid_file_dataspace); } @@ -5096,7 +5072,7 @@ test_read_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read from dataset using H5Dread with an invalid DXPL!\n"); + printf(" read from dataset using H5Dread with an invalid DXPL!\n"); PART_ERROR(H5Dread_invalid_dxpl); } @@ -5117,7 +5093,7 @@ test_read_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" read from dataset using H5Dread with an invalid data buffer!\n"); + printf(" read from dataset using H5Dread with an invalid data buffer!\n"); PART_ERROR(H5Dread_invalid_data_buf); } @@ -5187,27 +5163,26 @@ test_write_dataset_small_all(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME); goto error; } @@ -5218,7 +5193,7 @@ test_write_dataset_small_all(void) DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME); goto error; } @@ -5230,19 +5205,19 @@ test_write_dataset_small_all(void) if ((dset_id = H5Dopen2(group_id, DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); goto error; } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); goto error; } @@ -5254,7 +5229,7 @@ test_write_dataset_small_all(void) if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME); goto error; } @@ -5319,28 +5294,27 @@ test_write_dataset_small_hyperslab(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME); goto error; } @@ -5354,7 +5328,7 @@ test_write_dataset_small_hyperslab(void) DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME); goto error; } @@ -5383,7 +5357,7 @@ test_write_dataset_small_hyperslab(void) if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME); goto error; } @@ -5451,28 +5425,27 @@ test_write_dataset_small_point_selection(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME); goto error; } @@ -5486,7 +5459,7 @@ test_write_dataset_small_point_selection(void) DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME); goto error; } @@ -5509,14 +5482,14 @@ test_write_dataset_small_point_selection(void) if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_NUM_POINTS, points) < 0) { H5_FAILED(); - HDprintf(" couldn't select points\n"); + printf(" couldn't select points\n"); goto error; } if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME); goto error; } @@ -5590,8 +5563,8 @@ test_write_dataset_data_verification(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, basic or more dataset aren't supported with this " + "connector\n"); return 0; } @@ -5599,20 +5572,20 @@ test_write_dataset_data_verification(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME); goto error; } @@ -5623,7 +5596,7 @@ test_write_dataset_data_verification(void) DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); goto error; } @@ -5648,7 +5621,7 @@ test_write_dataset_data_verification(void) if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_all_read); } @@ -5676,40 +5649,40 @@ test_write_dataset_data_verification(void) if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_all_read); } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); PART_ERROR(H5Dwrite_all_read); } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); PART_ERROR(H5Dwrite_all_read); } if (NULL == (data = HDmalloc((hsize_t)space_npoints * DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); PART_ERROR(H5Dwrite_all_read); } if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_all_read); } for (i = 0; i < (hsize_t)space_npoints; i++) if (((int *)data)[i] != (int)i) { H5_FAILED(); - HDprintf(" H5S_ALL selection data verification failed\n"); + printf(" H5S_ALL selection data verification failed\n"); PART_ERROR(H5Dwrite_all_read); } @@ -5730,7 +5703,7 @@ test_write_dataset_data_verification(void) if (NULL == (write_buf = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset write\n"); + printf(" couldn't allocate buffer for dataset write\n"); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -5743,14 +5716,14 @@ test_write_dataset_data_verification(void) if (NULL == (data = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset data verification\n"); + printf(" couldn't allocate buffer for dataset data verification\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -5771,7 +5744,7 @@ test_write_dataset_data_verification(void) if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, stride, count, block) < 0) { H5_FAILED(); - HDprintf(" couldn't select hyperslab for dataset write\n"); + printf(" couldn't select hyperslab for dataset write\n"); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -5780,7 +5753,7 @@ test_write_dataset_data_verification(void) if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" couldn't create memory dataspace\n"); + printf(" couldn't create memory dataspace\n"); PART_ERROR(H5Dwrite_hyperslab_read); } } @@ -5788,7 +5761,7 @@ test_write_dataset_data_verification(void) if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -5819,39 +5792,39 @@ test_write_dataset_data_verification(void) if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints * DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } if (memcmp(data, read_buf, data_size)) { H5_FAILED(); - HDprintf(" hyperslab selection data verification failed\n"); + printf(" hyperslab selection data verification failed\n"); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -5883,7 +5856,7 @@ test_write_dataset_data_verification(void) if (NULL == (write_buf = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset write\n"); + printf(" couldn't allocate buffer for dataset write\n"); PART_ERROR(H5Dwrite_point_sel_read); } @@ -5896,14 +5869,14 @@ test_write_dataset_data_verification(void) if (NULL == (data = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset data verification\n"); + printf(" couldn't allocate buffer for dataset data verification\n"); PART_ERROR(H5Dwrite_point_sel_read); } if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } @@ -5931,7 +5904,7 @@ test_write_dataset_data_verification(void) if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_DATA_VERIFY_WRITE_TEST_NUM_POINTS, points) < 0) { H5_FAILED(); - HDprintf(" couldn't select elements in dataspace\n"); + printf(" couldn't select elements in dataspace\n"); PART_ERROR(H5Dwrite_point_sel_read); } @@ -5940,7 +5913,7 @@ test_write_dataset_data_verification(void) if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" couldn't create memory dataspace\n"); + printf(" couldn't create memory dataspace\n"); PART_ERROR(H5Dwrite_point_sel_read); } } @@ -5948,7 +5921,7 @@ test_write_dataset_data_verification(void) if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } @@ -5979,39 +5952,39 @@ test_write_dataset_data_verification(void) if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); PART_ERROR(H5Dwrite_point_sel_read); } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); PART_ERROR(H5Dwrite_point_sel_read); } if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints * DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); PART_ERROR(H5Dwrite_point_sel_read); } if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } if (memcmp(data, read_buf, data_size)) { H5_FAILED(); - HDprintf(" point selection data verification failed\n"); + printf(" point selection data verification failed\n"); PART_ERROR(H5Dwrite_point_sel_read); } @@ -6097,8 +6070,7 @@ test_write_dataset_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -6106,21 +6078,21 @@ test_write_dataset_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -6131,13 +6103,13 @@ test_write_dataset_invalid_params(void) DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_WRITE_INVALID_PARAMS_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_WRITE_INVALID_PARAMS_TEST_DSET_NAME); goto error; } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); goto error; } @@ -6164,7 +6136,7 @@ test_write_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to dataset using H5Dwrite with an invalid dataset ID!\n"); + printf(" wrote to dataset using H5Dwrite with an invalid dataset ID!\n"); PART_ERROR(H5Dwrite_invalid_dset_id); } @@ -6184,7 +6156,7 @@ test_write_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to dataset using H5Dwrite with an invalid memory datatype!\n"); + printf(" wrote to dataset using H5Dwrite with an invalid memory datatype!\n"); PART_ERROR(H5Dwrite_invalid_datatype); } @@ -6205,7 +6177,7 @@ test_write_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to dataset using H5Dwrite with an invalid memory dataspace!\n"); + printf(" wrote to dataset using H5Dwrite with an invalid memory dataspace!\n"); PART_ERROR(H5Dwrite_invalid_mem_dataspace); } @@ -6226,7 +6198,7 @@ test_write_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to dataset using H5Dwrite with an invalid file dataspace!\n"); + printf(" wrote to dataset using H5Dwrite with an invalid file dataspace!\n"); PART_ERROR(H5Dwrite_invalid_file_dataspace); } @@ -6247,7 +6219,7 @@ test_write_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to dataset using H5Dwrite with an invalid DXPL!\n"); + printf(" wrote to dataset using H5Dwrite with an invalid DXPL!\n"); PART_ERROR(H5Dwrite_invalid_dxpl); } @@ -6268,7 +6240,7 @@ test_write_dataset_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" wrote to dataset using H5Dwrite with an invalid data buffer!\n"); + printf(" wrote to dataset using H5Dwrite with an invalid data buffer!\n"); PART_ERROR(H5Dwrite_invalid_data_buf); } @@ -6350,8 +6322,8 @@ test_dataset_builtin_type_conversion(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, basic or more dataset aren't supported with this " + "connector\n"); return 0; } @@ -6359,7 +6331,7 @@ test_dataset_builtin_type_conversion(void) if ((native_order = H5Tget_order(DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE)) < 0) { H5_FAILED(); - HDprintf(" couldn't get native byte order\n"); + printf(" couldn't get native byte order\n"); goto error; } if (native_order == H5T_ORDER_LE) @@ -6369,20 +6341,20 @@ test_dataset_builtin_type_conversion(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_DATA_BUILTIN_CONVERSION_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME); goto error; } @@ -6392,7 +6364,7 @@ test_dataset_builtin_type_conversion(void) if ((dset_id = H5Dcreate2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, file_type_id, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); goto error; } @@ -6417,8 +6389,8 @@ test_dataset_builtin_type_conversion(void) if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_all_read); } @@ -6447,41 +6419,41 @@ test_dataset_builtin_type_conversion(void) if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_all_read); } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); PART_ERROR(H5Dwrite_all_read); } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); PART_ERROR(H5Dwrite_all_read); } if (NULL == (data = HDmalloc((hsize_t)space_npoints * DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); PART_ERROR(H5Dwrite_all_read); } if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_all_read); } for (i = 0; i < (hsize_t)space_npoints; i++) if (((int *)data)[i] != (int)i) { H5_FAILED(); - HDprintf(" H5S_ALL selection data verification failed\n"); + printf(" H5S_ALL selection data verification failed\n"); PART_ERROR(H5Dwrite_all_read); } @@ -6502,7 +6474,7 @@ test_dataset_builtin_type_conversion(void) if (NULL == (write_buf = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset write\n"); + printf(" couldn't allocate buffer for dataset write\n"); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -6515,15 +6487,15 @@ test_dataset_builtin_type_conversion(void) if (NULL == (data = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset data verification\n"); + printf(" couldn't allocate buffer for dataset data verification\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -6544,7 +6516,7 @@ test_dataset_builtin_type_conversion(void) if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, stride, count, block) < 0) { H5_FAILED(); - HDprintf(" couldn't select hyperslab for dataset write\n"); + printf(" couldn't select hyperslab for dataset write\n"); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -6553,7 +6525,7 @@ test_dataset_builtin_type_conversion(void) if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" couldn't create memory dataspace\n"); + printf(" couldn't create memory dataspace\n"); PART_ERROR(H5Dwrite_hyperslab_read); } } @@ -6561,8 +6533,8 @@ test_dataset_builtin_type_conversion(void) if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -6594,40 +6566,40 @@ test_dataset_builtin_type_conversion(void) if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints * DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); PART_ERROR(H5Dwrite_hyperslab_read); } if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_hyperslab_read); } if (memcmp(data, read_buf, data_size)) { H5_FAILED(); - HDprintf(" hyperslab selection data verification failed\n"); + printf(" hyperslab selection data verification failed\n"); PART_ERROR(H5Dwrite_hyperslab_read); } @@ -6659,7 +6631,7 @@ test_dataset_builtin_type_conversion(void) if (NULL == (write_buf = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset write\n"); + printf(" couldn't allocate buffer for dataset write\n"); PART_ERROR(H5Dwrite_point_sel_read); } @@ -6672,15 +6644,15 @@ test_dataset_builtin_type_conversion(void) if (NULL == (data = HDmalloc(data_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset data verification\n"); + printf(" couldn't allocate buffer for dataset data verification\n"); PART_ERROR(H5Dwrite_point_sel_read); } if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } @@ -6708,7 +6680,7 @@ test_dataset_builtin_type_conversion(void) if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_DATA_BUILTIN_CONVERSION_TEST_NUM_POINTS, points) < 0) { H5_FAILED(); - HDprintf(" couldn't select elements in dataspace\n"); + printf(" couldn't select elements in dataspace\n"); PART_ERROR(H5Dwrite_point_sel_read); } @@ -6717,7 +6689,7 @@ test_dataset_builtin_type_conversion(void) if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" couldn't create memory dataspace\n"); + printf(" couldn't create memory dataspace\n"); PART_ERROR(H5Dwrite_point_sel_read); } } @@ -6725,8 +6697,8 @@ test_dataset_builtin_type_conversion(void) if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } @@ -6758,40 +6730,40 @@ test_dataset_builtin_type_conversion(void) if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); PART_ERROR(H5Dwrite_point_sel_read); } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); PART_ERROR(H5Dwrite_point_sel_read); } if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints * DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); PART_ERROR(H5Dwrite_point_sel_read); } if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME); PART_ERROR(H5Dwrite_point_sel_read); } if (memcmp(data, read_buf, data_size)) { H5_FAILED(); - HDprintf(" point selection data verification failed\n"); + printf(" point selection data verification failed\n"); PART_ERROR(H5Dwrite_point_sel_read); } @@ -6887,8 +6859,7 @@ test_dataset_compound_partial_io(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -6896,21 +6867,21 @@ test_dataset_compound_partial_io(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME); goto error; } @@ -6937,7 +6908,7 @@ test_dataset_compound_partial_io(void) if ((dset_id = H5Dcreate2(group_id, DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME, full_type_id, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME); goto error; } @@ -7144,28 +7115,28 @@ test_dataset_set_extent_chunked_unlimited(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, basic or more dataset aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME); goto error; } @@ -7186,14 +7157,14 @@ test_dataset_set_extent_chunked_unlimited(void) if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" unable to set dataset chunk dimensionality\n"); + printf(" unable to set dataset chunk dimensionality\n"); goto error; } if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME); goto error; } @@ -7209,7 +7180,7 @@ test_dataset_set_extent_chunked_unlimited(void) if (H5Dset_extent(dset_id, new_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set dataset extent\n"); + printf(" failed to set dataset extent\n"); goto error; } @@ -7221,13 +7192,13 @@ test_dataset_set_extent_chunked_unlimited(void) if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset's dataspace\n"); + printf(" failed to retrieve dataset's dataspace\n"); goto error; } if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset dimensionality\n"); + printf(" failed to retrieve dataset dimensionality\n"); goto error; } @@ -7237,7 +7208,7 @@ test_dataset_set_extent_chunked_unlimited(void) for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK; j++) { if (dims[j] == new_dims[j]) { H5_FAILED(); - HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); + printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); goto error; } } @@ -7265,7 +7236,7 @@ test_dataset_set_extent_chunked_unlimited(void) if (H5Dset_extent(dset_id, new_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set dataset extent\n"); + printf(" failed to set dataset extent\n"); goto error; } @@ -7280,20 +7251,19 @@ test_dataset_set_extent_chunked_unlimited(void) if ((dset_id = H5Dopen2(group_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", - DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME); + printf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset's dataspace\n"); + printf(" failed to retrieve dataset's dataspace\n"); goto error; } if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset dimensionality\n"); + printf(" failed to retrieve dataset dimensionality\n"); goto error; } @@ -7303,7 +7273,7 @@ test_dataset_set_extent_chunked_unlimited(void) for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK; j++) { if (dims[j] == new_dims[j]) { H5_FAILED(); - HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); + printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); goto error; } } @@ -7377,28 +7347,28 @@ test_dataset_set_extent_chunked_fixed(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, basic or more dataset aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME); goto error; } @@ -7423,7 +7393,7 @@ test_dataset_set_extent_chunked_fixed(void) if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" unable to set dataset chunk dimensionality\n"); + printf(" unable to set dataset chunk dimensionality\n"); goto error; } @@ -7435,14 +7405,14 @@ test_dataset_set_extent_chunked_fixed(void) if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME); goto error; } if ((dset_id2 = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2, dset_dtype, fspace_id2, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2); + printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2); goto error; } @@ -7471,7 +7441,7 @@ test_dataset_set_extent_chunked_fixed(void) if (H5Dset_extent(dset_id, new_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set dataset extent\n"); + printf(" failed to set dataset extent\n"); goto error; } @@ -7483,13 +7453,13 @@ test_dataset_set_extent_chunked_fixed(void) if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset's dataspace\n"); + printf(" failed to retrieve dataset's dataspace\n"); goto error; } if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset dimensionality\n"); + printf(" failed to retrieve dataset dimensionality\n"); goto error; } @@ -7499,7 +7469,7 @@ test_dataset_set_extent_chunked_fixed(void) for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK; j++) { if (dims[j] == new_dims[j]) { H5_FAILED(); - HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); + printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); goto error; } } @@ -7540,7 +7510,7 @@ test_dataset_set_extent_chunked_fixed(void) if (H5Dset_extent(dset_id2, new_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set dataset extent2\n"); + printf(" failed to set dataset extent2\n"); goto error; } @@ -7555,19 +7525,19 @@ test_dataset_set_extent_chunked_fixed(void) if ((dset_id2 = H5Dopen2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2); + printf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2); goto error; } if ((fspace_id2 = H5Dget_space(dset_id2)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset's dataspace\n"); + printf(" failed to retrieve dataset's dataspace\n"); goto error; } if (H5Sget_simple_extent_dims(fspace_id2, new_dims, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataset dimensionality\n"); + printf(" failed to retrieve dataset dimensionality\n"); goto error; } @@ -7577,7 +7547,7 @@ test_dataset_set_extent_chunked_fixed(void) for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK; j++) { if (dims2[j] == new_dims[j]) { H5_FAILED(); - HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); + printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j); goto error; } } @@ -7666,8 +7636,8 @@ test_dataset_set_extent_data(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, basic or more dataset aren't supported with this " + "connector\n"); return 0; } @@ -7675,20 +7645,20 @@ test_dataset_set_extent_data(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME); goto error; } @@ -7700,14 +7670,14 @@ test_dataset_set_extent_data(void) if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_DATA_TEST_SPACE_RANK, dims_chunk) < 0) { H5_FAILED(); - HDprintf(" unable to set dataset chunk dimensionality\n"); + printf(" unable to set dataset chunk dimensionality\n"); goto error; } if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_DATA_TEST_DSET_NAME, H5T_NATIVE_INT, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DATA_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DATA_TEST_DSET_NAME); goto error; } @@ -7766,15 +7736,15 @@ test_dataset_set_extent_data(void) if (i >= (int)dims_origin[0] || j >= (int)dims_origin[1]) { if (buf_expand[i][j] != 0) { H5_FAILED(); - HDprintf(" buf_expand[%d][%d] = %d. It should be 0\n", i, j, buf_expand[i][j]); + printf(" buf_expand[%d][%d] = %d. It should be 0\n", i, j, buf_expand[i][j]); PART_ERROR(H5Dset_extent_data_expand); } } else { if (buf_expand[i][j] != buf_origin[i][j]) { H5_FAILED(); - HDprintf(" buf_expand[%d][%d] = %d. It should be %d\n", i, j, buf_expand[i][j], - buf_origin[i][j]); + printf(" buf_expand[%d][%d] = %d. It should be %d\n", i, j, buf_expand[i][j], + buf_origin[i][j]); PART_ERROR(H5Dset_extent_data_expand); } } @@ -7807,8 +7777,8 @@ test_dataset_set_extent_data(void) for (j = 0; j < (int)dims_shrink[1]; j++) { if (buf_shrink[i][j] != buf_origin[i][j]) { H5_FAILED(); - HDprintf(" buf_shrink[%d][%d] = %d. It should be %d\n", i, j, buf_shrink[i][j], - buf_origin[i][j]); + printf(" buf_shrink[%d][%d] = %d. It should be %d\n", i, j, buf_shrink[i][j], + buf_origin[i][j]); PART_ERROR(H5Dset_extent_data_shrink); } } @@ -7844,16 +7814,15 @@ test_dataset_set_extent_data(void) if (i >= (int)dims_shrink[0] || j >= (int)dims_shrink[1]) { if (buf_expand2[i][j] != 0) { H5_FAILED(); - HDprintf(" buf_expand2[%d][%d] = %d. It should be 0\n", i, j, - buf_expand2[i][j]); + printf(" buf_expand2[%d][%d] = %d. It should be 0\n", i, j, buf_expand2[i][j]); PART_ERROR(H5Dset_extent_data_expand_to_origin); } } else { if (buf_expand2[i][j] != buf_origin[i][j]) { H5_FAILED(); - HDprintf(" buf_expand2[%d][%d] = %d. It should be %d.\n", i, j, - buf_expand2[i][j], buf_origin[i][j]); + printf(" buf_expand2[%d][%d] = %d. It should be %d.\n", i, j, + buf_expand2[i][j], buf_origin[i][j]); PART_ERROR(H5Dset_extent_data_expand_to_origin); } } @@ -7889,8 +7858,8 @@ test_dataset_set_extent_data(void) for (i = 0; i < DATASET_SET_EXTENT_DATA_TEST_SPACE_RANK; i++) if (dims_out[i] != 0) { H5_FAILED(); - HDprintf(" dims_out[%d] = %llu. It should be 0.\n", i, - (long long unsigned int)dims_out[i]); + printf(" dims_out[%d] = %llu. It should be 0.\n", i, + (long long unsigned int)dims_out[i]); PART_ERROR(H5Dset_extent_data_shrink_to_zero); } @@ -7923,7 +7892,7 @@ test_dataset_set_extent_data(void) for (j = 0; j < (int)dims_origin[1]; j++) { if (buf_expand2[i][j] != 0) { H5_FAILED(); - HDprintf(" buf_expand2[%d][%d] = %d. It should be 0.\n", i, j, buf_expand2[i][j]); + printf(" buf_expand2[%d][%d] = %d. It should be 0.\n", i, j, buf_expand2[i][j]); PART_ERROR(H5Dset_extent_data_expand_to_origin_again); } } @@ -8001,27 +7970,27 @@ test_dataset_set_extent_double_handles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, basic or more dataset aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME); goto error; } @@ -8034,7 +8003,7 @@ test_dataset_set_extent_double_handles(void) if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_SPACE_RANK, dims_chunk) < 0) { H5_FAILED(); - HDprintf(" unable to set dataset chunk dimensionality\n"); + printf(" unable to set dataset chunk dimensionality\n"); goto error; } @@ -8042,14 +8011,14 @@ test_dataset_set_extent_double_handles(void) if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME, H5T_NATIVE_INT, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME); goto error; } /* Open the same dataset again */ if ((dset_id2 = H5Dopen2(group_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME); goto error; } @@ -8071,8 +8040,8 @@ test_dataset_set_extent_double_handles(void) for (i = 0; i < DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_SPACE_RANK; i++) if (dims_out[i] != dims_expand[i]) { H5_FAILED(); - HDprintf(" dims_out[%d] = %" PRIuHSIZE ". It should be %" PRIuHSIZE ".\n", i, dims_out[i], - dims_expand[i]); + printf(" dims_out[%d] = %" PRIuHSIZE ". It should be %" PRIuHSIZE ".\n", i, dims_out[i], + dims_expand[i]); goto error; } @@ -8141,8 +8110,8 @@ test_dataset_set_extent_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, basic or more dataset aren't supported with this " + "connector\n"); return 0; } @@ -8150,14 +8119,14 @@ test_dataset_set_extent_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } /** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */ if (H5VLget_connector_name(file_id, vol_name, 5) < 0) { H5_FAILED(); - HDprintf(" couldn't get VOL connector name\n"); + printf(" couldn't get VOL connector name\n"); goto error; } if (strcmp(vol_name, "daos") == 0) { @@ -8169,15 +8138,15 @@ test_dataset_set_extent_invalid_params(void) if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -8213,8 +8182,8 @@ test_dataset_set_extent_invalid_params(void) H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME, H5T_NATIVE_INT, compact_fspace_id, H5P_DEFAULT, compact_dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME); goto error; } @@ -8229,8 +8198,8 @@ test_dataset_set_extent_invalid_params(void) H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, contiguous_dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME); goto error; } @@ -8240,14 +8209,14 @@ test_dataset_set_extent_invalid_params(void) if (H5Pset_chunk(chunked_dcpl_id, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" unable to set dataset chunk dimensionality\n"); + printf(" unable to set dataset chunk dimensionality\n"); goto error; } if ((chunked_dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, chunked_dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME); goto error; } @@ -8267,7 +8236,7 @@ test_dataset_set_extent_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" setting dataset extent succeeded with an invalid layout (compact)\n"); + printf(" setting dataset extent succeeded with an invalid layout (compact)\n"); PART_ERROR(H5Dset_extent_invalid_layout_compact); } @@ -8287,7 +8256,7 @@ test_dataset_set_extent_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" setting dataset extent succeeded with an invalid layout (contiguous)\n"); + printf(" setting dataset extent succeeded with an invalid layout (contiguous)\n"); PART_ERROR(H5Dset_extent_invalid_layout_contiguous); } @@ -8307,7 +8276,7 @@ test_dataset_set_extent_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" setting dataset extent succeeded with an invalid dataset ID\n"); + printf(" setting dataset extent succeeded with an invalid dataset ID\n"); PART_ERROR(H5Dset_extent_invalid_dset_id); } @@ -8327,7 +8296,7 @@ test_dataset_set_extent_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" setting dataset extent succeeded with a NULL dimension pointer\n"); + printf(" setting dataset extent succeeded with a NULL dimension pointer\n"); PART_ERROR(H5Dset_extent_null_dim_pointer); } @@ -8465,27 +8434,27 @@ test_create_single_chunk_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SINGLE_CHUNK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_TEST_GROUP_NAME); goto error; } @@ -8499,14 +8468,14 @@ test_create_single_chunk_dataset(void) if (H5Pset_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } if ((dset_id = H5Dcreate2(group_id, DATASET_SINGLE_CHUNK_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_TEST_DSET_NAME); goto error; } @@ -8515,28 +8484,28 @@ test_create_single_chunk_dataset(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims)); if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_SINGLE_CHUNK_TEST_SPACE_RANK; i++) { if (dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -8547,40 +8516,40 @@ test_create_single_chunk_dataset(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" failed to close dataset\n"); + printf(" failed to close dataset\n"); goto error; } if ((dset_id = H5Dopen2(group_id, DATASET_SINGLE_CHUNK_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open dataset\n"); + printf(" failed to re-open dataset\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims)); if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_SINGLE_CHUNK_TEST_SPACE_RANK; i++) { if (dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -8646,28 +8615,27 @@ test_write_single_chunk_dataset(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME); goto error; } @@ -8680,7 +8648,7 @@ test_write_single_chunk_dataset(void) if (H5Pset_chunk(dcpl_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK, dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } @@ -8688,7 +8656,7 @@ test_write_single_chunk_dataset(void) DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); goto error; } @@ -8697,28 +8665,28 @@ test_write_single_chunk_dataset(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims)); if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK; i++) { if (dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -8736,7 +8704,7 @@ test_write_single_chunk_dataset(void) if (H5Dwrite(dset_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); goto error; } @@ -8764,40 +8732,40 @@ test_write_single_chunk_dataset(void) if ((dset_id = H5Dopen2(group_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); goto error; } if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataspace num points\n"); + printf(" couldn't get dataspace num points\n"); goto error; } if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints * DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPESIZE))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); goto error; } if (H5Dread(dset_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME); goto error; } for (i = 0; i < (hsize_t)space_npoints; i++) if (((int *)read_buf)[i] != (int)i) { H5_FAILED(); - HDprintf(" data verification failed\n"); + printf(" data verification failed\n"); goto error; } @@ -8865,27 +8833,27 @@ test_create_multi_chunk_dataset(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_MULTI_CHUNK_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_MULTI_CHUNK_TEST_GROUP_NAME); goto error; } @@ -8899,14 +8867,14 @@ test_create_multi_chunk_dataset(void) if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } if ((dset_id = H5Dcreate2(group_id, DATASET_MULTI_CHUNK_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_MULTI_CHUNK_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_MULTI_CHUNK_TEST_DSET_NAME); goto error; } @@ -8915,28 +8883,28 @@ test_create_multi_chunk_dataset(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims)); if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_MULTI_CHUNK_TEST_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -8947,40 +8915,40 @@ test_create_multi_chunk_dataset(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" failed to close dataset\n"); + printf(" failed to close dataset\n"); goto error; } if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open dataset\n"); + printf(" failed to re-open dataset\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims)); if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_MULTI_CHUNK_TEST_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -9051,28 +9019,28 @@ test_write_multi_chunk_dataset_same_shape_read(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME); goto error; } @@ -9086,7 +9054,7 @@ test_write_multi_chunk_dataset_same_shape_read(void) if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } @@ -9094,8 +9062,8 @@ test_write_multi_chunk_dataset_same_shape_read(void) DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9104,13 +9072,13 @@ test_write_multi_chunk_dataset_same_shape_read(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } @@ -9118,15 +9086,15 @@ test_write_multi_chunk_dataset_same_shape_read(void) if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -9202,8 +9170,8 @@ test_write_multi_chunk_dataset_same_shape_read(void) if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", + DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9232,14 +9200,13 @@ test_write_multi_chunk_dataset_same_shape_read(void) if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); goto error; } @@ -9251,7 +9218,7 @@ test_write_multi_chunk_dataset_same_shape_read(void) if ((mspace_id = H5Screate_simple(2, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" failed to create memory dataspace\n"); + printf(" failed to create memory dataspace\n"); goto error; } } @@ -9263,11 +9230,11 @@ test_write_multi_chunk_dataset_same_shape_read(void) /* * Read every chunk in the dataset, checking the data for each one. */ - HDprintf("\n"); + printf("\n"); for (i = 0; i < data_size / chunk_size; i++) { size_t j, k; - HDprintf("\r Reading chunk %zu", i); + printf("\r Reading chunk %zu", i); for (j = 0; j < DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; j++) { if (dims[j] == chunk_dims[j]) @@ -9284,7 +9251,7 @@ test_write_multi_chunk_dataset_same_shape_read(void) */ if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to set hyperslab selection\n"); + printf(" failed to set hyperslab selection\n"); goto error; } @@ -9295,8 +9262,8 @@ test_write_multi_chunk_dataset_same_shape_read(void) if (H5Dread(dset_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9304,7 +9271,7 @@ test_write_multi_chunk_dataset_same_shape_read(void) for (k = 0; k < chunk_dims[1]; k++) { if (read_buf[j][k] != (int)((j * chunk_dims[0]) + k + i)) { H5_FAILED(); - HDprintf(" data verification failed for chunk %lld\n", (long long)i); + printf(" data verification failed for chunk %lld\n", (long long)i); goto error; } } @@ -9378,28 +9345,28 @@ test_write_multi_chunk_dataset_diff_shape_read(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME); goto error; } @@ -9413,7 +9380,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void) if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } @@ -9421,8 +9388,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void) DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9431,13 +9398,13 @@ test_write_multi_chunk_dataset_diff_shape_read(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } @@ -9445,15 +9412,15 @@ test_write_multi_chunk_dataset_diff_shape_read(void) if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -9529,8 +9496,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void) if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", + DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9559,14 +9526,13 @@ test_write_multi_chunk_dataset_diff_shape_read(void) if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); goto error; } @@ -9575,7 +9541,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void) */ if (NULL == (read_buf = HDmalloc(chunk_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); goto error; } @@ -9587,7 +9553,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void) if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" failed to create memory dataspace\n"); + printf(" failed to create memory dataspace\n"); goto error; } } @@ -9599,11 +9565,11 @@ test_write_multi_chunk_dataset_diff_shape_read(void) /* * Read every chunk in the dataset, checking the data for each one. */ - HDprintf("\n"); + printf("\n"); for (i = 0; i < data_size / chunk_size; i++) { size_t j; - HDprintf("\r Reading chunk %zu", i); + printf("\r Reading chunk %zu", i); for (j = 0; j < DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; j++) { if (dims[j] == chunk_dims[j]) @@ -9620,7 +9586,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void) */ if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to set hyperslab selection\n"); + printf(" failed to set hyperslab selection\n"); goto error; } @@ -9628,8 +9594,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void) if (H5Dread(dset_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9637,7 +9603,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void) j++) if (((int *)read_buf)[j] != (int)(j + i)) { H5_FAILED(); - HDprintf(" data verification failed for chunk %lld\n", (long long)i); + printf(" data verification failed for chunk %lld\n", (long long)i); goto error; } } @@ -9717,28 +9683,28 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME); goto error; } @@ -9752,7 +9718,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } @@ -9760,8 +9726,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9770,13 +9736,13 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } @@ -9784,15 +9750,15 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -9816,7 +9782,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) if ((mspace_id = H5Screate_simple(2, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" failed to create memory dataspace\n"); + printf(" failed to create memory dataspace\n"); goto error; } } @@ -9825,7 +9791,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) count[i] = chunk_dims[i]; } - HDprintf("\n"); + printf("\n"); for (niter = 0; niter < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_NITERS; niter++) { memset(write_buf, 0, data_size); @@ -9892,8 +9858,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9917,14 +9883,14 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); goto error; } @@ -9934,7 +9900,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) for (i = 0; i < data_size / chunk_size; i++) { size_t j, k; - HDprintf("\r Reading chunk %zu", i); + printf("\r Reading chunk %zu", i); for (j = 0; j < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; j++) { if (dims[j] == chunk_dims[j]) @@ -9951,7 +9917,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) */ if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to set hyperslab selection\n"); + printf(" failed to set hyperslab selection\n"); goto error; } @@ -9962,8 +9928,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) if (H5Dread(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -9971,7 +9937,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void) for (k = 0; k < chunk_dims[1]; k++) { if (read_buf[j][k] != (int)((j * chunk_dims[0]) + k + i + niter)) { H5_FAILED(); - HDprintf(" data verification failed for chunk %lld\n", (long long)i); + printf(" data verification failed for chunk %lld\n", (long long)i); goto error; } } @@ -10052,28 +10018,28 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME); goto error; } @@ -10087,7 +10053,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } @@ -10095,8 +10061,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -10105,13 +10071,13 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } @@ -10119,15 +10085,15 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -10148,7 +10114,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) */ if (NULL == (read_buf = HDmalloc(chunk_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for dataset read\n"); + printf(" couldn't allocate buffer for dataset read\n"); goto error; } @@ -10160,7 +10126,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" failed to create memory dataspace\n"); + printf(" failed to create memory dataspace\n"); goto error; } } @@ -10169,7 +10135,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) count[i] = chunk_dims[i]; } - HDprintf("\n"); + printf("\n"); for (niter = 0; niter < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_NITERS; niter++) { memset(write_buf, 0, data_size); @@ -10236,8 +10202,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't write to dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't write to dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -10261,14 +10227,14 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't open dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't get dataset dataspace\n"); + printf(" couldn't get dataset dataspace\n"); goto error; } @@ -10278,7 +10244,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) for (i = 0; i < data_size / chunk_size; i++) { size_t j; - HDprintf("\r Reading chunk %zu", i); + printf("\r Reading chunk %zu", i); for (j = 0; j < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; j++) { if (dims[j] == chunk_dims[j]) @@ -10295,7 +10261,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) */ if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to set hyperslab selection\n"); + printf(" failed to set hyperslab selection\n"); goto error; } @@ -10303,8 +10269,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) if (H5Dread(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" couldn't read from dataset '%s'\n", - DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); + printf(" couldn't read from dataset '%s'\n", + DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME); goto error; } @@ -10313,7 +10279,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void) j++) if (((int *)read_buf)[j] != (int)(j + i + niter)) { H5_FAILED(); - HDprintf(" data verification failed for chunk %lld\n", (long long)i); + printf(" data verification failed for chunk %lld\n", (long long)i); goto error; } } @@ -10397,28 +10363,28 @@ test_read_partial_chunk_all_selection(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME); goto error; } @@ -10431,7 +10397,7 @@ test_read_partial_chunk_all_selection(void) if (H5Pset_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } @@ -10439,7 +10405,7 @@ test_read_partial_chunk_all_selection(void) DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME); goto error; } @@ -10448,13 +10414,13 @@ test_read_partial_chunk_all_selection(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } @@ -10462,15 +10428,15 @@ test_read_partial_chunk_all_selection(void) if (H5Pget_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -10486,7 +10452,7 @@ test_read_partial_chunk_all_selection(void) if (H5Dwrite(dset_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" failed to write to dataset\n"); + printf(" failed to write to dataset\n"); goto error; } @@ -10497,14 +10463,14 @@ test_read_partial_chunk_all_selection(void) TEST_ERROR; if ((dset_id = H5Dopen2(group_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open dataset\n"); + printf(" failed to re-open dataset\n"); goto error; } if (H5Dread(dset_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" failed to read from dataset\n"); + printf(" failed to read from dataset\n"); goto error; } @@ -10512,7 +10478,7 @@ test_read_partial_chunk_all_selection(void) for (j = 0; j < FIXED_DIMSIZE; j++) if (read_buf[i][j] != (int)((i * FIXED_DIMSIZE) + j)) { H5_FAILED(); - HDprintf( + printf( " data verification failed for read buffer element %lld: expected %lld but was %lld\n", (long long)((i * FIXED_DIMSIZE) + j), (long long)((i * FIXED_DIMSIZE) + j), (long long)read_buf[i][j]); @@ -10584,28 +10550,28 @@ test_read_partial_chunk_hyperslab_selection(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, dataset, or get property list aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME); goto error; } @@ -10618,7 +10584,7 @@ test_read_partial_chunk_hyperslab_selection(void) if (H5Pset_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK, chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to set chunking on DCPL\n"); + printf(" failed to set chunking on DCPL\n"); goto error; } @@ -10626,7 +10592,7 @@ test_read_partial_chunk_hyperslab_selection(void) DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME); goto error; } @@ -10635,13 +10601,13 @@ test_read_partial_chunk_hyperslab_selection(void) */ if (H5Pclose(dcpl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close DCPL\n"); + printf(" failed to close DCPL\n"); goto error; } if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve copy of DCPL\n"); + printf(" failed to retrieve copy of DCPL\n"); goto error; } @@ -10649,15 +10615,15 @@ test_read_partial_chunk_hyperslab_selection(void) if (H5Pget_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve chunking info\n"); + printf(" failed to retrieve chunking info\n"); goto error; } for (i = 0; i < DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK; i++) { if (chunk_dims[i] != retrieved_chunk_dims[i]) { H5_FAILED(); - HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified " - "dimensionality\n"); + printf(" chunk dimensionality retrieved from DCPL didn't match originally specified " + "dimensionality\n"); goto error; } } @@ -10681,7 +10647,7 @@ test_read_partial_chunk_hyperslab_selection(void) if ((mspace_id = H5Screate_simple(DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK, mdims, NULL)) < 0) { H5_FAILED(); - HDprintf(" failed to create memory dataspace\n"); + printf(" failed to create memory dataspace\n"); goto error; } } @@ -10734,30 +10700,30 @@ test_read_partial_chunk_hyperslab_selection(void) if (H5Sselect_hyperslab(mspace_id, H5S_SELECT_SET, m_start, NULL, count, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to select hyperslab in memory dataspace\n"); + printf(" failed to select hyperslab in memory dataspace\n"); goto error; } } else { if (H5Sselect_all(mspace_id) < 0) { H5_FAILED(); - HDprintf(" failed to select entire memory dataspace\n"); + printf(" failed to select entire memory dataspace\n"); goto error; } } if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to select hyperslab\n"); + printf(" failed to select hyperslab\n"); goto error; } - HDprintf("\r Writing chunk %zu", i); + printf("\r Writing chunk %zu", i); if (H5Dwrite(dset_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, write_buf) < 0) { H5_FAILED(); - HDprintf(" failed to write to dataset\n"); + printf(" failed to write to dataset\n"); goto error; } @@ -10771,28 +10737,28 @@ test_read_partial_chunk_hyperslab_selection(void) if ((dset_id = H5Dopen2(group_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open dataset\n"); + printf(" failed to re-open dataset\n"); goto error; } if ((fspace_id = H5Dget_space(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve dataspace from dataset\n"); + printf(" failed to retrieve dataspace from dataset\n"); goto error; } if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) { H5_FAILED(); - HDprintf(" failed to select hyperslab\n"); + printf(" failed to select hyperslab\n"); goto error; } - HDprintf("\r Reading chunk %zu", i); + printf("\r Reading chunk %zu", i); if (H5Dread(dset_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT, read_buf) < 0) { H5_FAILED(); - HDprintf(" failed to read from dataset\n"); + printf(" failed to read from dataset\n"); goto error; } @@ -10800,10 +10766,10 @@ test_read_partial_chunk_hyperslab_selection(void) for (k = 0; k < FIXED_CHUNK_DIMSIZE; k++) if (read_buf[j][k] != (int)((j * FIXED_CHUNK_DIMSIZE) + k)) { H5_FAILED(); - HDprintf(" data verification failed for read buffer element %lld: expected %lld but " - "was %lld\n", - (long long)((j * FIXED_CHUNK_DIMSIZE) + k), - (long long)((j * FIXED_CHUNK_DIMSIZE) + k), (long long)read_buf[j][k]); + printf(" data verification failed for read buffer element %lld: expected %lld but " + "was %lld\n", + (long long)((j * FIXED_CHUNK_DIMSIZE) + k), + (long long)((j * FIXED_CHUNK_DIMSIZE) + k), (long long)read_buf[j][k]); goto error; } } @@ -10889,8 +10855,8 @@ test_get_vlen_buf_size(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or dataset aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this " + "connector\n"); return 0; } @@ -10905,20 +10871,20 @@ test_get_vlen_buf_size(void) /* Open the file */ if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME); goto error; } @@ -10948,11 +10914,11 @@ test_get_vlen_buf_size(void) ((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) / 2) * sizeof(unsigned int)) { H5_FAILED(); - HDprintf( - " H5Dvlen_get_buf_size returned wrong size (%lu), compared to the correct size (%lu)\n", size, - ((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) / - 2) * - sizeof(unsigned int)); + printf(" H5Dvlen_get_buf_size returned wrong size (%lu), compared to the correct size (%lu)\n", + size, + ((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) / + 2) * + sizeof(unsigned int)); goto error; } @@ -11005,17 +10971,17 @@ H5_api_dataset_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Dataset Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Dataset Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(dataset_tests); i++) { nerrors += (*dataset_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); return nerrors; } diff --git a/test/API/H5_api_datatype_test.c b/test/API/H5_api_datatype_test.c index 8bcd19a..7a67210 100644 --- a/test/API/H5_api_datatype_test.c +++ b/test/API/H5_api_datatype_test.c @@ -90,40 +90,40 @@ test_create_committed_datatype(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_CREATE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_TEST_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype to commit\n"); + printf(" couldn't create datatype to commit\n"); goto error; } if (H5Tcommit2(group_id, DATATYPE_CREATE_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_CREATE_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", DATATYPE_CREATE_TEST_TYPE_NAME); goto error; } @@ -171,8 +171,8 @@ test_create_committed_datatype_invalid_params(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } @@ -180,27 +180,27 @@ test_create_committed_datatype_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_CREATE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATATYPE_CREATE_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATATYPE_CREATE_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype to commit\n"); + printf(" couldn't create datatype to commit\n"); goto error; } @@ -221,7 +221,7 @@ test_create_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit2 succeeded with an invalid loc_id!\n"); + printf(" H5Tcommit2 succeeded with an invalid loc_id!\n"); PART_ERROR(H5Tcommit2_invalid_loc_id); } @@ -241,7 +241,7 @@ test_create_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit2 succeeded with an invalid datatype name!\n"); + printf(" H5Tcommit2 succeeded with an invalid datatype name!\n"); PART_ERROR(H5Tcommit2_invalid_type_name); } @@ -253,7 +253,7 @@ test_create_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit2 succeeded with an invalid datatype name!\n"); + printf(" H5Tcommit2 succeeded with an invalid datatype name!\n"); PART_ERROR(H5Tcommit2_invalid_type_name); } @@ -274,7 +274,7 @@ test_create_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit2 succeeded with an invalid datatype ID!\n"); + printf(" H5Tcommit2 succeeded with an invalid datatype ID!\n"); PART_ERROR(H5Tcommit2_invalid_type_id); } @@ -295,7 +295,7 @@ test_create_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit2 succeeded with an invalid LCPL!\n"); + printf(" H5Tcommit2 succeeded with an invalid LCPL!\n"); PART_ERROR(H5Tcommit2_invalid_lcpl); } @@ -316,7 +316,7 @@ test_create_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit2 succeeded with an invalid TCPL!\n"); + printf(" H5Tcommit2 succeeded with an invalid TCPL!\n"); PART_ERROR(H5Tcommit2_invalid_tcpl); } @@ -337,7 +337,7 @@ test_create_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit2 succeeded with an invalid TAPL!\n"); + printf(" H5Tcommit2 succeeded with an invalid TAPL!\n"); PART_ERROR(H5Tcommit2_invalid_tapl); } @@ -392,39 +392,39 @@ test_create_anonymous_committed_datatype(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_CREATE_ANONYMOUS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_ANONYMOUS_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_ANONYMOUS_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit_anon(group_id, type_id, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit anonymous datatype\n"); + printf(" couldn't commit anonymous datatype\n"); goto error; } @@ -472,8 +472,8 @@ test_create_anonymous_committed_datatype_invalid_params(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } @@ -481,27 +481,27 @@ test_create_anonymous_committed_datatype_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATATYPE_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATATYPE_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } @@ -521,7 +521,7 @@ test_create_anonymous_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit_anon succeeded with an invalid loc_id!\n"); + printf(" H5Tcommit_anon succeeded with an invalid loc_id!\n"); PART_ERROR(H5Tcommit_anon_invalid_loc_id); } @@ -541,7 +541,7 @@ test_create_anonymous_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit_anon succeeded with an invalid datatype ID!\n"); + printf(" H5Tcommit_anon succeeded with an invalid datatype ID!\n"); PART_ERROR(H5Tcommit_anon_invalid_type_id); } @@ -561,7 +561,7 @@ test_create_anonymous_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit_anon succeeded with an invalid TCPL!\n"); + printf(" H5Tcommit_anon succeeded with an invalid TCPL!\n"); PART_ERROR(H5Tcommit_anon_invalid_tcpl); } @@ -581,7 +581,7 @@ test_create_anonymous_committed_datatype_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tcommit_anon succeeded with an invalid TAPL!\n"); + printf(" H5Tcommit_anon succeeded with an invalid TAPL!\n"); PART_ERROR(H5Tcommit_anon_invalid_tapl); } @@ -638,8 +638,8 @@ test_create_committed_datatype_empty_types(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } @@ -647,21 +647,20 @@ test_create_committed_datatype_empty_types(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_CREATE_EMPTY_TYPES_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATATYPE_CREATE_EMPTY_TYPES_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_EMPTY_TYPES_TEST_GROUP_NAME); goto error; } @@ -675,7 +674,7 @@ test_create_committed_datatype_empty_types(void) if ((type_id = H5Tcreate(H5T_COMPOUND, (size_t)32)) < 0) { H5_FAILED(); - HDprintf(" failed to create compound type\n"); + printf(" failed to create compound type\n"); PART_ERROR(H5Tcommit_empty_compound_type); } @@ -688,14 +687,14 @@ test_create_committed_datatype_empty_types(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" committed empty compound datatype!\n"); + printf(" committed empty compound datatype!\n"); PART_ERROR(H5Tcommit_empty_compound_type); } /* Add a field to the compound datatype */ if (H5Tinsert(type_id, "a", (size_t)0, H5T_NATIVE_INT) < 0) { H5_FAILED(); - HDprintf(" failed to insert field into compound datatype\n"); + printf(" failed to insert field into compound datatype\n"); PART_ERROR(H5Tcommit_empty_compound_type); } @@ -703,7 +702,7 @@ test_create_committed_datatype_empty_types(void) if (H5Tcommit2(group_id, DATATYPE_CREATE_EMPTY_TYPES_TEST_CMPD_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit non-empty compound datatype\n"); + printf(" failed to commit non-empty compound datatype\n"); PART_ERROR(H5Tcommit_empty_compound_type); } @@ -728,7 +727,7 @@ test_create_committed_datatype_empty_types(void) if ((type_id = H5Tenum_create(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" failed to create enum type\n"); + printf(" failed to create enum type\n"); PART_ERROR(H5Tcommit_empty_enum_type); } @@ -741,14 +740,14 @@ test_create_committed_datatype_empty_types(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" committed empty enum datatype!\n"); + printf(" committed empty enum datatype!\n"); PART_ERROR(H5Tcommit_empty_enum_type); } /* Add a field to the enum datatype */ if (H5Tenum_insert(type_id, "a", &enum_val) < 0) { H5_FAILED(); - HDprintf(" failed to insert field into enum datatype\n"); + printf(" failed to insert field into enum datatype\n"); PART_ERROR(H5Tcommit_empty_enum_type); } @@ -756,7 +755,7 @@ test_create_committed_datatype_empty_types(void) if (H5Tcommit2(group_id, DATATYPE_CREATE_EMPTY_TYPES_TEST_ENUM_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit non-empty enum datatype\n"); + printf(" failed to commit non-empty enum datatype\n"); PART_ERROR(H5Tcommit_empty_enum_type); } @@ -814,52 +813,52 @@ test_recommit_committed_type(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, RECOMMIT_COMMITTED_TYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", RECOMMIT_COMMITTED_TYPE_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", RECOMMIT_COMMITTED_TYPE_TEST_GROUP_NAME); goto error; } /* Copy a predefined datatype and commit the copy */ if ((type_id = H5Tcopy(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" failed to copy predefined integer datatype\n"); + printf(" failed to copy predefined integer datatype\n"); goto error; } if (H5Tcommit2(group_id, "native_int", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit datatype\n"); + printf(" failed to commit datatype\n"); goto error; } if ((is_committed = H5Tcommitted(type_id)) < 0) { H5_FAILED(); - HDprintf(" failed to determine if datatype is committed\n"); + printf(" failed to determine if datatype is committed\n"); goto error; } if (!is_committed) { H5_FAILED(); - HDprintf(" H5Tcommitted() returned false!\n"); + printf(" H5Tcommitted() returned false!\n"); goto error; } @@ -872,7 +871,7 @@ test_recommit_committed_type(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" re-committed an already committed datatype!\n"); + printf(" re-committed an already committed datatype!\n"); goto error; } @@ -919,40 +918,40 @@ test_open_committed_datatype(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_OPEN_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATATYPE_OPEN_TEST_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype to commit\n"); + printf(" couldn't create datatype to commit\n"); goto error; } if (H5Tcommit2(group_id, DATATYPE_OPEN_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME); goto error; } @@ -961,7 +960,7 @@ test_open_committed_datatype(void) if ((type_id = H5Topen2(group_id, DATATYPE_OPEN_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open committed datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME); + printf(" couldn't open committed datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME); goto error; } @@ -1008,8 +1007,8 @@ test_open_committed_datatype_invalid_params(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } @@ -1017,34 +1016,34 @@ test_open_committed_datatype_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - DATATYPE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + DATATYPE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype to commit\n"); + printf(" couldn't create datatype to commit\n"); goto error; } if (H5Tcommit2(group_id, DATATYPE_OPEN_INVALID_PARAMS_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_INVALID_PARAMS_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_INVALID_PARAMS_TEST_TYPE_NAME); goto error; } @@ -1067,7 +1066,7 @@ test_open_committed_datatype_invalid_params(void) if (type_id >= 0) { H5_FAILED(); - HDprintf(" opened committed datatype with an invalid location ID!\n"); + printf(" opened committed datatype with an invalid location ID!\n"); H5Tclose(type_id); PART_ERROR(H5Topen2_invalid_loc_id); } @@ -1088,7 +1087,7 @@ test_open_committed_datatype_invalid_params(void) if (type_id >= 0) { H5_FAILED(); - HDprintf(" opened committed datatype with an invalid datatype name!\n"); + printf(" opened committed datatype with an invalid datatype name!\n"); H5Tclose(type_id); PART_ERROR(H5Topen2_invalid_type_name); } @@ -1101,7 +1100,7 @@ test_open_committed_datatype_invalid_params(void) if (type_id >= 0) { H5_FAILED(); - HDprintf(" opened committed datatype with an invalid datatype name!\n"); + printf(" opened committed datatype with an invalid datatype name!\n"); H5Tclose(type_id); PART_ERROR(H5Topen2_invalid_type_name); } @@ -1122,7 +1121,7 @@ test_open_committed_datatype_invalid_params(void) if (type_id >= 0) { H5_FAILED(); - HDprintf(" opened committed datatype with an invalid TAPL!\n"); + printf(" opened committed datatype with an invalid TAPL!\n"); H5Tclose(type_id); PART_ERROR(H5Topen2_invalid_tapl); } @@ -1182,8 +1181,8 @@ test_reopen_committed_datatype_indirect(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or stored datatype aren't supported with " - "this connector\n"); + printf(" API functions for basic file, group, dataset, or stored datatype aren't supported with " + "this connector\n"); return 0; } @@ -1191,20 +1190,20 @@ test_reopen_committed_datatype_indirect(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_REOPEN_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_REOPEN_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATATYPE_REOPEN_TEST_GROUP_NAME); goto error; } @@ -1221,51 +1220,51 @@ test_reopen_committed_datatype_indirect(void) if ((strtype = H5Tcopy(H5T_C_S1)) < 0) { H5_FAILED(); - HDprintf(" failed to copy C-string datatype\n"); + printf(" failed to copy C-string datatype\n"); PART_ERROR(reopen_compound_type); } if (H5Tset_size(strtype, H5T_VARIABLE) < 0) { H5_FAILED(); - HDprintf(" failed to set string datatype's size to variable\n"); + printf(" failed to set string datatype's size to variable\n"); PART_ERROR(reopen_compound_type); } if ((type_id = H5Tcreate(H5T_COMPOUND, sizeof(char *))) < 0) { H5_FAILED(); - HDprintf(" failed to create compound datatype\n"); + printf(" failed to create compound datatype\n"); PART_ERROR(reopen_compound_type); } if (H5Tinsert(type_id, "vlstr", (size_t)0, strtype) < 0) { H5_FAILED(); - HDprintf(" failed to insert field into compound datatype\n"); + printf(" failed to insert field into compound datatype\n"); PART_ERROR(reopen_compound_type); } if (H5Tclose(strtype) < 0) { H5_FAILED(); - HDprintf(" failed to close string datatype\n"); + printf(" failed to close string datatype\n"); PART_ERROR(reopen_compound_type); } /* Get size of compound type */ if ((dt_size = H5Tget_size(type_id)) == 0) { H5_FAILED(); - HDprintf(" failed to retrieve size of compound datatype\n"); + printf(" failed to retrieve size of compound datatype\n"); PART_ERROR(reopen_compound_type); } /* Commit compound type and verify the size doesn't change */ if (H5Tcommit2(group_id, "cmpd_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit compound datatype\n"); + printf(" failed to commit compound datatype\n"); PART_ERROR(reopen_compound_type); } if (dt_size != H5Tget_size(type_id)) { H5_FAILED(); - HDprintf(" committing datatype caused its size to change!\n"); + printf(" committing datatype caused its size to change!\n"); PART_ERROR(reopen_compound_type); } @@ -1273,20 +1272,20 @@ test_reopen_committed_datatype_indirect(void) if ((dset_id = H5Dcreate2(group_id, "cmpd_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create dataset using committed datatype\n"); + printf(" failed to create dataset using committed datatype\n"); PART_ERROR(reopen_compound_type); } /* Indirectly reopen type and verify that the size doesn't change */ if ((reopened_type_id = H5Dget_type(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open committed datatype using H5Dget_type\n"); + printf(" failed to re-open committed datatype using H5Dget_type\n"); PART_ERROR(reopen_compound_type); } if (dt_size != H5Tget_size(reopened_type_id)) { H5_FAILED(); - HDprintf(" size of re-opened datatype didn't match size of original datatype\n"); + printf(" size of re-opened datatype didn't match size of original datatype\n"); PART_ERROR(reopen_compound_type); } @@ -1315,41 +1314,41 @@ test_reopen_committed_datatype_indirect(void) if ((type_id = H5Tenum_create(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" failed to create enum datatype\n"); + printf(" failed to create enum datatype\n"); PART_ERROR(reopen_enum_type); } enum_value = 0; if (H5Tenum_insert(type_id, "val1", &enum_value) < 0) { H5_FAILED(); - HDprintf(" failed to insert value into enum datatype\n"); + printf(" failed to insert value into enum datatype\n"); PART_ERROR(reopen_enum_type); } enum_value = 1; if (H5Tenum_insert(type_id, "val2", &enum_value) < 0) { H5_FAILED(); - HDprintf(" failed to insert value into enum datatype\n"); + printf(" failed to insert value into enum datatype\n"); PART_ERROR(reopen_enum_type); } /* Get size of enum type */ if ((dt_size = H5Tget_size(type_id)) == 0) { H5_FAILED(); - HDprintf(" failed to retrieve size of enum datatype\n"); + printf(" failed to retrieve size of enum datatype\n"); PART_ERROR(reopen_enum_type); } /* Commit enum type and verify the size doesn't change */ if (H5Tcommit2(group_id, "enum_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit enum datatype\n"); + printf(" failed to commit enum datatype\n"); PART_ERROR(reopen_enum_type); } if (dt_size != H5Tget_size(type_id)) { H5_FAILED(); - HDprintf(" committing datatype caused its size to change!\n"); + printf(" committing datatype caused its size to change!\n"); PART_ERROR(reopen_enum_type); } @@ -1357,20 +1356,20 @@ test_reopen_committed_datatype_indirect(void) if ((dset_id = H5Dcreate2(group_id, "enum_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create dataset using committed datatype\n"); + printf(" failed to create dataset using committed datatype\n"); PART_ERROR(reopen_enum_type); } /* Indirectly reopen type and verify that the size doesn't change */ if ((reopened_type_id = H5Dget_type(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open committed datatype using H5Dget_type\n"); + printf(" failed to re-open committed datatype using H5Dget_type\n"); PART_ERROR(reopen_enum_type); } if (dt_size != H5Tget_size(reopened_type_id)) { H5_FAILED(); - HDprintf(" size of re-opened datatype didn't match size of original datatype\n"); + printf(" size of re-opened datatype didn't match size of original datatype\n"); PART_ERROR(reopen_enum_type); } @@ -1395,27 +1394,27 @@ test_reopen_committed_datatype_indirect(void) if ((type_id = H5Tvlen_create(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" failed to create variable-length datatype\n"); + printf(" failed to create variable-length datatype\n"); PART_ERROR(reopen_vlen_type); } /* Get size of variable-length type */ if ((dt_size = H5Tget_size(type_id)) == 0) { H5_FAILED(); - HDprintf(" failed to retrieve size of variable-length datatype\n"); + printf(" failed to retrieve size of variable-length datatype\n"); PART_ERROR(reopen_vlen_type); } /* Commit variable-length type and verify the size doesn't change */ if (H5Tcommit2(group_id, "vlen_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit variable-length datatype\n"); + printf(" failed to commit variable-length datatype\n"); PART_ERROR(reopen_vlen_type); } if (dt_size != H5Tget_size(type_id)) { H5_FAILED(); - HDprintf(" committing datatype caused its size to change!\n"); + printf(" committing datatype caused its size to change!\n"); PART_ERROR(reopen_vlen_type); } @@ -1423,20 +1422,20 @@ test_reopen_committed_datatype_indirect(void) if ((dset_id = H5Dcreate2(group_id, "vlen_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create dataset using committed datatype\n"); + printf(" failed to create dataset using committed datatype\n"); PART_ERROR(reopen_vlen_type); } /* Indirectly reopen type and verify that the size doesn't change */ if ((reopened_type_id = H5Dget_type(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open committed datatype using H5Dget_type\n"); + printf(" failed to re-open committed datatype using H5Dget_type\n"); PART_ERROR(reopen_vlen_type); } if (dt_size != H5Tget_size(reopened_type_id)) { H5_FAILED(); - HDprintf(" size of re-opened datatype didn't match size of original datatype\n"); + printf(" size of re-opened datatype didn't match size of original datatype\n"); PART_ERROR(reopen_vlen_type); } @@ -1463,33 +1462,33 @@ test_reopen_committed_datatype_indirect(void) if ((type_id = H5Tcreate(H5T_OPAQUE, (size_t)13)) < 0) { H5_FAILED(); - HDprintf(" failed to create opaque datatype\n"); + printf(" failed to create opaque datatype\n"); PART_ERROR(reopen_opaque_type); } if (H5Tset_tag(type_id, tag) < 0) { H5_FAILED(); - HDprintf(" failed to set tag on opaque datatype\n"); + printf(" failed to set tag on opaque datatype\n"); PART_ERROR(reopen_opaque_type); } /* Get size of opaque type */ if ((dt_size = H5Tget_size(type_id)) == 0) { H5_FAILED(); - HDprintf(" failed to retrieve size of opaque datatype\n"); + printf(" failed to retrieve size of opaque datatype\n"); PART_ERROR(reopen_opaque_type); } /* Commit opaque type and verify the size doesn't change */ if (H5Tcommit2(group_id, "opaque_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit opaque datatype\n"); + printf(" failed to commit opaque datatype\n"); PART_ERROR(reopen_opaque_type); } if (dt_size != H5Tget_size(type_id)) { H5_FAILED(); - HDprintf(" committing datatype caused its size to change!\n"); + printf(" committing datatype caused its size to change!\n"); PART_ERROR(reopen_opaque_type); } @@ -1497,20 +1496,20 @@ test_reopen_committed_datatype_indirect(void) if ((dset_id = H5Dcreate2(group_id, "opaque_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create dataset using committed datatype\n"); + printf(" failed to create dataset using committed datatype\n"); PART_ERROR(reopen_opaque_type); } /* Indirectly reopen type and verify that the size doesn't change */ if ((reopened_type_id = H5Dget_type(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open committed datatype using H5Dget_type\n"); + printf(" failed to re-open committed datatype using H5Dget_type\n"); PART_ERROR(reopen_opaque_type); } if (dt_size != H5Tget_size(reopened_type_id)) { H5_FAILED(); - HDprintf(" size of re-opened datatype didn't match size of original datatype\n"); + printf(" size of re-opened datatype didn't match size of original datatype\n"); PART_ERROR(reopen_opaque_type); } @@ -1537,27 +1536,27 @@ test_reopen_committed_datatype_indirect(void) if ((type_id = H5Tarray_create2(H5T_NATIVE_INT, 1, array_dims)) < 0) { H5_FAILED(); - HDprintf(" failed to create array datatype\n"); + printf(" failed to create array datatype\n"); PART_ERROR(reopen_array_type); } /* Get size of array type */ if ((dt_size = H5Tget_size(type_id)) == 0) { H5_FAILED(); - HDprintf(" failed to retrieve size of array datatype\n"); + printf(" failed to retrieve size of array datatype\n"); PART_ERROR(reopen_array_type); } /* Commit array type and verify the size doesn't change */ if (H5Tcommit2(group_id, "array_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit array datatype\n"); + printf(" failed to commit array datatype\n"); PART_ERROR(reopen_array_type); } if (dt_size != H5Tget_size(type_id)) { H5_FAILED(); - HDprintf(" committing datatype caused its size to change!\n"); + printf(" committing datatype caused its size to change!\n"); PART_ERROR(reopen_array_type); } @@ -1565,20 +1564,20 @@ test_reopen_committed_datatype_indirect(void) if ((dset_id = H5Dcreate2(group_id, "array_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create dataset using committed datatype\n"); + printf(" failed to create dataset using committed datatype\n"); PART_ERROR(reopen_array_type); } /* Indirectly reopen type and verify that the size doesn't change */ if ((reopened_type_id = H5Dget_type(dset_id)) < 0) { H5_FAILED(); - HDprintf(" failed to re-open committed datatype using H5Dget_type\n"); + printf(" failed to re-open committed datatype using H5Dget_type\n"); PART_ERROR(reopen_array_type); } if (dt_size != H5Tget_size(reopened_type_id)) { H5_FAILED(); - HDprintf(" size of re-opened datatype didn't match size of original datatype\n"); + printf(" size of re-opened datatype didn't match size of original datatype\n"); PART_ERROR(reopen_array_type); } @@ -1647,14 +1646,13 @@ test_close_committed_datatype_invalid_id(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf( - " API functions for basic file or stored datatype aren't supported with this connector\n"); + printf(" API functions for basic file or stored datatype aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -1666,7 +1664,7 @@ test_close_committed_datatype_invalid_id(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Tclose succeeded with an invalid committed datatype ID!\n"); + printf(" H5Tclose succeeded with an invalid committed datatype ID!\n"); goto error; } @@ -1706,8 +1704,8 @@ test_datatype_property_lists(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic file, group, stored datatype, or getting property list aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, stored datatype, or getting property list aren't " + "supported with this connector\n"); return 0; } @@ -1715,38 +1713,38 @@ test_datatype_property_lists(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_PROPERTY_LIST_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATATYPE_PROPERTY_LIST_TEST_SUBGROUP_NAME); goto error; } if ((type_id1 = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if ((type_id2 = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if ((tcpl_id1 = H5Pcreate(H5P_DATATYPE_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create TCPL\n"); + printf(" couldn't create TCPL\n"); goto error; } @@ -1755,14 +1753,14 @@ test_datatype_property_lists(void) if (H5Tcommit2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1, type_id1, H5P_DEFAULT, tcpl_id1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1); + printf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1); goto error; } if (H5Tcommit2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2, type_id2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2); + printf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2); goto error; } @@ -1780,13 +1778,13 @@ test_datatype_property_lists(void) /* Try to receive copies for the two property lists */ if ((tcpl_id1 = H5Tget_create_plist(type_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Tget_create_plist); } if ((tcpl_id2 = H5Tget_create_plist(type_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Tget_create_plist); } @@ -1837,26 +1835,26 @@ test_datatype_property_lists(void) if ((type_id1 = H5Topen2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1); + printf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1); PART_ERROR(H5Tget_create_plist_reopened); } if ((type_id2 = H5Topen2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2); + printf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2); PART_ERROR(H5Tget_create_plist_reopened); } if ((tcpl_id1 = H5Tget_create_plist(type_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Tget_create_plist_reopened); } if ((tcpl_id2 = H5Tget_create_plist(type_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Tget_create_plist_reopened); } @@ -1923,40 +1921,40 @@ test_create_dataset_with_committed_type(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or stored datatype aren't supported with " - "this connector\n"); + printf(" API functions for basic file, group, dataset, or stored datatype aren't supported with " + "this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME); goto error; } @@ -1971,26 +1969,26 @@ test_create_dataset_with_committed_type(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gopen2(container_group, DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME); goto error; } if ((type_id = H5Topen2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open committed datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME); + printf(" couldn't open committed datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME); goto error; } @@ -2000,8 +1998,8 @@ test_create_dataset_with_committed_type(void) if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME, type_id, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s' using committed datatype\n", - DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s' using committed datatype\n", + DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME); goto error; } @@ -2010,7 +2008,7 @@ test_create_dataset_with_committed_type(void) if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME); + printf(" failed to open dataset '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME); goto error; } @@ -2067,41 +2065,40 @@ test_create_attribute_with_committed_type(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or stored datatype aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, attribute, or stored datatype aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", - ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, TRUE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME); + printf(" couldn't commit datatype '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME); goto error; } @@ -2110,8 +2107,7 @@ test_create_attribute_with_committed_type(void) if ((type_id = H5Topen2(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open committed datatype '%s'\n", - ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME); + printf(" couldn't open committed datatype '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME); goto error; } @@ -2122,21 +2118,21 @@ test_create_attribute_with_committed_type(void) if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME, type_id, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME); + printf(" couldn't create attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME); goto error; } /* Verify the attribute has been created */ if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if attribute '%s' exists\n", - ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME); + printf(" couldn't determine if attribute '%s' exists\n", + ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME); goto error; } if (!attr_exists) { H5_FAILED(); - HDprintf(" attribute did not exist\n"); + printf(" attribute did not exist\n"); goto error; } @@ -2145,7 +2141,7 @@ test_create_attribute_with_committed_type(void) if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME); + printf(" couldn't open attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME); goto error; } @@ -2200,70 +2196,70 @@ test_delete_committed_type(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, attribute, or stored datatype aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, attribute, or stored datatype aren't supported " + "with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s\n", H5_api_test_filename); + printf(" couldn't open file '%s\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_DELETE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group '%s'\n", DATATYPE_DELETE_TEST_GROUP_NAME); + printf(" couldn't create container group '%s'\n", DATATYPE_DELETE_TEST_GROUP_NAME); goto error; } if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME); + printf(" couldn't commit datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME); goto error; } if ((type_exists = H5Lexists(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME); + printf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME); goto error; } if (!type_exists) { H5_FAILED(); - HDprintf(" datatype didn't exist\n"); + printf(" datatype didn't exist\n"); goto error; } if (H5Ldelete(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME); + printf(" couldn't delete datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME); goto error; } if ((type_exists = H5Lexists(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME); + printf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME); goto error; } if (type_exists) { H5_FAILED(); - HDprintf(" datatype exists\n"); + printf(" datatype exists\n"); goto error; } @@ -2312,55 +2308,55 @@ test_resurrect_datatype(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, hard link, or stored datatype aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, or stored datatype aren't " + "supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, DATATYPE_RESURRECT_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME); goto error; } /* Create a named datatype in the file */ if ((type_id = H5Tcopy(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" failed to copy predefined integer type\n"); + printf(" failed to copy predefined integer type\n"); goto error; } if (H5Tcommit2(group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit datatype\n"); + printf(" failed to commit datatype\n"); goto error; } /* Unlink the datatype while it's open (will mark it for deletion when closed) */ if (H5Ldelete(group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete datatype\n"); + printf(" failed to delete datatype\n"); goto error; } /* Check that datatype name is NULL */ if (H5Iget_name(type_id, NULL, (size_t)0) != 0) { H5_FAILED(); - HDprintf(" deleted datatype name was not NULL!\n"); + printf(" deleted datatype name was not NULL!\n"); goto error; } @@ -2368,7 +2364,7 @@ test_resurrect_datatype(void) if (H5Lcreate_hard(type_id, ".", group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create new link for deleted datatype\n"); + printf(" failed to create new link for deleted datatype\n"); goto error; } @@ -2385,26 +2381,26 @@ test_resurrect_datatype(void) /* Re-open the file */ if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gopen2(container_group, DATATYPE_RESURRECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME); + printf(" couldn't open container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME); goto error; } /* Attempt to open the datatype under the new name */ if ((type_id = H5Topen2(group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open resurrected datatype\n"); + printf(" failed to open resurrected datatype\n"); goto error; } @@ -2494,27 +2490,27 @@ test_cant_commit_predefined(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, PREDEFINED_TYPE_COMMIT_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", PREDEFINED_TYPE_COMMIT_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", PREDEFINED_TYPE_COMMIT_TEST_GROUP_NAME); goto error; } @@ -2527,7 +2523,7 @@ test_cant_commit_predefined(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" committed a predefined datatype directly (without copying it)!\n"); + printf(" committed a predefined datatype directly (without copying it)!\n"); goto error; } @@ -2574,52 +2570,52 @@ test_cant_modify_committed_type(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or stored datatype aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, MODIFY_COMMITTED_TYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", MODIFY_COMMITTED_TYPE_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", MODIFY_COMMITTED_TYPE_TEST_GROUP_NAME); goto error; } /* Copy a predefined datatype and commit the copy */ if ((type_id = H5Tcopy(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" failed to copy predefined integer datatype\n"); + printf(" failed to copy predefined integer datatype\n"); goto error; } if (H5Tcommit2(group_id, "native_int", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to commit datatype\n"); + printf(" failed to commit datatype\n"); goto error; } if ((is_committed = H5Tcommitted(type_id)) < 0) { H5_FAILED(); - HDprintf(" failed to determine if datatype is committed\n"); + printf(" failed to determine if datatype is committed\n"); goto error; } if (!is_committed) { H5_FAILED(); - HDprintf(" H5Tcommitted() returned false!\n"); + printf(" H5Tcommitted() returned false!\n"); goto error; } @@ -2632,7 +2628,7 @@ test_cant_modify_committed_type(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" modified committed datatype!\n"); + printf(" modified committed datatype!\n"); goto error; } @@ -2668,17 +2664,17 @@ H5_api_datatype_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Datatype Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Datatype Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(datatype_tests); i++) { nerrors += (*datatype_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); return nerrors; } diff --git a/test/API/H5_api_file_test.c b/test/API/H5_api_file_test.c index a8169e2..a73e28f 100644 --- a/test/API/H5_api_file_test.c +++ b/test/API/H5_api_file_test.c @@ -67,19 +67,19 @@ test_create_file(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } if (prefix_filename(test_path_prefix, FILE_CREATE_TEST_FILENAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename); + printf(" couldn't create file '%s'\n", prefixed_filename); goto error; } @@ -120,13 +120,13 @@ test_create_file_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } if (prefix_filename(test_path_prefix, FILE_CREATE_INVALID_PARAMS_FILE_NAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } @@ -144,7 +144,7 @@ test_create_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was created with a NULL name!\n"); + printf(" file was created with a NULL name!\n"); H5Fclose(file_id); PART_ERROR(H5Fcreate_invalid_name); } @@ -157,7 +157,7 @@ test_create_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was created with an invalid name of ''!\n"); + printf(" file was created with an invalid name of ''!\n"); H5Fclose(file_id); PART_ERROR(H5Fcreate_invalid_name); } @@ -178,7 +178,7 @@ test_create_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was created with invalid flag H5F_ACC_RDWR!\n"); + printf(" file was created with invalid flag H5F_ACC_RDWR!\n"); H5Fclose(file_id); PART_ERROR(H5Fcreate_invalid_flags); } @@ -191,7 +191,7 @@ test_create_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was created with invalid flag H5F_ACC_CREAT!\n"); + printf(" file was created with invalid flag H5F_ACC_CREAT!\n"); H5Fclose(file_id); PART_ERROR(H5Fcreate_invalid_flags); } @@ -204,7 +204,7 @@ test_create_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was created with invalid flag H5F_ACC_SWMR_READ!\n"); + printf(" file was created with invalid flag H5F_ACC_SWMR_READ!\n"); H5Fclose(file_id); PART_ERROR(H5Fcreate_invalid_flags); } @@ -225,7 +225,7 @@ test_create_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was created with invalid FCPL!\n"); + printf(" file was created with invalid FCPL!\n"); H5Fclose(file_id); PART_ERROR(H5Fcreate_invalid_fcpl); } @@ -272,19 +272,19 @@ test_create_file_excl(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } if (prefix_filename(test_path_prefix, FILE_CREATE_EXCL_FILE_NAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create first file\n"); + printf(" couldn't create first file\n"); goto error; } @@ -303,14 +303,14 @@ test_create_file_excl(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" created already existing file using H5F_ACC_EXCL flag!\n"); + printf(" created already existing file using H5F_ACC_EXCL flag!\n"); goto error; } /* Test creating with H5F_ACC_TRUNC. This will truncate the existing file on disk. */ if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't truncate the existing file\n"); + printf(" couldn't truncate the existing file\n"); goto error; } @@ -350,7 +350,7 @@ test_open_file(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } @@ -362,7 +362,7 @@ test_open_file(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" unable to open file '%s' in read-only mode\n", H5_api_test_filename); + printf(" unable to open file '%s' in read-only mode\n", H5_api_test_filename); PART_ERROR(H5Fopen_rdonly); } @@ -385,7 +385,7 @@ test_open_file(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" unable to open file '%s' in read-write mode\n", H5_api_test_filename); + printf(" unable to open file '%s' in read-write mode\n", H5_api_test_filename); PART_ERROR(H5Fopen_rdwrite); } @@ -434,7 +434,7 @@ test_open_file_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } @@ -452,7 +452,7 @@ test_open_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was opened with a NULL name!\n"); + printf(" file was opened with a NULL name!\n"); H5Fclose(file_id); PART_ERROR(H5Fopen_invalid_name); } @@ -465,7 +465,7 @@ test_open_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was opened with an invalid name of ''!\n"); + printf(" file was opened with an invalid name of ''!\n"); H5Fclose(file_id); PART_ERROR(H5Fopen_invalid_name); } @@ -486,7 +486,7 @@ test_open_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was opened with invalid flag H5F_ACC_TRUNC!\n"); + printf(" file was opened with invalid flag H5F_ACC_TRUNC!\n"); H5Fclose(file_id); PART_ERROR(H5Fopen_invalid_flags); } @@ -499,7 +499,7 @@ test_open_file_invalid_params(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" file was opened with invalid flag H5F_ACC_EXCL!\n"); + printf(" file was opened with invalid flag H5F_ACC_EXCL!\n"); H5Fclose(file_id); PART_ERROR(H5Fopen_invalid_flags); } @@ -536,13 +536,13 @@ test_open_nonexistent_file(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } if (prefix_filename(test_path_prefix, NONEXISTENT_FILENAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } @@ -556,7 +556,7 @@ test_open_nonexistent_file(void) if (file_id >= 0) { H5_FAILED(); - HDprintf(" non-existent file was opened!\n"); + printf(" non-existent file was opened!\n"); goto error; } @@ -602,8 +602,8 @@ test_file_permission(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, attribute, or stored datatype aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, dataset, attribute, or stored datatype aren't " + "supported with this connector\n"); return 0; } @@ -611,26 +611,26 @@ test_file_permission(void) if (prefix_filename(test_path_prefix, FILE_PERMISSION_TEST_FILENAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename); + printf(" couldn't create file '%s'\n", prefixed_filename); goto error; } if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create data space\n"); + printf(" couldn't create data space\n"); goto error; } if ((dset_id = H5Dcreate2(file_id, FILE_PERMISSION_TEST_DSET_NAME, H5T_STD_U32LE, dspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create data set: %s\n", FILE_PERMISSION_TEST_DSET_NAME); + printf(" couldn't create data set: %s\n", FILE_PERMISSION_TEST_DSET_NAME); goto error; } @@ -642,7 +642,7 @@ test_file_permission(void) /* Open the file (with read-only permission) */ if ((file_id = H5Fopen(prefixed_filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } @@ -664,7 +664,7 @@ test_file_permission(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" a group was created in a read-only file!\n"); + printf(" a group was created in a read-only file!\n"); PART_ERROR(H5Gcreate_rdonly_file); } @@ -676,7 +676,7 @@ test_file_permission(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" a group was created in a read-only file!\n"); + printf(" a group was created in a read-only file!\n"); PART_ERROR(H5Gcreate_rdonly_file); } @@ -698,7 +698,7 @@ test_file_permission(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" a dataset was created in a read-only file!\n"); + printf(" a dataset was created in a read-only file!\n"); PART_ERROR(H5Dcreate_rdonly_file); } @@ -710,7 +710,7 @@ test_file_permission(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" a dataset was created in a read-only file!\n"); + printf(" a dataset was created in a read-only file!\n"); PART_ERROR(H5Dcreate_rdonly_file); } @@ -732,7 +732,7 @@ test_file_permission(void) if (attr_id >= 0) { H5_FAILED(); - HDprintf(" an attribute was created in a read-only file!\n"); + printf(" an attribute was created in a read-only file!\n"); PART_ERROR(H5Acreate_rdonly_file); } @@ -746,7 +746,7 @@ test_file_permission(void) if ((dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" couldn't copy a native datatype\n"); + printf(" couldn't copy a native datatype\n"); PART_ERROR(H5Tcommit_rdonly_file); } @@ -760,7 +760,7 @@ test_file_permission(void) if (h5_ret >= 0) { H5_FAILED(); - HDprintf(" a named datatype was committed in a read-only file!\n"); + printf(" a named datatype was committed in a read-only file!\n"); PART_ERROR(H5Tcommit_rdonly_file); } @@ -772,7 +772,7 @@ test_file_permission(void) if (h5_ret >= 0) { H5_FAILED(); - HDprintf(" a named datatype was committed in a read-only file!\n"); + printf(" a named datatype was committed in a read-only file!\n"); PART_ERROR(H5Tcommit_rdonly_file); } @@ -829,19 +829,19 @@ test_reopen_file(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((file_id2 = H5Freopen(file_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't re-open file\n"); + printf(" couldn't re-open file\n"); goto error; } @@ -878,7 +878,7 @@ test_close_file_invalid_id(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } @@ -890,7 +890,7 @@ test_close_file_invalid_id(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" closed an invalid file ID!\n"); + printf(" closed an invalid file ID!\n"); goto error; } @@ -921,8 +921,8 @@ test_flush_file(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for basic file, dataset, or file flush aren't supported with this " - "connector\n"); + printf(" API functions for basic file, dataset, or file flush aren't supported with this " + "connector\n"); return 0; } @@ -930,20 +930,20 @@ test_flush_file(void) if (prefix_filename(test_path_prefix, FILE_FLUSH_TEST_FILENAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename); + printf(" couldn't create file '%s'\n", prefixed_filename); goto error; } /* Create multiple small datasets in file */ if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create data space\n"); + printf(" couldn't create data space\n"); goto error; } @@ -953,7 +953,7 @@ test_flush_file(void) if ((dset_id = H5Dcreate2(file_id, dset_name, H5T_STD_U32LE, dspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create data set: %s\n", dset_name); + printf(" couldn't create data set: %s\n", dset_name); goto error; } @@ -971,7 +971,7 @@ test_flush_file(void) if (H5Fflush(file_id, H5F_SCOPE_LOCAL) < 0) { H5_FAILED(); - HDprintf(" unable to flush file with scope H5F_SCOPE_LOCAL\n"); + printf(" unable to flush file with scope H5F_SCOPE_LOCAL\n"); PART_ERROR(H5Fflush_local); } @@ -985,7 +985,7 @@ test_flush_file(void) if (H5Fflush(file_id, H5F_SCOPE_GLOBAL) < 0) { H5_FAILED(); - HDprintf(" unable to flush file with scope H5F_SCOPE_GLOBAL\n"); + printf(" unable to flush file with scope H5F_SCOPE_GLOBAL\n"); PART_ERROR(H5Fflush_global); } @@ -1038,13 +1038,13 @@ test_file_is_accessible(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file aren't supported with this connector\n"); + printf(" API functions for basic file aren't supported with this connector\n"); return 0; } if (prefix_filename(test_path_prefix, fake_filename, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } @@ -1056,14 +1056,14 @@ test_file_is_accessible(void) if ((is_accessible = H5Fis_accessible(H5_api_test_filename, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if file '%s' is accessible with default FAPL\n", - H5_api_test_filename); + printf(" couldn't determine if file '%s' is accessible with default FAPL\n", + H5_api_test_filename); PART_ERROR(H5Fis_accessible_valid_file); } if (!is_accessible) { H5_FAILED(); - HDprintf(" file '%s' is not accessible with default FAPL\n", H5_api_test_filename); + printf(" file '%s' is not accessible with default FAPL\n", H5_api_test_filename); PART_ERROR(H5Fis_accessible_valid_file); } @@ -1085,8 +1085,8 @@ test_file_is_accessible(void) if (is_accessible > 0) { H5_FAILED(); - HDprintf(" non-existent file '%s' was accessible with default FAPL: is_accessible=%d!\n", - prefixed_filename, is_accessible); + printf(" non-existent file '%s' was accessible with default FAPL: is_accessible=%d!\n", + prefixed_filename, is_accessible); PART_ERROR(H5Fis_accessible_invalid_file); } @@ -1133,8 +1133,8 @@ test_file_property_lists(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) { SKIPPED(); - HDprintf(" API functions for basic or more file or get property list aren't supported with this " - "connector\n"); + printf(" API functions for basic or more file or get property list aren't supported with this " + "connector\n"); return 0; } @@ -1142,36 +1142,36 @@ test_file_property_lists(void) if (prefix_filename(test_path_prefix, FILE_PROPERTY_LIST_TEST_FNAME1, &prefixed_filename1) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if (prefix_filename(test_path_prefix, FILE_PROPERTY_LIST_TEST_FNAME2, &prefixed_filename2) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((fcpl_id1 = H5Pcreate(H5P_FILE_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create FCPL\n"); + printf(" couldn't create FCPL\n"); goto error; } if (H5Pset_userblock(fcpl_id1, FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) < 0) { H5_FAILED(); - HDprintf(" failed to set test property on FCPL\n"); + printf(" failed to set test property on FCPL\n"); goto error; } if ((file_id1 = H5Fcreate(prefixed_filename1, H5F_ACC_TRUNC, fcpl_id1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file\n"); + printf(" couldn't create file\n"); goto error; } if ((file_id2 = H5Fcreate(prefixed_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file\n"); + printf(" couldn't create file\n"); goto error; } @@ -1190,42 +1190,42 @@ test_file_property_lists(void) * does not */ if ((fcpl_id1 = H5Fget_create_plist(file_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get FCPL\n"); + printf(" couldn't get FCPL\n"); PART_ERROR(H5Fget_create_plist); } if ((fcpl_id2 = H5Fget_create_plist(file_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get FCPL\n"); + printf(" couldn't get FCPL\n"); PART_ERROR(H5Fget_create_plist); } /* Ensure that property list 1 has the property set and property list 2 does not */ if (H5Pget_userblock(fcpl_id1, &prop_val) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve test property from FCPL\n"); + printf(" failed to retrieve test property from FCPL\n"); PART_ERROR(H5Fget_create_plist); } if (prop_val != FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) { H5_FAILED(); - HDprintf(" retrieved test property value '%llu' did not match expected value '%llu'\n", - (long long unsigned)prop_val, - (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); + printf(" retrieved test property value '%llu' did not match expected value '%llu'\n", + (long long unsigned)prop_val, + (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); PART_ERROR(H5Fget_create_plist); } if (H5Pget_userblock(fcpl_id2, &prop_val) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve test property from FCPL\n"); + printf(" failed to retrieve test property from FCPL\n"); PART_ERROR(H5Fget_create_plist); } if (prop_val == FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) { - HDprintf(" retrieved test property value '%llu' matched control value '%llu' when it " - "shouldn't have\n", - (long long unsigned)prop_val, - (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); + printf(" retrieved test property value '%llu' matched control value '%llu' when it " + "shouldn't have\n", + (long long unsigned)prop_val, + (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); PART_ERROR(H5Fget_create_plist); } @@ -1244,13 +1244,13 @@ test_file_property_lists(void) */ if ((fapl_id1 = H5Fget_access_plist(file_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get FAPL\n"); + printf(" couldn't get FAPL\n"); PART_ERROR(H5Fget_access_plist); } if ((fapl_id2 = H5Fget_access_plist(file_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get FAPL\n"); + printf(" couldn't get FAPL\n"); PART_ERROR(H5Fget_access_plist); } @@ -1318,54 +1318,54 @@ test_file_property_lists(void) if ((file_id1 = H5Fopen(prefixed_filename1, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); PART_ERROR(H5Fget_create_plist_reopened); } if ((file_id2 = H5Fopen(prefixed_filename2, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); PART_ERROR(H5Fget_create_plist_reopened); } if ((fcpl_id1 = H5Fget_create_plist(file_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get FCPL\n"); + printf(" couldn't get FCPL\n"); PART_ERROR(H5Fget_create_plist_reopened); } if ((fcpl_id2 = H5Fget_create_plist(file_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get FCPL\n"); + printf(" couldn't get FCPL\n"); PART_ERROR(H5Fget_create_plist_reopened); } /* Check the values of the test property */ if (H5Pget_userblock(fcpl_id1, &prop_val) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve test property from FCPL\n"); + printf(" failed to retrieve test property from FCPL\n"); PART_ERROR(H5Fget_create_plist_reopened); } if (prop_val != FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) { H5_FAILED(); - HDprintf(" retrieved test property value '%llu' did not match expected value '%llu'\n", - (long long unsigned)prop_val, - (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); + printf(" retrieved test property value '%llu' did not match expected value '%llu'\n", + (long long unsigned)prop_val, + (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); PART_ERROR(H5Fget_create_plist_reopened); } if (H5Pget_userblock(fcpl_id2, &prop_val) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve test property from FCPL\n"); + printf(" failed to retrieve test property from FCPL\n"); PART_ERROR(H5Fget_create_plist_reopened); } if (prop_val == FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) { - HDprintf(" retrieved test property value '%llu' matched control value '%llu' when it " - "shouldn't have\n", - (long long unsigned)prop_val, - (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); + printf(" retrieved test property value '%llu' matched control value '%llu' when it " + "shouldn't have\n", + (long long unsigned)prop_val, + (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL); PART_ERROR(H5Fget_create_plist_reopened); } @@ -1428,7 +1428,7 @@ test_get_file_intent(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_MORE)) { SKIPPED(); - HDprintf(" API functions for basic or more file aren't supported with this connector\n"); + printf(" API functions for basic or more file aren't supported with this connector\n"); return 0; } @@ -1436,14 +1436,14 @@ test_get_file_intent(void) if (prefix_filename(test_path_prefix, FILE_INTENT_TEST_FILENAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } /* Test that file intent retrieval works correctly for file create */ if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename); + printf(" couldn't create file '%s'\n", prefixed_filename); goto error; } @@ -1457,13 +1457,13 @@ test_get_file_intent(void) if (H5Fget_intent(file_id, &file_intent) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve file intent\n"); + printf(" failed to retrieve file intent\n"); PART_ERROR(H5Fget_intent_file_creation); } if (H5F_ACC_RDWR != file_intent) { H5_FAILED(); - HDprintf(" received incorrect file intent for file creation\n"); + printf(" received incorrect file intent for file creation\n"); PART_ERROR(H5Fget_intent_file_creation); } @@ -1487,19 +1487,19 @@ test_get_file_intent(void) /* Test that file intent retrieval works correctly for file open */ if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); PART_ERROR(H5Fget_intent_rdonly_file_open); } if (H5Fget_intent(file_id, &file_intent) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve file intent\n"); + printf(" failed to retrieve file intent\n"); PART_ERROR(H5Fget_intent_rdonly_file_open); } if (H5F_ACC_RDONLY != file_intent) { H5_FAILED(); - HDprintf(" received incorrect file intent for read-only file open\n"); + printf(" received incorrect file intent for read-only file open\n"); PART_ERROR(H5Fget_intent_rdonly_file_open); } @@ -1522,19 +1522,19 @@ test_get_file_intent(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); PART_ERROR(H5Fget_intent_rdwrite_file_open); } if (H5Fget_intent(file_id, &file_intent) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve file intent\n"); + printf(" failed to retrieve file intent\n"); PART_ERROR(H5Fget_intent_rdwrite_file_open); } if (H5F_ACC_RDWR != file_intent) { H5_FAILED(); - HDprintf(" received incorrect file intent\n"); + printf(" received incorrect file intent\n"); PART_ERROR(H5Fget_intent_rdwrite_file_open); } @@ -1597,7 +1597,7 @@ test_get_file_obj_count(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic or more file, basic dataset, group, stored datatypes, or attribute " "aren't supported with this connector\n"); return 0; @@ -1607,53 +1607,53 @@ test_get_file_obj_count(void) if (prefix_filename(test_path_prefix, GET_OBJ_COUNT_TEST_FILENAME1, &prefixed_filename1) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if (prefix_filename(test_path_prefix, GET_OBJ_COUNT_TEST_FILENAME2, &prefixed_filename2) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename1); + printf(" couldn't create file '%s'\n", prefixed_filename1); goto error; } if ((group_id = H5Gcreate2(file_id, GET_OBJ_COUNT_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", GET_OBJ_COUNT_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", GET_OBJ_COUNT_TEST_GRP_NAME); goto error; } /* Create a second file while keeping the first file open */ if ((file_id2 = H5Fcreate(prefixed_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename2); + printf(" couldn't create file '%s'\n", prefixed_filename2); goto error; } /* Create a named datatype */ if ((named_dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" couldn't copy a native datatype\n"); + printf(" couldn't copy a native datatype\n"); goto error; } if (H5Tcommit2(file_id2, GET_OBJ_COUNT_TEST_NAMED_DTYPE, named_dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit a named datatype\n"); + printf(" couldn't commit a named datatype\n"); goto error; } /* Create a dataspace for the attribute and dataset */ if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create data space for attribute\n"); + printf(" couldn't create data space for attribute\n"); goto error; } @@ -1661,7 +1661,7 @@ test_get_file_obj_count(void) if ((attr_id = H5Acreate2(file_id2, GET_OBJ_COUNT_TEST_ATTR_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the attribute '%s'\n", GET_OBJ_COUNT_TEST_ATTR_NAME); + printf(" couldn't create the attribute '%s'\n", GET_OBJ_COUNT_TEST_ATTR_NAME); goto error; } @@ -1669,7 +1669,7 @@ test_get_file_obj_count(void) if ((dset_id = H5Dcreate2(file_id2, GET_OBJ_COUNT_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the dataset '%s'\n", GET_OBJ_COUNT_TEST_DSET_NAME); + printf(" couldn't create the dataset '%s'\n", GET_OBJ_COUNT_TEST_DSET_NAME); goto error; } @@ -1684,13 +1684,13 @@ test_get_file_obj_count(void) /* Get the number of files currently opened */ if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_FILE)) < 0) { H5_FAILED(); - HDprintf(" couldn't get the number of open files\n"); + printf(" couldn't get the number of open files\n"); PART_ERROR(H5Fget_obj_count_files); } if (obj_count != 2) { H5_FAILED(); - HDprintf(" number of open files (%ld) did not match expected number (2)\n", obj_count); + printf(" number of open files (%ld) did not match expected number (2)\n", obj_count); PART_ERROR(H5Fget_obj_count_files); } @@ -1705,13 +1705,13 @@ test_get_file_obj_count(void) /* Get the number of groups */ if ((obj_count = H5Fget_obj_count(file_id, H5F_OBJ_GROUP)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve number of open groups\n"); + printf(" couldn't retrieve number of open groups\n"); PART_ERROR(H5Fget_obj_count_grps_single_file); } if (obj_count != 1) { H5_FAILED(); - HDprintf(" number of open groups (%ld) did not match expected number (1)\n", obj_count); + printf(" number of open groups (%ld) did not match expected number (1)\n", obj_count); PART_ERROR(H5Fget_obj_count_grps_single_file); } @@ -1726,13 +1726,13 @@ test_get_file_obj_count(void) /* Get the number of groups in two opened files */ if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_GROUP)) < 0) { H5_FAILED(); - HDprintf(" couldn't get the number of open groups\n"); + printf(" couldn't get the number of open groups\n"); PART_ERROR(H5Fget_obj_count_grps); } if (obj_count != 1) { H5_FAILED(); - HDprintf(" number of open groups (%ld) did not match expected number (1)\n", obj_count); + printf(" number of open groups (%ld) did not match expected number (1)\n", obj_count); PART_ERROR(H5Fget_obj_count_grps); } @@ -1747,14 +1747,14 @@ test_get_file_obj_count(void) /* Get the number of named datatype in two opened files */ if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_DATATYPE)) < 0) { H5_FAILED(); - HDprintf(" couldn't get the number of open named datatypes\n"); + printf(" couldn't get the number of open named datatypes\n"); PART_ERROR(H5Fget_obj_count_types); } if (obj_count != 1) { H5_FAILED(); - HDprintf(" number of open named datatypes (%ld) did not match expected number (1)\n", - obj_count); + printf(" number of open named datatypes (%ld) did not match expected number (1)\n", + obj_count); PART_ERROR(H5Fget_obj_count_types); } @@ -1769,14 +1769,13 @@ test_get_file_obj_count(void) /* Get the number of attribute in two opened files */ if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_ATTR)) < 0) { H5_FAILED(); - HDprintf(" couldn't get the number of open attributes\n"); + printf(" couldn't get the number of open attributes\n"); PART_ERROR(H5Fget_obj_count_attrs); } if (obj_count != 1) { H5_FAILED(); - HDprintf(" number of open attributes (%ld) did not match expected number (1)\n", - obj_count); + printf(" number of open attributes (%ld) did not match expected number (1)\n", obj_count); PART_ERROR(H5Fget_obj_count_attrs); } @@ -1791,13 +1790,13 @@ test_get_file_obj_count(void) /* Get the number of dataset in two opened files */ if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_DATASET)) < 0 || obj_count != 1) { H5_FAILED(); - HDprintf(" couldn't get the number of open datasets\n"); + printf(" couldn't get the number of open datasets\n"); PART_ERROR(H5Fget_obj_count_dsets); } if (obj_count != 1) { H5_FAILED(); - HDprintf(" number of open datasets (%ld) did not match expected number (1)\n", obj_count); + printf(" number of open datasets (%ld) did not match expected number (1)\n", obj_count); PART_ERROR(H5Fget_obj_count_dsets); } @@ -1812,14 +1811,14 @@ test_get_file_obj_count(void) /* Get the number of all open objects */ if ((obj_count = H5Fget_obj_count(file_id, H5F_OBJ_ALL)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve number of open objects\n"); + printf(" couldn't retrieve number of open objects\n"); PART_ERROR(H5Fget_obj_count_all_single_file); } /* One for the file and another for the group */ if (obj_count != 2) { H5_FAILED(); - HDprintf(" number of open objects (%ld) did not match expected number (2)\n", obj_count); + printf(" number of open objects (%ld) did not match expected number (2)\n", obj_count); PART_ERROR(H5Fget_obj_count_all_single_file); } @@ -1834,13 +1833,13 @@ test_get_file_obj_count(void) /* Get the number of all open objects */ if ((obj_count = H5Fget_obj_count(H5F_OBJ_ALL, H5F_OBJ_ALL)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve number of open objects\n"); + printf(" couldn't retrieve number of open objects\n"); PART_ERROR(H5Fget_obj_count_all); } if (obj_count != 6) { H5_FAILED(); - HDprintf(" number of open objects (%ld) did not match expected number (6)\n", obj_count); + printf(" number of open objects (%ld) did not match expected number (6)\n", obj_count); PART_ERROR(H5Fget_obj_count_all); } @@ -1854,14 +1853,14 @@ test_get_file_obj_count(void) if (H5Fget_obj_ids(file_id, H5F_OBJ_GROUP, (size_t)obj_count, &object_id) < 0) { H5_FAILED(); - HDprintf(" couldn't get opened group IDs\n"); + printf(" couldn't get opened group IDs\n"); PART_ERROR(H5Fget_obj_ids_singular_grp); } if (object_id != group_id) { H5_FAILED(); - HDprintf(" opened object ID (%ld) did not match only currently open group ID (%ld)\n", - object_id, group_id); + printf(" opened object ID (%ld) did not match only currently open group ID (%ld)\n", + object_id, group_id); PART_ERROR(H5Fget_obj_ids_singular_grp); } @@ -1937,40 +1936,40 @@ test_file_open_overlap(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic or more file, dataset, or group aren't supported with this " - "connector\n"); + printf(" API functions for basic or more file, dataset, or group aren't supported with this " + "connector\n"); return 0; } if (prefix_filename(test_path_prefix, OVERLAPPING_FILENAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename); + printf(" couldn't create file '%s'\n", prefixed_filename); goto error; } if ((file_id2 = H5Fopen(prefixed_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", prefixed_filename); + printf(" couldn't open file '%s'\n", prefixed_filename); goto error; } if ((group_id = H5Gcreate2(file_id, OVERLAPPING_OPEN_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OVERLAPPING_OPEN_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", OVERLAPPING_OPEN_TEST_GRP_NAME); goto error; } /* Create a dataspace for the dataset */ if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create data space for dataset\n"); + printf(" couldn't create data space for dataset\n"); goto error; } @@ -1978,20 +1977,20 @@ test_file_open_overlap(void) if ((dset_id = H5Dcreate2(group_id, OVERLAPPING_OPEN_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME); + printf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME); goto error; } /* Get the number of objects opened in the first file: 3 == file + dataset + group */ if ((obj_count = H5Fget_obj_count(file_id, H5F_OBJ_LOCAL | H5F_OBJ_ALL)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve the number of objects opened in the file\n"); + printf(" couldn't retrieve the number of objects opened in the file\n"); goto error; } if (obj_count != 3) { H5_FAILED(); - HDprintf(" number of objects opened in file (%ld) did not match expected number (3)\n", obj_count); + printf(" number of objects opened in file (%ld) did not match expected number (3)\n", obj_count); goto error; } @@ -2006,21 +2005,21 @@ test_file_open_overlap(void) if ((dset_id = H5Dcreate2(file_id2, OVERLAPPING_OPEN_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME); + printf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME); goto error; } /* Get the number of objects opened in the first file: 2 == file + dataset */ if ((obj_count = H5Fget_obj_count(file_id2, H5F_OBJ_ALL)) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve the number of objects opened in the file\n"); + printf(" couldn't retrieve the number of objects opened in the file\n"); goto error; } if (obj_count != 2) { H5_FAILED(); - HDprintf(" number of objects opened in the file (%ld) did not match expected number (2)\n", - obj_count); + printf(" number of objects opened in the file (%ld) did not match expected number (2)\n", + obj_count); goto error; } @@ -2072,46 +2071,46 @@ test_file_mounts(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_MOUNT) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, file mount, or basic group aren't supported with this " - "connector\n"); + printf(" API functions for basic file, file mount, or basic group aren't supported with this " + "connector\n"); return 0; } if (prefix_filename(test_path_prefix, FILE_MOUNT_TEST_FILENAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename); + printf(" couldn't create file '%s'\n", prefixed_filename); goto error; } if ((group_id = H5Gcreate2(file_id, FILE_MOUNT_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", FILE_MOUNT_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", FILE_MOUNT_TEST_GRP_NAME); goto error; } if ((child_fid = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } /* Mount one file (child_fid) to the group of another file (file_id) */ if (H5Fmount(file_id, FILE_MOUNT_TEST_GRP_NAME, child_fid, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't mount file\n"); + printf(" couldn't mount file\n"); goto error; } if (H5Funmount(file_id, FILE_MOUNT_TEST_GRP_NAME) < 0) { H5_FAILED(); - HDprintf(" couldn't mount file\n"); + printf(" couldn't mount file\n"); goto error; } @@ -2167,7 +2166,7 @@ test_get_file_name(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf( + printf( " API functions for basic or more file, basic dataset, group, stored datatypes, or attribute " "aren't supported with this connector\n"); return 0; @@ -2177,13 +2176,13 @@ test_get_file_name(void) if (prefix_filename(test_path_prefix, GET_FILE_NAME_TEST_FNAME, &prefixed_filename) < 0) { H5_FAILED(); - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); goto error; } if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", prefixed_filename); + printf(" couldn't create file '%s'\n", prefixed_filename); goto error; } @@ -2208,14 +2207,14 @@ test_get_file_name(void) /* Retrieve the actual file name */ if (H5Fget_name(file_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) { H5_FAILED(); - HDprintf(" couldn't get file name %s\n", prefixed_filename); + printf(" couldn't get file name %s\n", prefixed_filename); PART_ERROR(H5Fget_name_file_id); } if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) { H5_FAILED(); - HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, - prefixed_filename); + printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, + prefixed_filename); PART_ERROR(H5Fget_name_file_id); } @@ -2233,20 +2232,20 @@ test_get_file_name(void) if ((group_id = H5Gcreate2(file_id, GET_FILE_NAME_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create group '%s'\n", GET_FILE_NAME_TEST_GRP_NAME); + printf(" failed to create group '%s'\n", GET_FILE_NAME_TEST_GRP_NAME); PART_ERROR(H5Fget_name_grp_id); } if (H5Fget_name(group_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) { H5_FAILED(); - HDprintf(" couldn't get file name %s\n", prefixed_filename); + printf(" couldn't get file name %s\n", prefixed_filename); PART_ERROR(H5Fget_name_grp_id); } if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) { H5_FAILED(); - HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, - prefixed_filename); + printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, + prefixed_filename); PART_ERROR(H5Fget_name_grp_id); } @@ -2269,7 +2268,7 @@ test_get_file_name(void) if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataspace\n"); + printf(" couldn't create dataspace\n"); PART_ERROR(H5Fget_name_dset_id); } @@ -2277,21 +2276,21 @@ test_get_file_name(void) if ((dset_id = H5Dcreate2(file_id, GET_FILE_NAME_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the dataset '%s'\n", GET_FILE_NAME_TEST_DSET_NAME); + printf(" couldn't create the dataset '%s'\n", GET_FILE_NAME_TEST_DSET_NAME); PART_ERROR(H5Fget_name_dset_id); } /* Get and verify file name from the dataset */ if (H5Fget_name(dset_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) { H5_FAILED(); - HDprintf(" couldn't get file name %s\n", prefixed_filename); + printf(" couldn't get file name %s\n", prefixed_filename); PART_ERROR(H5Fget_name_dset_id); } if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) { H5_FAILED(); - HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, - prefixed_filename); + printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, + prefixed_filename); PART_ERROR(H5Fget_name_dset_id); } @@ -2322,7 +2321,7 @@ test_get_file_name(void) if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataspace\n"); + printf(" couldn't create dataspace\n"); PART_ERROR(H5Fget_name_attr_id); } @@ -2330,21 +2329,21 @@ test_get_file_name(void) if ((attr_id = H5Acreate2(file_id, GET_FILE_NAME_TEST_ATTR_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create the attribute '%s'\n", GET_FILE_NAME_TEST_ATTR_NAME); + printf(" couldn't create the attribute '%s'\n", GET_FILE_NAME_TEST_ATTR_NAME); PART_ERROR(H5Fget_name_attr_id); } /* Get and verify file name from the attribute */ if (H5Fget_name(attr_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) { H5_FAILED(); - HDprintf(" couldn't get file name %s\n", prefixed_filename); + printf(" couldn't get file name %s\n", prefixed_filename); PART_ERROR(H5Fget_name_attr_id); } if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) { H5_FAILED(); - HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, - prefixed_filename); + printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, + prefixed_filename); PART_ERROR(H5Fget_name_attr_id); } @@ -2376,28 +2375,28 @@ test_get_file_name(void) /* Create a named datatype */ if ((named_dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" couldn't copy a native datatype\n"); + printf(" couldn't copy a native datatype\n"); PART_ERROR(H5Fget_name_dtype_id); } if (H5Tcommit2(file_id, GET_FILE_NAME_TEST_NAMED_DTYPE, named_dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit a named datatype\n"); + printf(" couldn't commit a named datatype\n"); PART_ERROR(H5Fget_name_dtype_id); } /* Get and verify file name from the committed datatype */ if (H5Fget_name(named_dtype_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) { H5_FAILED(); - HDprintf(" couldn't get file name %s\n", prefixed_filename); + printf(" couldn't get file name %s\n", prefixed_filename); PART_ERROR(H5Fget_name_dtype_id); } if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) { H5_FAILED(); - HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, - prefixed_filename); + printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf, + prefixed_filename); PART_ERROR(H5Fget_name_dtype_id); } @@ -2422,7 +2421,7 @@ test_get_file_name(void) if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataspace\n"); + printf(" couldn't create dataspace\n"); PART_ERROR(H5Fget_name_dspace_id); } @@ -2436,7 +2435,7 @@ test_get_file_name(void) if (name_len >= 0) { H5_FAILED(); - HDprintf(" retrieved file name using H5Fget_name on a dataspace ID!\n"); + printf(" retrieved file name using H5Fget_name on a dataspace ID!\n"); PART_ERROR(H5Fget_name_dspace_id); } @@ -2521,19 +2520,19 @@ H5_api_file_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API File Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API File Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(file_tests); i++) { nerrors += (*file_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); - HDprintf("Cleaning up testing files\n"); + printf("Cleaning up testing files\n"); cleanup_files(); return nerrors; diff --git a/test/API/H5_api_group_test.c b/test/API/H5_api_group_test.c index 016d988..20ced5b 100644 --- a/test/API/H5_api_group_test.c +++ b/test/API/H5_api_group_test.c @@ -70,13 +70,13 @@ test_create_group_under_root(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -84,7 +84,7 @@ test_create_group_under_root(void) if ((parent_gid = H5Gcreate2(file_id, GROUP_CREATE_UNDER_ROOT_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", GROUP_CREATE_UNDER_ROOT_GNAME); + printf(" couldn't create group '%s'\n", GROUP_CREATE_UNDER_ROOT_GNAME); goto error; } @@ -124,20 +124,20 @@ test_create_group_under_existing_group(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } /* Open the already-existing group (/group_tests) in the file as the parent */ if ((parent_group_id = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group\n"); + printf(" couldn't open group\n"); goto error; } @@ -146,7 +146,7 @@ test_create_group_under_existing_group(void) if ((child_group_id = H5Gcreate2(parent_group_id, GROUP_CREATE_UNDER_GROUP_REL_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group using relative path: %s\n", GROUP_CREATE_UNDER_GROUP_REL_GNAME); + printf(" couldn't create group using relative path: %s\n", GROUP_CREATE_UNDER_GROUP_REL_GNAME); goto error; } @@ -155,7 +155,7 @@ test_create_group_under_existing_group(void) if ((grandchild_group_id = H5Gcreate2(parent_group_id, GROUP_CREATE_UNDER_GROUP_ABS_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group using absolute path: %s\n", GROUP_CREATE_UNDER_GROUP_ABS_GNAME); + printf(" couldn't create group using absolute path: %s\n", GROUP_CREATE_UNDER_GROUP_ABS_GNAME); goto error; } @@ -202,38 +202,38 @@ test_create_many_groups(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((parent_group_id = H5Gcreate2(container_group, MANY_GROUP_CREATIONS_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MANY_GROUP_CREATIONS_GNAME); + printf(" couldn't create group '%s'\n", MANY_GROUP_CREATIONS_GNAME); goto error; } /* Create multiple groups under the parent group */ - HDprintf("\n"); + printf("\n"); for (i = 0; i < GROUP_NUMB_MANY; i++) { - HDprintf("\r %u/%u", i + 1, GROUP_NUMB_MANY); + printf("\r %u/%u", i + 1, GROUP_NUMB_MANY); sprintf(group_name, "group %02u", i); if ((child_group_id = H5Gcreate2(parent_group_id, group_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", group_name); + printf(" couldn't create group '%s'\n", group_name); goto error; } @@ -280,19 +280,19 @@ test_create_deep_groups(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } @@ -300,11 +300,11 @@ test_create_deep_groups(void) if ((group_id = H5Gcreate2(container_group, DEEP_GROUP_CREATIONS_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", DEEP_GROUP_CREATIONS_GNAME); + printf(" couldn't create group '%s'\n", DEEP_GROUP_CREATIONS_GNAME); goto error; } - HDprintf("\n"); + printf("\n"); if (create_group_recursive(group_id, 1) < 0) TEST_ERROR; @@ -340,7 +340,7 @@ create_group_recursive(hid_t parent_gid, unsigned counter) hid_t child_gid = H5I_INVALID_HID; char gname[NAME_BUF_SIZE]; - HDprintf("\r %u/%u", counter, GROUP_DEPTH); + printf("\r %u/%u", counter, GROUP_DEPTH); if (counter == 1) sprintf(gname, "2nd_child_group"); else if (counter == 2) @@ -349,7 +349,7 @@ create_group_recursive(hid_t parent_gid, unsigned counter) sprintf(gname, "%dth_child_group", counter + 1); if ((child_gid = H5Gcreate2(parent_gid, gname, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", gname); + printf(" couldn't create group '%s'\n", gname); goto error; } @@ -389,19 +389,19 @@ test_create_intermediate_group(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } @@ -536,7 +536,7 @@ test_create_group_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } @@ -544,7 +544,7 @@ test_create_group_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -565,7 +565,7 @@ test_create_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" created group with invalid loc_id!\n"); + printf(" created group with invalid loc_id!\n"); H5Gclose(group_id); PART_ERROR(H5Gcreate_invalid_loc_id); } @@ -586,7 +586,7 @@ test_create_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" created group with a NULL name!\n"); + printf(" created group with a NULL name!\n"); H5Gclose(group_id); PART_ERROR(H5Gcreate_invalid_grp_name); } @@ -599,7 +599,7 @@ test_create_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" created group with an invalid group name of ''!\n"); + printf(" created group with an invalid group name of ''!\n"); H5Gclose(group_id); PART_ERROR(H5Gcreate_invalid_grp_name); } @@ -621,7 +621,7 @@ test_create_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" created group with invalid LCPL!\n"); + printf(" created group with invalid LCPL!\n"); H5Gclose(group_id); PART_ERROR(H5Gcreate_invalid_lcpl); } @@ -643,7 +643,7 @@ test_create_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" created group with invalid GCPL!\n"); + printf(" created group with invalid GCPL!\n"); H5Gclose(group_id); PART_ERROR(H5Gcreate_invalid_gcpl); } @@ -665,7 +665,7 @@ test_create_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" created group with invalid GAPL!\n"); + printf(" created group with invalid GAPL!\n"); H5Gclose(group_id); PART_ERROR(H5Gcreate_invalid_gapl); } @@ -711,25 +711,25 @@ test_create_anonymous_group(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group\n"); + printf(" couldn't open group\n"); goto error; } if ((new_group_id = H5Gcreate_anon(file_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create anonymous group\n"); + printf(" couldn't create anonymous group\n"); goto error; } @@ -771,7 +771,7 @@ test_create_anonymous_group_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } @@ -779,13 +779,13 @@ test_create_anonymous_group_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group\n"); + printf(" couldn't open group\n"); goto error; } @@ -805,7 +805,7 @@ test_create_anonymous_group_invalid_params(void) if (new_group_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous group with invalid loc_id!\n"); + printf(" created anonymous group with invalid loc_id!\n"); H5Gclose(new_group_id); PART_ERROR(H5Gcreate_anon_invalid_loc_id); } @@ -826,7 +826,7 @@ test_create_anonymous_group_invalid_params(void) if (new_group_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous group with invalid GCPL!\n"); + printf(" created anonymous group with invalid GCPL!\n"); H5Gclose(new_group_id); PART_ERROR(H5Gcreate_anon_invalid_gcpl); } @@ -847,7 +847,7 @@ test_create_anonymous_group_invalid_params(void) if (new_group_id >= 0) { H5_FAILED(); - HDprintf(" created anonymous group with invalid GAPL!\n"); + printf(" created anonymous group with invalid GAPL!\n"); H5Gclose(new_group_id); PART_ERROR(H5Gcreate_anon_invalid_gapl); } @@ -896,13 +896,13 @@ test_open_nonexistent_group(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } @@ -914,7 +914,7 @@ test_open_nonexistent_group(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" opened non-existent group!\n"); + printf(" opened non-existent group!\n"); goto error; } @@ -951,7 +951,7 @@ test_open_group_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } @@ -959,7 +959,7 @@ test_open_group_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -979,7 +979,7 @@ test_open_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" opened group using an invalid loc_id!\n"); + printf(" opened group using an invalid loc_id!\n"); H5Gclose(group_id); PART_ERROR(H5Gopen_invalid_loc_id); } @@ -1000,7 +1000,7 @@ test_open_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" opened group using a NULL name!\n"); + printf(" opened group using a NULL name!\n"); H5Gclose(group_id); PART_ERROR(H5Gopen_invalid_grp_name); } @@ -1013,7 +1013,7 @@ test_open_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" opened group using an invalid name of ''!\n"); + printf(" opened group using an invalid name of ''!\n"); H5Gclose(group_id); PART_ERROR(H5Gopen_invalid_grp_name); } @@ -1034,7 +1034,7 @@ test_open_group_invalid_params(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" opened group using an invalid GAPL!\n"); + printf(" opened group using an invalid GAPL!\n"); H5Gclose(group_id); PART_ERROR(H5Gopen_invalid_gapl); } @@ -1079,7 +1079,7 @@ test_close_group_invalid_id(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic group aren't supported with this connector\n"); + printf(" API functions for basic group aren't supported with this connector\n"); return 0; } @@ -1091,7 +1091,7 @@ test_close_group_invalid_id(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" close a group with an invalid ID!\n"); + printf(" close a group with an invalid ID!\n"); goto error; } @@ -1123,8 +1123,8 @@ test_group_property_lists(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST) || !(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" API functions for basic file, group, property list, or creation order aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, property list, or creation order aren't supported " + "with this connector\n"); return 0; } @@ -1132,25 +1132,25 @@ test_group_property_lists(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((gcpl_id1 = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL\n"); + printf(" couldn't create GCPL\n"); goto error; } if (H5Pset_link_creation_order(gcpl_id1, dummy_prop_val) < 0) { H5_FAILED(); - HDprintf(" couldn't set property on GCPL\n"); + printf(" couldn't set property on GCPL\n"); goto error; } @@ -1158,7 +1158,7 @@ test_group_property_lists(void) if ((group_id1 = H5Gcreate2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME1, H5P_DEFAULT, gcpl_id1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group\n"); + printf(" couldn't create group\n"); goto error; } @@ -1166,7 +1166,7 @@ test_group_property_lists(void) if ((group_id2 = H5Gcreate2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group\n"); + printf(" couldn't create group\n"); goto error; } @@ -1185,13 +1185,13 @@ test_group_property_lists(void) * does not */ if ((gcpl_id1 = H5Gget_create_plist(group_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get GCPL\n"); + printf(" couldn't get GCPL\n"); PART_ERROR(H5Gget_create_plist); } if ((gcpl_id2 = H5Gget_create_plist(group_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get GCPL\n"); + printf(" couldn't get GCPL\n"); PART_ERROR(H5Gget_create_plist); } @@ -1200,15 +1200,15 @@ test_group_property_lists(void) if (H5Pget_link_creation_order(gcpl_id1, &dummy_prop_val) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve GCPL property value\n"); + printf(" couldn't retrieve GCPL property value\n"); PART_ERROR(H5Gget_create_plist); } if (dummy_prop_val != GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) { H5_FAILED(); - HDprintf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n", - (unsigned long long)dummy_prop_val, - (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); + printf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n", + (unsigned long long)dummy_prop_val, + (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); PART_ERROR(H5Gget_create_plist); } @@ -1216,16 +1216,16 @@ test_group_property_lists(void) if (H5Pget_link_creation_order(gcpl_id2, &dummy_prop_val) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve GCPL property value\n"); + printf(" couldn't retrieve GCPL property value\n"); PART_ERROR(H5Gget_create_plist); } if (dummy_prop_val == GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) { H5_FAILED(); - HDprintf(" retrieved GCPL property value '%llu' matched control value '%llu' when it " - "shouldn't have\n", - (unsigned long long)dummy_prop_val, - (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); + printf(" retrieved GCPL property value '%llu' matched control value '%llu' when it " + "shouldn't have\n", + (unsigned long long)dummy_prop_val, + (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); PART_ERROR(H5Gget_create_plist); } @@ -1278,26 +1278,26 @@ test_group_property_lists(void) if ((group_id1 = H5Gopen2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group\n"); + printf(" couldn't open group\n"); PART_ERROR(H5Gget_create_plist_reopened); } if ((group_id2 = H5Gopen2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group\n"); + printf(" couldn't open group\n"); PART_ERROR(H5Gget_create_plist_reopened); } if ((gcpl_id1 = H5Gget_create_plist(group_id1)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Gget_create_plist_reopened); } if ((gcpl_id2 = H5Gget_create_plist(group_id2)) < 0) { H5_FAILED(); - HDprintf(" couldn't get property list\n"); + printf(" couldn't get property list\n"); PART_ERROR(H5Gget_create_plist_reopened); } @@ -1306,15 +1306,15 @@ test_group_property_lists(void) if (H5Pget_link_creation_order(gcpl_id1, &dummy_prop_val) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve GCPL property value\n"); + printf(" couldn't retrieve GCPL property value\n"); PART_ERROR(H5Gget_create_plist_reopened); } if (dummy_prop_val != GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) { H5_FAILED(); - HDprintf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n", - (unsigned long long)dummy_prop_val, - (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); + printf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n", + (unsigned long long)dummy_prop_val, + (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); PART_ERROR(H5Gget_create_plist_reopened); } @@ -1322,16 +1322,16 @@ test_group_property_lists(void) if (H5Pget_link_creation_order(gcpl_id2, &dummy_prop_val) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve GCPL property value\n"); + printf(" couldn't retrieve GCPL property value\n"); PART_ERROR(H5Gget_create_plist_reopened); } if (dummy_prop_val == GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) { H5_FAILED(); - HDprintf(" retrieved GCPL property value '%llu' matched control value '%llu' when it " - "shouldn't have\n", - (unsigned long long)dummy_prop_val, - (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); + printf(" retrieved GCPL property value '%llu' matched control value '%llu' when it " + "shouldn't have\n", + (unsigned long long)dummy_prop_val, + (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL); PART_ERROR(H5Gget_create_plist_reopened); } @@ -1395,7 +1395,7 @@ test_get_group_info(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file or group aren't supported with this connector\n"); + printf(" API functions for basic file or group aren't supported with this connector\n"); return 0; } @@ -1403,26 +1403,26 @@ test_get_group_info(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -1430,7 +1430,7 @@ test_get_group_info(void) if ((parent_group_id = H5Gcreate2(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", GROUP_GET_INFO_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", GROUP_GET_INFO_TEST_GROUP_NAME); goto error; } @@ -1442,7 +1442,7 @@ test_get_group_info(void) if ((group_id = H5Gcreate2(parent_group_id, group_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", group_name); + printf(" couldn't create group '%s'\n", group_name); goto error; } @@ -1463,14 +1463,14 @@ test_get_group_info(void) /* Retrieve information about the parent group */ if (H5Gget_info(parent_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" couldn't get group info\n"); + printf(" couldn't get group info\n"); PART_ERROR(H5Gget_info); } if (group_info.nlinks != GROUP_GET_INFO_TEST_GROUP_NUMB) { H5_FAILED(); - HDprintf(" group's number of links '%lu' doesn't match expected value '%u'\n", - group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB); + printf(" group's number of links '%lu' doesn't match expected value '%u'\n", + group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB); PART_ERROR(H5Gget_info); } @@ -1480,8 +1480,8 @@ test_get_group_info(void) */ if (group_info.max_corder != GROUP_GET_INFO_TEST_GROUP_NUMB) { H5_FAILED(); - HDprintf(" group's max creation order '%lld' doesn't match expected value '%lld'\n", - (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB); + printf(" group's max creation order '%lld' doesn't match expected value '%lld'\n", + (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB); PART_ERROR(H5Gget_info); } @@ -1491,14 +1491,14 @@ test_get_group_info(void) group_info.storage_type != H5G_STORAGE_TYPE_DENSE && group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) { H5_FAILED(); - HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); + printf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); PART_ERROR(H5Gget_info); } /* Assume that mounted should be FALSE in this case */ if (group_info.mounted != FALSE) { H5_FAILED(); - HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); + printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); PART_ERROR(H5Gget_info); } @@ -1516,14 +1516,14 @@ test_get_group_info(void) if (H5Gget_info_by_name(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, &group_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get group info by name\n"); + printf(" couldn't get group info by name\n"); PART_ERROR(H5Gget_info_by_name); } if (group_info.nlinks != GROUP_GET_INFO_TEST_GROUP_NUMB) { H5_FAILED(); - HDprintf(" group's number of links '%lu' doesn't match expected value '%u'\n", - group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB); + printf(" group's number of links '%lu' doesn't match expected value '%u'\n", + group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB); PART_ERROR(H5Gget_info_by_name); } @@ -1533,8 +1533,8 @@ test_get_group_info(void) */ if (group_info.max_corder != GROUP_GET_INFO_TEST_GROUP_NUMB) { H5_FAILED(); - HDprintf(" group's max creation order '%lld' doesn't match expected value '%lld'\n", - (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB); + printf(" group's max creation order '%lld' doesn't match expected value '%lld'\n", + (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB); PART_ERROR(H5Gget_info_by_name); } @@ -1544,14 +1544,14 @@ test_get_group_info(void) group_info.storage_type != H5G_STORAGE_TYPE_DENSE && group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) { H5_FAILED(); - HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); + printf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); PART_ERROR(H5Gget_info_by_name); } /* Assume that mounted should be FALSE in this case */ if (group_info.mounted != FALSE) { H5_FAILED(); - HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); + printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); PART_ERROR(H5Gget_info_by_name); } @@ -1565,7 +1565,7 @@ test_get_group_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Gget_info_by_idx_crt_order_increasing); } @@ -1576,21 +1576,21 @@ test_get_group_info(void) if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get group info for group at index %u\n", i); + printf(" couldn't get group info for group at index %u\n", i); PART_ERROR(H5Gget_info_by_idx_crt_order_increasing); } if (group_info.nlinks != 0) { H5_FAILED(); - HDprintf(" group's number of links '%lu' doesn't match expected value '%d'\n", - group_info.nlinks, 0); + printf(" group's number of links '%lu' doesn't match expected value '%d'\n", + group_info.nlinks, 0); PART_ERROR(H5Gget_info_by_idx_crt_order_increasing); } if (group_info.max_corder != 0) { H5_FAILED(); - HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n", - (long long)group_info.max_corder, 0); + printf(" group's max creation order '%lld' doesn't match expected value '%d'\n", + (long long)group_info.max_corder, 0); PART_ERROR(H5Gget_info_by_idx_crt_order_increasing); } @@ -1600,14 +1600,14 @@ test_get_group_info(void) group_info.storage_type != H5G_STORAGE_TYPE_DENSE && group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) { H5_FAILED(); - HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); + printf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); PART_ERROR(H5Gget_info_by_idx_crt_order_increasing); } /* Assume that mounted should be FALSE in this case */ if (group_info.mounted != FALSE) { H5_FAILED(); - HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); + printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); PART_ERROR(H5Gget_info_by_idx_crt_order_increasing); } } @@ -1622,7 +1622,7 @@ test_get_group_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Gget_info_by_idx_crt_order_decreasing); } @@ -1633,21 +1633,21 @@ test_get_group_info(void) if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get group info for group at index %u\n", i); + printf(" couldn't get group info for group at index %u\n", i); PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing); } if (group_info.nlinks != 0) { H5_FAILED(); - HDprintf(" group's number of links '%lu' doesn't match expected value '%d'\n", - group_info.nlinks, 0); + printf(" group's number of links '%lu' doesn't match expected value '%d'\n", + group_info.nlinks, 0); PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing); } if (group_info.max_corder != 0) { H5_FAILED(); - HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n", - (long long)group_info.max_corder, 0); + printf(" group's max creation order '%lld' doesn't match expected value '%d'\n", + (long long)group_info.max_corder, 0); PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing); } @@ -1657,14 +1657,14 @@ test_get_group_info(void) group_info.storage_type != H5G_STORAGE_TYPE_DENSE && group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) { H5_FAILED(); - HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); + printf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing); } /* Assume that mounted should be FALSE in this case */ if (group_info.mounted != FALSE) { H5_FAILED(); - HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); + printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing); } } @@ -1684,21 +1684,21 @@ test_get_group_info(void) if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get group info for group at index %u\n", i); + printf(" couldn't get group info for group at index %u\n", i); PART_ERROR(H5Gget_info_by_idx_name_order_increasing); } if (group_info.nlinks != 0) { H5_FAILED(); - HDprintf(" group's number of links '%lu' doesn't match expected value '%d'\n", - group_info.nlinks, 0); + printf(" group's number of links '%lu' doesn't match expected value '%d'\n", + group_info.nlinks, 0); PART_ERROR(H5Gget_info_by_idx_name_order_increasing); } if (group_info.max_corder != 0) { H5_FAILED(); - HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n", - (long long)group_info.max_corder, 0); + printf(" group's max creation order '%lld' doesn't match expected value '%d'\n", + (long long)group_info.max_corder, 0); PART_ERROR(H5Gget_info_by_idx_name_order_increasing); } @@ -1708,14 +1708,14 @@ test_get_group_info(void) group_info.storage_type != H5G_STORAGE_TYPE_DENSE && group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) { H5_FAILED(); - HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); + printf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); PART_ERROR(H5Gget_info_by_idx_name_order_increasing); } /* Assume that mounted should be FALSE in this case */ if (group_info.mounted != FALSE) { H5_FAILED(); - HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); + printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); PART_ERROR(H5Gget_info_by_idx_name_order_increasing); } } @@ -1735,22 +1735,21 @@ test_get_group_info(void) if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get group info for group at index %u\n", i); + printf(" couldn't get group info for group at index %u\n", i); PART_ERROR(H5Gget_info_by_idx_name_order_decreasing); } if (group_info.nlinks != 0) { H5_FAILED(); - HDprintf(" group's number of links '%" PRIuHSIZE - "' doesn't match expected value '%d'\n", - group_info.nlinks, 0); + printf(" group's number of links '%" PRIuHSIZE "' doesn't match expected value '%d'\n", + group_info.nlinks, 0); PART_ERROR(H5Gget_info_by_idx_name_order_decreasing); } if (group_info.max_corder != 0) { H5_FAILED(); - HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n", - (long long)group_info.max_corder, 0); + printf(" group's max creation order '%lld' doesn't match expected value '%d'\n", + (long long)group_info.max_corder, 0); PART_ERROR(H5Gget_info_by_idx_name_order_decreasing); } @@ -1760,14 +1759,14 @@ test_get_group_info(void) group_info.storage_type != H5G_STORAGE_TYPE_DENSE && group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) { H5_FAILED(); - HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); + printf(" group info's 'storage_type' field wasn't set to a meaningful value\n"); PART_ERROR(H5Gget_info_by_idx_name_order_decreasing); } /* Assume that mounted should be FALSE in this case */ if (group_info.mounted != FALSE) { H5_FAILED(); - HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); + printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n"); PART_ERROR(H5Gget_info_by_idx_name_order_decreasing); } } @@ -1823,8 +1822,8 @@ test_get_group_info_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, or more group aren't supported with this " - "connector\n"); + printf(" API functions for basic file, or more group aren't supported with this " + "connector\n"); return 0; } @@ -1832,7 +1831,7 @@ test_get_group_info_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -1852,7 +1851,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info with an invalid loc_id!\n"); + printf(" retrieved info of group using H5Gget_info with an invalid loc_id!\n"); PART_ERROR(H5Gget_info_invalid_loc_id); } @@ -1872,7 +1871,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info with invalid group info pointer!\n"); + printf(" retrieved info of group using H5Gget_info with invalid group info pointer!\n"); PART_ERROR(H5Gget_info_invalid_grp_info_pointer); } @@ -1892,7 +1891,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_name with an invalid loc_id!\n"); + printf(" retrieved info of group using H5Gget_info_by_name with an invalid loc_id!\n"); PART_ERROR(H5Gget_info_by_name_invalid_loc_id); } @@ -1912,7 +1911,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_name with a NULL name!\n"); + printf(" retrieved info of group using H5Gget_info_by_name with a NULL name!\n"); PART_ERROR(H5Gget_info_by_name_invalid_grp_name); } @@ -1924,8 +1923,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( - " retrieved info of group using H5Gget_info_by_name with an invalid name of ''!\n"); + printf(" retrieved info of group using H5Gget_info_by_name with an invalid name of ''!\n"); PART_ERROR(H5Gget_info_by_name_invalid_grp_name); } @@ -1945,8 +1943,8 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_name with an invalid group info " - "pointer!\n"); + printf(" retrieved info of group using H5Gget_info_by_name with an invalid group info " + "pointer!\n"); PART_ERROR(H5Gget_info_by_name_invalid_grp_info_pointer); } @@ -1966,7 +1964,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_name with an invalid LAPL!\n"); + printf(" retrieved info of group using H5Gget_info_by_name with an invalid LAPL!\n"); PART_ERROR(H5Gget_info_by_name_invalid_lapl); } @@ -1987,7 +1985,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid loc_id!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with an invalid loc_id!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_loc_id); } @@ -2008,7 +2006,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with a NULL group name!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with a NULL group name!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_grp_name); } @@ -2021,8 +2019,8 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid group name of " - "''!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with an invalid group name of " + "''!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_grp_name); } @@ -2043,8 +2041,8 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid index type " - "H5_INDEX_UNKNOWN!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with invalid index type " + "H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_index_type); } @@ -2057,8 +2055,8 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid index type " - "H5_INDEX_N!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with invalid index type " + "H5_INDEX_N!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_index_type); } @@ -2079,8 +2077,8 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order " - "H5_ITER_UNKNOWN!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order " + "H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_iter_order); } @@ -2093,8 +2091,8 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order " - "H5_ITER_N!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order " + "H5_ITER_N!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_iter_order); } @@ -2114,8 +2112,8 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid group info " - "pointer!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with an invalid group info " + "pointer!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_grp_info_pointer); } @@ -2136,7 +2134,7 @@ test_get_group_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid LAPL!\n"); + printf(" retrieved info of group using H5Gget_info_by_idx with an invalid LAPL!\n"); PART_ERROR(H5Gget_info_by_idx_invalid_lapl); } @@ -2181,34 +2179,34 @@ test_flush_group(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or flush refresh aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or flush refresh aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, GROUP_FLUSH_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", GROUP_FLUSH_GNAME); + printf(" couldn't create group '%s'\n", GROUP_FLUSH_GNAME); goto error; } /* Flush the group */ if (H5Gflush(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't flush the group '%s'\n", GROUP_FLUSH_GNAME); + printf(" couldn't flush the group '%s'\n", GROUP_FLUSH_GNAME); goto error; } @@ -2249,7 +2247,7 @@ test_flush_group_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for group flush aren't supported with this connector\n"); + printf(" API functions for group flush aren't supported with this connector\n"); return 0; } @@ -2261,7 +2259,7 @@ test_flush_group_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" flushed group with invalid ID!\n"); + printf(" flushed group with invalid ID!\n"); goto error; } @@ -2289,34 +2287,34 @@ test_refresh_group(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or flush refresh aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or flush refresh aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, GROUP_REFRESH_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", GROUP_REFRESH_GNAME); + printf(" couldn't create group '%s'\n", GROUP_REFRESH_GNAME); goto error; } /* Refresh the group */ if (H5Grefresh(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't refresh the group '%s'\n", GROUP_REFRESH_GNAME); + printf(" couldn't refresh the group '%s'\n", GROUP_REFRESH_GNAME); goto error; } @@ -2357,7 +2355,7 @@ test_refresh_group_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) { SKIPPED(); - HDprintf(" API functions for group refresh aren't supported with this connector\n"); + printf(" API functions for group refresh aren't supported with this connector\n"); return 0; } @@ -2369,7 +2367,7 @@ test_refresh_group_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" refreshed group with invalid ID!\n"); + printf(" refreshed group with invalid ID!\n"); goto error; } @@ -2387,17 +2385,17 @@ H5_api_group_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Group Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Group Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(group_tests); i++) { nerrors += (*group_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); return nerrors; } diff --git a/test/API/H5_api_link_test.c b/test/API/H5_api_link_test.c index 65a3277..3559254 100644 --- a/test/API/H5_api_link_test.c +++ b/test/API/H5_api_link_test.c @@ -185,46 +185,46 @@ test_create_hard_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or hard link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, HARD_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); goto error; } if (H5Lcreate_hard(file_id, "/", group_id, HARD_LINK_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", HARD_LINK_TEST_LINK_NAME); + printf(" couldn't create hard link '%s'\n", HARD_LINK_TEST_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, HARD_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", HARD_LINK_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", HARD_LINK_TEST_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } @@ -272,33 +272,33 @@ test_create_hard_link_long_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or hard link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, HARD_LINK_TEST_GROUP_LONG_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); goto error; } if (H5VLget_connector_name(file_id, vol_name, 5) < 0) { H5_FAILED(); - HDprintf(" couldn't get VOL connector name\n"); + printf(" couldn't get VOL connector name\n"); goto error; } @@ -316,20 +316,20 @@ test_create_hard_link_long_name(void) if (H5Lcreate_hard(file_id, "/", group_id, objname, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link with a long name\n"); + printf(" couldn't create hard link with a long name\n"); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, objname, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if the link with a long name exists\n"); + printf(" couldn't determine if the link with a long name exists\n"); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } @@ -382,34 +382,34 @@ test_create_hard_link_many(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or hard link aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, HARD_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); goto error; } if ((group_id2 = H5Gcreate2(group_id, HARD_LINK_TEST_GROUP_MANY_FINAL_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); + printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); goto error; } @@ -460,13 +460,13 @@ test_create_hard_link_many(void) /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, "hard21", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link 'hard21' exists\n"); + printf(" couldn't determine if link 'hard21' exists\n"); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 'hard21' did not exist\n"); + printf(" link 'hard21' did not exist\n"); goto error; } @@ -482,39 +482,39 @@ test_create_hard_link_many(void) /* Reopen the file and group and verify the hard link */ if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gopen2(container_group, HARD_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); + printf(" couldn't open container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME); goto error; } /* Open the object through last hard link */ if ((group_id2 = H5Gopen2(group_id, "hard21", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open the group '%s' with the last hard link 'hard21'\n", - HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); + printf(" couldn't open the group '%s' with the last hard link 'hard21'\n", + HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); goto error; } /* Check name */ if (H5Iget_name(group_id2, objname, (size_t)HARD_LINK_TEST_GROUP_MANY_NAME_BUF_SIZE) < 0) { H5_FAILED(); - HDprintf(" couldn't get the name of the object '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); + printf(" couldn't get the name of the object '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); goto error; } if (HDstrcmp(objname, "/" LINK_TEST_GROUP_NAME "/" HARD_LINK_TEST_GROUP_MANY_NAME "/hard21")) { H5_FAILED(); - HDprintf(" wrong name of the object '%s'\n", objname); + printf(" wrong name of the object '%s'\n", objname); goto error; } @@ -561,8 +561,8 @@ test_create_hard_link_same_loc(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or hard link aren't supported with this " + "connector\n"); return 0; } @@ -570,20 +570,20 @@ test_create_hard_link_same_loc(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, H5L_SAME_LOC_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", H5L_SAME_LOC_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", H5L_SAME_LOC_TEST_GROUP_NAME); goto error; } @@ -599,20 +599,20 @@ test_create_hard_link_same_loc(void) if (H5Lcreate_hard(H5L_SAME_LOC, ".", group_id, H5L_SAME_LOC_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME1); + printf(" couldn't create first link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME1); PART_ERROR(H5L_SAME_LOC_first_param); } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, H5L_SAME_LOC_TEST_LINK_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5L_SAME_LOC_first_param); } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); PART_ERROR(H5L_SAME_LOC_first_param); } @@ -627,20 +627,20 @@ test_create_hard_link_same_loc(void) if (H5Lcreate_hard(group_id, ".", H5L_SAME_LOC, H5L_SAME_LOC_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create second link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME2); + printf(" couldn't create second link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME2); PART_ERROR(H5L_SAME_LOC_third_param); } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, H5L_SAME_LOC_TEST_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", H5L_SAME_LOC_TEST_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", H5L_SAME_LOC_TEST_LINK_NAME2); PART_ERROR(H5L_SAME_LOC_third_param); } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); PART_ERROR(H5L_SAME_LOC_third_param); } @@ -695,8 +695,8 @@ test_create_hard_link_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or hard link aren't supported with this " + "connector\n"); return 0; } @@ -704,20 +704,20 @@ test_create_hard_link_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, HARD_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", HARD_LINK_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -738,7 +738,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with an invalid cur_loc_id!\n"); + printf(" created hard link with an invalid cur_loc_id!\n"); PART_ERROR(H5Lcreate_hard_invalid_cur_loc_id); } @@ -759,7 +759,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with a NULL cur_name!\n"); + printf(" created hard link with a NULL cur_name!\n"); PART_ERROR(H5Lcreate_hard_invalid_cur_name); } @@ -772,7 +772,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with an invalid cur_name of ''!\n"); + printf(" created hard link with an invalid cur_name of ''!\n"); PART_ERROR(H5Lcreate_hard_invalid_cur_name); } @@ -793,7 +793,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with an invalid new_loc_id!\n"); + printf(" created hard link with an invalid new_loc_id!\n"); PART_ERROR(H5Lcreate_hard_invalid_new_loc_id); } @@ -813,7 +813,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with a NULL new_name!\n"); + printf(" created hard link with a NULL new_name!\n"); PART_ERROR(H5Lcreate_hard_invalid_new_name); } @@ -825,7 +825,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with an invalid new_name of ''!\n"); + printf(" created hard link with an invalid new_name of ''!\n"); PART_ERROR(H5Lcreate_hard_invalid_new_name); } @@ -846,7 +846,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with an invalid LCPL!\n"); + printf(" created hard link with an invalid LCPL!\n"); PART_ERROR(H5Lcreate_hard_invalid_lcpl); } @@ -867,7 +867,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with an invalid LAPL!\n"); + printf(" created hard link with an invalid LAPL!\n"); PART_ERROR(H5Lcreate_hard_invalid_lapl); } @@ -888,7 +888,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link with the invalid same location!\n"); + printf(" created hard link with the invalid same location!\n"); PART_ERROR(H5Lcreate_hard_invalid_same_loc); } @@ -905,7 +905,7 @@ test_create_hard_link_invalid_params(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lcreate_hard_across_files); } @@ -918,7 +918,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link across files!\n"); + printf(" created hard link across files!\n"); PART_ERROR(H5Lcreate_hard_across_files); } @@ -931,7 +931,7 @@ test_create_hard_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created hard link across files!\n"); + printf(" created hard link across files!\n"); PART_ERROR(H5Lcreate_hard_across_files); } @@ -947,14 +947,14 @@ test_create_hard_link_invalid_params(void) if ((link_exists = H5Lexists(group_id, HARD_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", - HARD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", + HARD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_hard_invalid_existence); } if (link_exists) { H5_FAILED(); - HDprintf(" link existed!\n"); + printf(" link existed!\n"); PART_ERROR(H5Lcreate_hard_invalid_existence); } @@ -1010,36 +1010,36 @@ test_create_soft_link_existing_relative(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or soft link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, SOFT_LINK_EXISTING_RELATIVE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - SOFT_LINK_EXISTING_RELATIVE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + SOFT_LINK_EXISTING_RELATIVE_TEST_SUBGROUP_NAME); goto error; } if ((object_id = H5Gcreate2(group_id, SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create object '%s' for soft link's target\n", - SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME); + printf(" failed to create object '%s' for soft link's target\n", + SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME); goto error; } @@ -1049,27 +1049,27 @@ test_create_soft_link_existing_relative(void) if (H5Lcreate_soft(SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME, group_id, SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME); + printf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } if ((object_id = H5Gopen2(group_id, SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open object '%s' through the soft link\n", - SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME); + printf(" couldn't open object '%s' through the soft link\n", + SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME); goto error; } @@ -1116,55 +1116,55 @@ test_create_soft_link_existing_absolute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or soft link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, SOFT_LINK_EXISTING_ABSOLUTE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - SOFT_LINK_EXISTING_ABSOLUTE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + SOFT_LINK_EXISTING_ABSOLUTE_TEST_SUBGROUP_NAME); goto error; } if (H5Lcreate_soft("/", group_id, SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME); + printf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } if ((root_id = H5Gopen2(group_id, SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open object pointed to by soft link '%s'\n", - SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME); + printf(" couldn't open object pointed to by soft link '%s'\n", + SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME); goto error; } @@ -1213,48 +1213,48 @@ test_create_soft_link_dangling_relative(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or soft link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, SOFT_LINK_DANGLING_RELATIVE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - SOFT_LINK_DANGLING_RELATIVE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + SOFT_LINK_DANGLING_RELATIVE_TEST_SUBGROUP_NAME); goto error; } if (H5Lcreate_soft(SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME, group_id, SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); + printf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } @@ -1266,7 +1266,7 @@ test_create_soft_link_dangling_relative(void) if (object_id >= 0) { H5_FAILED(); - HDprintf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); + printf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); H5Gclose(object_id); goto error; } @@ -1274,8 +1274,8 @@ test_create_soft_link_dangling_relative(void) if ((object_id = H5Gcreate2(group_id, SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create object '%s' for soft link's target\n", - SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME); + printf(" failed to create object '%s' for soft link's target\n", + SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME); goto error; } @@ -1284,8 +1284,8 @@ test_create_soft_link_dangling_relative(void) if ((object_id = H5Gopen2(group_id, SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open object pointed to by soft link '%s'\n", - SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); + printf(" failed to open object pointed to by soft link '%s'\n", + SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME); goto error; } @@ -1334,28 +1334,28 @@ test_create_soft_link_dangling_absolute(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or soft link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, SOFT_LINK_DANGLING_ABSOLUTE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - SOFT_LINK_DANGLING_ABSOLUTE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + SOFT_LINK_DANGLING_ABSOLUTE_TEST_SUBGROUP_NAME); goto error; } @@ -1363,20 +1363,20 @@ test_create_soft_link_dangling_absolute(void) "/" SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME, group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); + printf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } @@ -1388,7 +1388,7 @@ test_create_soft_link_dangling_absolute(void) if (object_id >= 0) { H5_FAILED(); - HDprintf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); + printf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); H5Gclose(object_id); goto error; } @@ -1396,8 +1396,8 @@ test_create_soft_link_dangling_absolute(void) if ((object_id = H5Gcreate2(group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create object '%s' for soft link's target\n", - SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME); + printf(" failed to create object '%s' for soft link's target\n", + SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME); goto error; } @@ -1406,8 +1406,8 @@ test_create_soft_link_dangling_absolute(void) if ((object_id = H5Gopen2(group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open object pointed to by soft link '%s'\n", - SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); + printf(" failed to open object pointed to by soft link '%s'\n", + SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME); goto error; } @@ -1458,33 +1458,33 @@ test_create_soft_link_long_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or soft link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, SOFT_LINK_TEST_GROUP_LONG_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_LONG_NAME); + printf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_LONG_NAME); goto error; } if (H5VLget_connector_name(file_id, vol_name, 5) < 0) { H5_FAILED(); - HDprintf(" couldn't get VOL connector name\n"); + printf(" couldn't get VOL connector name\n"); goto error; } @@ -1502,20 +1502,20 @@ test_create_soft_link_long_name(void) if (H5Lcreate_soft(SOFT_LINK_TEST_LONG_OBJECT_NAME, group_id, objname, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link with a long name\n"); + printf(" couldn't create soft link with a long name\n"); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, objname, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if the link with a long name exists\n"); + printf(" couldn't determine if the link with a long name exists\n"); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } @@ -1569,27 +1569,27 @@ test_create_soft_link_many(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or soft link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, SOFT_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME); + printf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME); goto error; } @@ -1631,13 +1631,13 @@ test_create_soft_link_many(void) /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, "soft16", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link 'soft16' exists\n"); + printf(" couldn't determine if link 'soft16' exists\n"); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 'soft16' did not exist\n"); + printf(" link 'soft16' did not exist\n"); goto error; } @@ -1651,19 +1651,19 @@ test_create_soft_link_many(void) /* Reopen the file and group and verify the hard link */ if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gopen2(container_group, SOFT_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME); + printf(" couldn't open container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME); goto error; } @@ -1679,7 +1679,7 @@ test_create_soft_link_many(void) if (object_id >= 0) { H5_FAILED(); - HDprintf(" opened target of dangling soft link '%s'!\n", SOFT_LINK_TEST_GROUP_MANY_NAME); + printf(" opened target of dangling soft link '%s'!\n", SOFT_LINK_TEST_GROUP_MANY_NAME); H5Gclose(object_id); goto error; } @@ -1687,7 +1687,7 @@ test_create_soft_link_many(void) if ((object_id = H5Gcreate2(group_id, SOFT_LINK_TEST_GROUP_MANY_FINAL_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create object '%s' for soft link's target\n", SOFT_LINK_TEST_GROUP_MANY_NAME); + printf(" failed to create object '%s' for soft link's target\n", SOFT_LINK_TEST_GROUP_MANY_NAME); goto error; } @@ -1700,19 +1700,19 @@ test_create_soft_link_many(void) */ if ((object_id = H5Gopen2(group_id, "soft16", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open object pointed to by soft link '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME); + printf(" failed to open object pointed to by soft link '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME); goto error; } /* Check name */ if (H5Iget_name(object_id, objname, (size_t)SOFT_LINK_TEST_GROUP_MANY_NAME_BUF_SIZE) < 0) { H5_FAILED(); - HDprintf(" couldn't get the name of the object 'soft16'\n"); + printf(" couldn't get the name of the object 'soft16'\n"); goto error; } if (HDstrcmp(objname, "/" LINK_TEST_GROUP_NAME "/" SOFT_LINK_TEST_GROUP_MANY_NAME "/soft16")) { H5_FAILED(); - HDprintf(" wrong name of the object '%s'\n", objname); + printf(" wrong name of the object '%s'\n", objname); goto error; } @@ -1760,7 +1760,7 @@ test_create_soft_link_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, or soft link aren't supported with this connector\n"); return 0; } @@ -1769,20 +1769,20 @@ test_create_soft_link_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, SOFT_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", SOFT_LINK_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", SOFT_LINK_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -1803,8 +1803,8 @@ test_create_soft_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created soft link '%s' with an invalid link target!\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created soft link '%s' with an invalid link target!\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_link_target); } @@ -1817,8 +1817,8 @@ test_create_soft_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created soft link '%s' with an invalid link target!\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created soft link '%s' with an invalid link target!\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_link_target); } @@ -1839,8 +1839,8 @@ test_create_soft_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created soft link '%s' with an invalid link_loc_id!\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created soft link '%s' with an invalid link_loc_id!\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_link_loc_id); } @@ -1860,8 +1860,8 @@ test_create_soft_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created soft link '%s' with a NULL link name!\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created soft link '%s' with a NULL link name!\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_link_name); } @@ -1873,8 +1873,8 @@ test_create_soft_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created soft link '%s' with an invalid link name of ''!\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created soft link '%s' with an invalid link name of ''!\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_link_name); } @@ -1895,8 +1895,8 @@ test_create_soft_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created soft link '%s' with an invalid LCPL!\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created soft link '%s' with an invalid LCPL!\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_lcpl); } @@ -1917,8 +1917,8 @@ test_create_soft_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created soft link '%s' with an invalid LAPL!\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created soft link '%s' with an invalid LAPL!\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_lapl); } @@ -1934,14 +1934,14 @@ test_create_soft_link_invalid_params(void) if ((link_exists = H5Lexists(group_id, SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", - SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", + SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_existence); } if (link_exists) { H5_FAILED(); - HDprintf(" link '%s' existed!\n", SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" link '%s' existed!\n", SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_soft_invalid_existence); } @@ -1995,8 +1995,8 @@ test_create_external_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or external link aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, link, or external link aren't supported " + "with this connector\n"); return 0; } @@ -2004,7 +2004,7 @@ test_create_external_link(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -2013,47 +2013,47 @@ test_create_external_link(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_SUBGROUP_NAME); goto error; } if (H5Lcreate_external(ext_link_filename, "/", group_id, EXTERNAL_LINK_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", EXTERNAL_LINK_TEST_LINK_NAME); + printf(" couldn't create external link '%s'\n", EXTERNAL_LINK_TEST_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, EXTERNAL_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } if ((root_id = H5Gopen2(group_id, EXTERNAL_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open root group of other file using external link '%s'\n", - EXTERNAL_LINK_TEST_LINK_NAME); + printf(" couldn't open root group of other file using external link '%s'\n", + EXTERNAL_LINK_TEST_LINK_NAME); goto error; } @@ -2103,8 +2103,8 @@ test_create_external_link_dangling(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or external link aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, link, or external link aren't supported " + "with this connector\n"); return 0; } @@ -2112,46 +2112,46 @@ test_create_external_link_dangling(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_TEST_DANGLING_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_DANGLING_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_DANGLING_SUBGROUP_NAME); goto error; } if (H5Lcreate_external(ext_link_filename, "/" EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME, group_id, EXTERNAL_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create dangling external link '%s'\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); + printf(" couldn't create dangling external link '%s'\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, EXTERNAL_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } @@ -2163,8 +2163,8 @@ test_create_external_link_dangling(void) if (object_id >= 0) { H5_FAILED(); - HDprintf(" opened non-existent object in other file using dangling external link '%s'!\n", - EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); + printf(" opened non-existent object in other file using dangling external link '%s'!\n", + EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); H5Gclose(object_id); goto error; } @@ -2172,8 +2172,8 @@ test_create_external_link_dangling(void) if ((object_id = H5Gcreate2(ext_file_id, EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to create object '%s' for external link's target\n", - EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME); + printf(" failed to create object '%s' for external link's target\n", + EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME); goto error; } @@ -2182,8 +2182,8 @@ test_create_external_link_dangling(void) if ((object_id = H5Gopen2(group_id, EXTERNAL_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open object pointed to by external link '%s'\n", - EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); + printf(" failed to open object pointed to by external link '%s'\n", + EXTERNAL_LINK_TEST_DANGLING_LINK_NAME); goto error; } @@ -2238,8 +2238,8 @@ test_create_external_link_multi(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or external link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or external link aren't supported with this " + "connector\n"); return 0; } @@ -2254,52 +2254,51 @@ test_create_external_link_multi(void) if ((file_id = H5Fcreate(ext_link_filename1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", - ext_link_filename1); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename1); PART_ERROR(H5Lcreate_external_first_file); } /* Create object down a path */ if ((group_id = H5Gcreate2(file_id, "A", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_first_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_first_file); } if ((group_id = H5Gcreate2(file_id, "A/B", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_first_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_first_file); } if ((group_id = H5Gcreate2(file_id, "A/B/C", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_first_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_first_file); } /* Close file */ if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_first_file); } @@ -2316,27 +2315,26 @@ test_create_external_link_multi(void) if ((file_id = H5Fcreate(ext_link_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", - ext_link_filename2); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename2); PART_ERROR(H5Lcreate_external_second_file); } /* Create object down a path */ if ((group_id = H5Gcreate2(file_id, "D", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_second_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_second_file); } if ((group_id = H5Gcreate2(file_id, "D/E", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_second_file); } @@ -2344,20 +2342,20 @@ test_create_external_link_multi(void) if (H5Lcreate_external(ext_link_filename1, "/A/B/C", group_id, "F", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link 'F'\n"); + printf(" couldn't create external link 'F'\n"); PART_ERROR(H5Lcreate_external_second_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_second_file); } /* Close file */ if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a file\n"); + printf(" couldn't close a file\n"); PART_ERROR(H5Lcreate_external_second_file); } @@ -2374,27 +2372,26 @@ test_create_external_link_multi(void) if ((file_id = H5Fcreate(ext_link_filename3, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", - ext_link_filename3); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename3); PART_ERROR(H5Lcreate_external_third_file); } /* Create object down a path */ if ((group_id = H5Gcreate2(file_id, "G", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_third_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_third_file); } if ((group_id = H5Gcreate2(file_id, "G/H", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_third_file); } @@ -2402,20 +2399,20 @@ test_create_external_link_multi(void) if (H5Lcreate_external(ext_link_filename2, "/D/E/F", group_id, "I", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link 'I'\n"); + printf(" couldn't create external link 'I'\n"); PART_ERROR(H5Lcreate_external_third_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_third_file); } /* Close file */ if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a file\n"); + printf(" couldn't close a file\n"); PART_ERROR(H5Lcreate_external_third_file); } @@ -2429,84 +2426,84 @@ test_create_external_link_multi(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); PART_ERROR(H5Lcreate_external_final_file); } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); PART_ERROR(H5Lcreate_external_final_file); } if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_TEST_MULTI_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_MULTI_NAME); + printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_MULTI_NAME); PART_ERROR(H5Lcreate_external_final_file); } if (H5Lcreate_external(ext_link_filename3, "/G/H/I", group_id, "ext_link", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link 'ext_link'\n"); + printf(" couldn't create external link 'ext_link'\n"); PART_ERROR(H5Lcreate_external_final_file); } if ((group_id2 = H5Gopen2(group_id, "ext_link", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open the group that is the external link\n"); + printf(" couldn't open the group that is the external link\n"); PART_ERROR(H5Lcreate_external_final_file); } /* Check name */ if (H5Iget_name(group_id2, objname, (size_t)EXTERNAL_LINK_TEST_MULTI_NAME_BUF_SIZE) < 0) { H5_FAILED(); - HDprintf(" couldn't get the name of the object '%s'\n", - HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); + printf(" couldn't get the name of the object '%s'\n", + HARD_LINK_TEST_GROUP_MANY_FINAL_NAME); PART_ERROR(H5Lcreate_external_final_file); } if (HDstrcmp(objname, "/A/B/C")) { H5_FAILED(); - HDprintf(" wrong name of the object '%s'\n", objname); + printf(" wrong name of the object '%s'\n", objname); PART_ERROR(H5Lcreate_external_final_file); } /* Create an object in the external file */ if ((group_id3 = H5Gcreate2(group_id2, "new_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group 'new_group' in the external file\n"); + printf(" couldn't create a group 'new_group' in the external file\n"); PART_ERROR(H5Lcreate_external_final_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_final_file); } if (H5Gclose(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_final_file); } if (H5Gclose(group_id3) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_final_file); } if (H5Gclose(container_group) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_final_file); } if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a file\n"); + printf(" couldn't close a file\n"); PART_ERROR(H5Lcreate_external_final_file); } @@ -2520,38 +2517,38 @@ test_create_external_link_multi(void) if ((file_id = H5Fopen(ext_link_filename1, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", ext_link_filename1); + printf(" couldn't open file '%s'\n", ext_link_filename1); PART_ERROR(H5Lcreate_external_object_created); } if ((group_id = H5Gopen2(file_id, "/A/B/C/new_group", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open a group 'new_group' in the external file\n"); + printf(" couldn't open a group 'new_group' in the external file\n"); PART_ERROR(H5Lcreate_external_object_created); } /* Check name */ if (H5Iget_name(group_id, objname, (size_t)EXTERNAL_LINK_TEST_MULTI_NAME_BUF_SIZE) < 0) { H5_FAILED(); - HDprintf(" couldn't get the name of the object '/A/B/C/new_group'\n"); + printf(" couldn't get the name of the object '/A/B/C/new_group'\n"); PART_ERROR(H5Lcreate_external_object_created); } if (HDstrcmp(objname, "/A/B/C/new_group")) { H5_FAILED(); - HDprintf(" wrong name of the object '%s'\n", objname); + printf(" wrong name of the object '%s'\n", objname); PART_ERROR(H5Lcreate_external_object_created); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close the group\n"); + printf(" couldn't close the group\n"); PART_ERROR(H5Lcreate_external_object_created); } if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close the file\n"); + printf(" couldn't close the file\n"); PART_ERROR(H5Lcreate_external_object_created); } @@ -2605,8 +2602,8 @@ test_create_external_link_ping_pong(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or external link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or external link aren't supported with this " + "connector\n"); return 0; } @@ -2622,8 +2619,7 @@ test_create_external_link_ping_pong(void) /* Create the first file */ if ((file_id = H5Fcreate(ext_link_filename1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", - ext_link_filename1); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename1); PART_ERROR(H5Lcreate_external_first_file); } @@ -2631,41 +2627,41 @@ test_create_external_link_ping_pong(void) if (H5Lcreate_external(ext_link_filename2, "/link2", file_id, "link1", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link\n"); + printf(" couldn't create external link\n"); PART_ERROR(H5Lcreate_external_first_file); } if (H5Lcreate_external(ext_link_filename2, "/link4", file_id, "link3", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link\n"); + printf(" couldn't create external link\n"); PART_ERROR(H5Lcreate_external_first_file); } if (H5Lcreate_external(ext_link_filename2, "/link6", file_id, "link5", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link\n"); + printf(" couldn't create external link\n"); PART_ERROR(H5Lcreate_external_first_file); } /* Create final object */ if ((group_id = H5Gcreate2(file_id, "final", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a group\n"); + printf(" couldn't create a group\n"); PART_ERROR(H5Lcreate_external_first_file); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_first_file); } /* Close file */ if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_first_file); } @@ -2680,7 +2676,7 @@ test_create_external_link_ping_pong(void) /* Create the second file */ if ((file_id = H5Fcreate(ext_link_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link\n", ext_link_filename2); + printf(" couldn't create file '%s' for external link\n", ext_link_filename2); PART_ERROR(H5Lcreate_external_second_file); } @@ -2688,28 +2684,28 @@ test_create_external_link_ping_pong(void) if (H5Lcreate_external(ext_link_filename1, "/link3", file_id, "link2", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link\n"); + printf(" couldn't create external link\n"); PART_ERROR(H5Lcreate_external_second_file); } if (H5Lcreate_external(ext_link_filename1, "/link5", file_id, "link4", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link\n"); + printf(" couldn't create external link\n"); PART_ERROR(H5Lcreate_external_second_file); } if (H5Lcreate_external(ext_link_filename1, "/final", file_id, "link6", H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link\n"); + printf(" couldn't create external link\n"); PART_ERROR(H5Lcreate_external_second_file); } /* Close file */ if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close the file\n"); + printf(" couldn't close the file\n"); PART_ERROR(H5Lcreate_external_second_file); } @@ -2723,53 +2719,53 @@ test_create_external_link_ping_pong(void) if ((file_id = H5Fopen(ext_link_filename1, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", ext_link_filename1); + printf(" couldn't open file '%s'\n", ext_link_filename1); PART_ERROR(H5Lcreate_external_verify); } /* Open object through external link */ if ((group_id = H5Gopen2(file_id, "link1", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open the group that is the external link 'link1'\n"); + printf(" couldn't open the group that is the external link 'link1'\n"); PART_ERROR(H5Lcreate_external_verify); } /* Check the name of the object being pointed to */ if (H5Iget_name(group_id, objname, (size_t)EXTERNAL_LINK_TEST_PING_PONG_NAME_BUF_SIZE) < 0) { H5_FAILED(); - HDprintf(" couldn't get the name of the object\n"); + printf(" couldn't get the name of the object\n"); PART_ERROR(H5Lcreate_external_verify); } if (HDstrcmp(objname, "/final")) { H5_FAILED(); - HDprintf(" wrong name of the object '%s'\n", objname); + printf(" wrong name of the object '%s'\n", objname); PART_ERROR(H5Lcreate_external_verify); } /* Create an object in the external file */ if ((group_id2 = H5Gcreate2(group_id, "new_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a new group 'new_group'\n"); + printf(" couldn't create a new group 'new_group'\n"); PART_ERROR(H5Lcreate_external_verify); } if (H5Gclose(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_verify); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_verify); } /* Close file */ if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close the file\n"); + printf(" couldn't close the file\n"); PART_ERROR(H5Lcreate_external_verify); } @@ -2783,40 +2779,40 @@ test_create_external_link_ping_pong(void) if ((file_id = H5Fopen(ext_link_filename1, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", ext_link_filename1); + printf(" couldn't open file '%s'\n", ext_link_filename1); PART_ERROR(H5Lcreate_external_verify_again); } /* Open object through external link */ if ((group_id = H5Gopen2(file_id, "/final/new_group", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open the group that is the external link\n"); + printf(" couldn't open the group that is the external link\n"); PART_ERROR(H5Lcreate_external_verify_again); } /* Check the name of the object being pointed to */ if (H5Iget_name(group_id, objname, (size_t)EXTERNAL_LINK_TEST_PING_PONG_NAME_BUF_SIZE) < 0) { H5_FAILED(); - HDprintf(" couldn't get the name of the object\n"); + printf(" couldn't get the name of the object\n"); PART_ERROR(H5Lcreate_external_verify_again); } if (HDstrcmp(objname, "/final/new_group")) { H5_FAILED(); - HDprintf(" wrong name of the object '%s'\n", objname); + printf(" wrong name of the object '%s'\n", objname); PART_ERROR(H5Lcreate_external_verify_again); } if (H5Gclose(group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close a group\n"); + printf(" couldn't close a group\n"); PART_ERROR(H5Lcreate_external_verify_again); } /* Close file */ if (H5Fclose(file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close the file\n"); + printf(" couldn't close the file\n"); PART_ERROR(H5Lcreate_external_verify_again); } @@ -2859,8 +2855,8 @@ test_create_external_link_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or external link aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, link, or external link aren't supported " + "with this connector\n"); return 0; } @@ -2871,7 +2867,7 @@ test_create_external_link_invalid_params(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -2880,21 +2876,20 @@ test_create_external_link_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -2915,8 +2910,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using a NULL file name!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using a NULL file name!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_file_name); } @@ -2929,8 +2924,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using an invalid file name of ''!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using an invalid file name of ''!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_file_name); } @@ -2952,8 +2947,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using a NULL external object name!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using a NULL external object name!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_ext_obj_name); } @@ -2967,8 +2962,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using an invalid external object name of ''!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using an invalid external object name of ''!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_ext_obj_name); } @@ -2990,8 +2985,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using an invalid link_loc_id!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using an invalid link_loc_id!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_link_loc_id); } @@ -3012,8 +3007,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using a NULL link_loc_id!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using a NULL link_loc_id!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_link_name); } @@ -3025,8 +3020,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using an invalid link name of ''!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using an invalid link name of ''!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_link_name); } @@ -3048,8 +3043,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using an invalid LCPL!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using an invalid LCPL!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_lcpl); } @@ -3071,8 +3066,8 @@ test_create_external_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created external link '%s' using an invalid LAPL!\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created external link '%s' using an invalid LAPL!\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_lapl); } @@ -3088,14 +3083,14 @@ test_create_external_link_invalid_params(void) if ((link_exists = H5Lexists(group_id, EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", - EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", + EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_existence); } if (link_exists) { H5_FAILED(); - HDprintf(" link '%s' existed!\n", EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" link '%s' existed!\n", EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_external_invalid_existence); } @@ -3148,7 +3143,7 @@ test_create_user_defined_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, link, or user-defined link aren't supported with this " "connector\n"); return 0; @@ -3156,20 +3151,20 @@ test_create_user_defined_link(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, UD_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", UD_LINK_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", UD_LINK_TEST_GROUP_NAME); goto error; } @@ -3179,20 +3174,20 @@ test_create_user_defined_link(void) if (H5Lcreate_ud(group_id, UD_LINK_TEST_LINK_NAME, H5L_TYPE_EXTERNAL, udata, (size_t)udata_size, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create user-defined link '%s'\n", UD_LINK_TEST_LINK_NAME); + printf(" couldn't create user-defined link '%s'\n", UD_LINK_TEST_LINK_NAME); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, UD_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", UD_LINK_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", UD_LINK_TEST_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' didn't exist!\n", UD_LINK_TEST_LINK_NAME); + printf(" link '%s' didn't exist!\n", UD_LINK_TEST_LINK_NAME); goto error; } @@ -3239,8 +3234,8 @@ test_create_user_defined_link_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or user-defined link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, or user-defined link aren't supported with this " + "connector\n"); return 0; } @@ -3248,20 +3243,20 @@ test_create_user_defined_link_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, UD_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", UD_LINK_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", UD_LINK_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -3286,8 +3281,8 @@ test_create_user_defined_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created user-defined link '%s' with an invalid link location ID!\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created user-defined link '%s' with an invalid link location ID!\n", + UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_link_loc_id); } @@ -3308,8 +3303,8 @@ test_create_user_defined_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created user-defined link '%s' with a NULL link name!\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created user-defined link '%s' with a NULL link name!\n", + UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_link_name); } @@ -3322,8 +3317,8 @@ test_create_user_defined_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created user-defined link '%s' with an invalid link name of ''!\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created user-defined link '%s' with an invalid link name of ''!\n", + UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_link_name); } @@ -3344,8 +3339,8 @@ test_create_user_defined_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created user-defined link '%s' with an invalid link type!\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created user-defined link '%s' with an invalid link type!\n", + UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_link_type); } @@ -3366,8 +3361,8 @@ test_create_user_defined_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created user-defined link '%s' with an invalid udata pointer!\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created user-defined link '%s' with an invalid udata pointer!\n", + UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_udata_pointer); } @@ -3388,8 +3383,8 @@ test_create_user_defined_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created user-defined link '%s' with an invalid LCPL!\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created user-defined link '%s' with an invalid LCPL!\n", + UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_lcpl); } @@ -3410,8 +3405,8 @@ test_create_user_defined_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" created user-defined link '%s' with an invalid LAPL!\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" created user-defined link '%s' with an invalid LAPL!\n", + UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_lapl); } @@ -3426,14 +3421,13 @@ test_create_user_defined_link_invalid_params(void) /* Verify the link hasn't been created */ if ((link_exists = H5Lexists(group_id, UD_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", - UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_existence); } if (link_exists) { H5_FAILED(); - HDprintf(" link '%s' existed!\n", UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); + printf(" link '%s' existed!\n", UD_LINK_INVALID_PARAMS_TEST_LINK_NAME); PART_ERROR(H5Lcreate_ud_invalid_existence); } @@ -3491,8 +3485,8 @@ test_delete_link(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, hard link, soft link, or external link " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, soft link, or external link " + "aren't supported with this connector\n"); return 0; } @@ -3500,26 +3494,26 @@ test_delete_link(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -3527,7 +3521,7 @@ test_delete_link(void) if ((group_id = H5Gcreate2(container_group, LINK_DELETE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP_NAME); goto error; } @@ -3542,53 +3536,53 @@ test_delete_link(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME); PART_ERROR(H5Ldelete_hard); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if first hard link '%s' exists\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard); } if (!link_exists) { H5_FAILED(); - HDprintf(" first hard link did not exist\n"); + printf(" first hard link did not exist\n"); PART_ERROR(H5Ldelete_hard); } if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't delete hard link '%s' using H5Ldelete\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if first hard link '%s' exists\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard); } if (link_exists) { H5_FAILED(); - HDprintf(" first hard link exists!\n"); + printf(" first hard link exists!\n"); PART_ERROR(H5Ldelete_hard); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME); PART_ERROR(H5Ldelete_hard); } @@ -3610,66 +3604,66 @@ test_delete_link(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_NESTED_SUBGROUP_NAME1, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_SUBGROUP_NAME1); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_SUBGROUP_NAME1); PART_ERROR(H5Ldelete_hard_indirect); } if ((nested_grp_id = H5Gcreate2(subgroup_id, LINK_DELETE_TEST_NESTED_GRP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME); PART_ERROR(H5Ldelete_hard_indirect); } if (H5Lcreate_hard(nested_grp_id, ".", nested_grp_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard_indirect); } if ((link_exists = H5Lexists(nested_grp_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if first hard link '%s' exists\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard_indirect); } if (!link_exists) { H5_FAILED(); - HDprintf(" first hard link did not exist\n"); + printf(" first hard link did not exist\n"); PART_ERROR(H5Ldelete_hard_indirect); } if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_NESTED_HARD_LINK_NAME, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete\n", - LINK_DELETE_TEST_NESTED_HARD_LINK_NAME); + printf(" couldn't delete hard link '%s' using H5Ldelete\n", + LINK_DELETE_TEST_NESTED_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard_indirect); } if ((link_exists = H5Lexists(nested_grp_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if first hard link '%s' exists\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_hard_indirect); } if (link_exists) { H5_FAILED(); - HDprintf(" first hard link exists!\n"); + printf(" first hard link exists!\n"); PART_ERROR(H5Ldelete_hard_indirect); } if (H5Gclose(nested_grp_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME); PART_ERROR(H5Ldelete_hard_indirect); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME); PART_ERROR(H5Ldelete_hard_indirect); } @@ -3693,7 +3687,7 @@ test_delete_link(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME); PART_ERROR(H5Ldelete_soft); } @@ -3701,46 +3695,46 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP2_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't create first soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_soft); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if first soft link '%s' exists\n", + LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_soft); } if (!link_exists) { H5_FAILED(); - HDprintf(" first soft link did not exist\n"); + printf(" first soft link did not exist\n"); PART_ERROR(H5Ldelete_soft); } if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't delete soft link '%s' using H5Ldelete\n", + LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_soft); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if first soft link '%s' exists\n", + LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_soft); } if (link_exists) { H5_FAILED(); - HDprintf(" first soft link exists!\n"); + printf(" first soft link exists!\n"); PART_ERROR(H5Ldelete_soft); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME); PART_ERROR(H5Ldelete_soft); } @@ -3764,69 +3758,68 @@ test_delete_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Ldelete_external); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Ldelete_external); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP3_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME); PART_ERROR(H5Ldelete_external); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first external link '%s'\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't create first external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_external); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if first external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_external); } if (!link_exists) { H5_FAILED(); - HDprintf(" first external link did not exist\n"); + printf(" first external link did not exist\n"); PART_ERROR(H5Ldelete_external); } if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't delete external link '%s' using H5Ldelete\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_external); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if first external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_external); } if (link_exists) { H5_FAILED(); - HDprintf(" first external link exists!\n"); + printf(" first external link exists!\n"); PART_ERROR(H5Ldelete_external); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME); PART_ERROR(H5Ldelete_external); } @@ -3867,14 +3860,14 @@ test_delete_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP5_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } @@ -3882,217 +3875,204 @@ test_delete_link(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing); } @@ -4113,14 +4093,14 @@ test_delete_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP6_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } @@ -4128,217 +4108,204 @@ test_delete_link(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME); PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing); } @@ -4360,7 +4327,7 @@ test_delete_link(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP7_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } @@ -4368,217 +4335,204 @@ test_delete_link(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " - "increasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " + "increasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " - "increasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " + "increasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " - "increasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " + "increasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing); } @@ -4600,7 +4554,7 @@ test_delete_link(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP8_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } @@ -4608,217 +4562,204 @@ test_delete_link(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " - "decreasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " + "decreasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " - "decreasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " + "decreasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " - "decreasing order\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in " + "decreasing order\n", + LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME); PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing); } @@ -4839,14 +4780,14 @@ test_delete_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP9_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } @@ -4855,7 +4796,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP9_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } @@ -4863,7 +4804,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP9_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } @@ -4871,203 +4812,190 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP9_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing); } @@ -5088,14 +5016,14 @@ test_delete_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP10_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } @@ -5104,7 +5032,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP10_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } @@ -5112,7 +5040,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP10_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } @@ -5120,203 +5048,190 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP10_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME); PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing); } @@ -5338,7 +5253,7 @@ test_delete_link(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP11_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } @@ -5347,7 +5262,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP11_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } @@ -5355,7 +5270,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP11_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } @@ -5363,203 +5278,190 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP11_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " - "increasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " + "increasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " - "increasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " + "increasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " - "increasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " + "increasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing); } @@ -5581,7 +5483,7 @@ test_delete_link(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP12_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } @@ -5590,7 +5492,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP12_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } @@ -5598,7 +5500,7 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP12_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } @@ -5606,203 +5508,190 @@ test_delete_link(void) "/" LINK_DELETE_TEST_SUBGROUP12_NAME, subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " - "decreasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " + "decreasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } /* Ensure that the link is gone and others remain */ if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " - "decreasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " + "decreasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " - "decreasing order\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in " + "decreasing order\n", + LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME); PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing); } @@ -5823,7 +5712,7 @@ test_delete_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ldelete_by_idx_external_crt_order_increasing); } @@ -5833,20 +5722,20 @@ test_delete_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP13_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } @@ -5854,21 +5743,21 @@ test_delete_link(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } @@ -5876,54 +5765,54 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } @@ -5931,158 +5820,158 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " - "increasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " + "increasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing); } @@ -6105,7 +5994,7 @@ test_delete_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ldelete_by_idx_external_crt_order_decreasing); } @@ -6115,20 +6004,20 @@ test_delete_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP14_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } @@ -6136,21 +6025,21 @@ test_delete_link(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } @@ -6158,54 +6047,54 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } @@ -6213,158 +6102,158 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " - "decreasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in " + "decreasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME); PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing); } @@ -6391,20 +6280,20 @@ test_delete_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP15_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } @@ -6412,21 +6301,21 @@ test_delete_link(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } @@ -6434,54 +6323,54 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " - "order in increasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " + "order in increasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } @@ -6489,158 +6378,158 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " - "order in increasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " + "order in increasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " - "order in increasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " + "order in increasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing); } @@ -6667,20 +6556,20 @@ test_delete_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP16_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME); + printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } @@ -6688,21 +6577,21 @@ test_delete_link(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } @@ -6710,54 +6599,54 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } /* Delete a link */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " - "order in decreasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " + "order in decreasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } @@ -6765,158 +6654,158 @@ test_delete_link(void) if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } /* Repeat until all links have been deleted */ if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " - "order in decreasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " + "order in decreasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist after deletion of a different link!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist after deletion of a different link!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " - "order in decreasing order\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical " + "order in decreasing order\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (link_exists) { H5_FAILED(); - HDprintf(" external link '%s' exists after deletion!\n", - LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' exists after deletion!\n", + LINK_DELETE_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME); + printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME); PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing); } @@ -7060,8 +6949,8 @@ test_delete_link_reset_grp_max_crt_order(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or creation order " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, or creation order " + "aren't supported with this connector\n"); return 0; } @@ -7069,33 +6958,33 @@ test_delete_link_reset_grp_max_crt_order(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } if ((group_id = H5Gcreate2(container_group, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME); goto error; } @@ -7110,8 +6999,8 @@ test_delete_link_reset_grp_max_crt_order(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", - LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP1_NAME); + printf(" couldn't create subgroup '%s'\n", + LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP1_NAME); PART_ERROR(H5Ldelete_links_bottom_up); } @@ -7121,7 +7010,7 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", link_name); + printf(" couldn't create hard link '%s'\n", link_name); PART_ERROR(H5Ldelete_links_bottom_up); } } @@ -7132,15 +7021,15 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Gget_info(subgroup_id, &grp_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group's info\n"); + printf(" failed to retrieve group's info\n"); PART_ERROR(H5Ldelete_links_bottom_up); } if (grp_info.max_corder != LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" group's maximum creation order value got adjusted to %lld during link " - "deletion; value should have remained at %d\n", - (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); + printf(" group's maximum creation order value got adjusted to %lld during link " + "deletion; value should have remained at %d\n", + (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); PART_ERROR(H5Ldelete_links_bottom_up); } @@ -7148,7 +7037,7 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Ldelete(subgroup_id, link_name, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete link '%s'\n", link_name); + printf(" failed to delete link '%s'\n", link_name); PART_ERROR(H5Ldelete_links_bottom_up); } } @@ -7159,15 +7048,15 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Gget_info(subgroup_id, &grp_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group's info\n"); + printf(" failed to retrieve group's info\n"); PART_ERROR(H5Ldelete_links_bottom_up); } if (grp_info.max_corder != 0) { H5_FAILED(); - HDprintf(" group's maximum creation order value didn't reset to 0 after deleting all " - "links from group; value is still %lld\n", - (long long)grp_info.max_corder); + printf(" group's maximum creation order value didn't reset to 0 after deleting all " + "links from group; value is still %lld\n", + (long long)grp_info.max_corder); PART_ERROR(H5Ldelete_links_bottom_up); } @@ -7189,8 +7078,8 @@ test_delete_link_reset_grp_max_crt_order(void) if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", - LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP2_NAME); + printf(" couldn't create subgroup '%s'\n", + LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP2_NAME); PART_ERROR(H5Ldelete_links_top_down); } @@ -7200,7 +7089,7 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", link_name); + printf(" couldn't create hard link '%s'\n", link_name); PART_ERROR(H5Ldelete_links_top_down); } } @@ -7211,15 +7100,15 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Gget_info(subgroup_id, &grp_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group's info\n"); + printf(" failed to retrieve group's info\n"); PART_ERROR(H5Ldelete_links_top_down); } if (grp_info.max_corder != LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" group's maximum creation order value got adjusted to %lld during link " - "deletion; value should have remained at %d\n", - (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); + printf(" group's maximum creation order value got adjusted to %lld during link " + "deletion; value should have remained at %d\n", + (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); PART_ERROR(H5Ldelete_links_top_down); } @@ -7228,7 +7117,7 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Ldelete(subgroup_id, link_name, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to delete link '%s'\n", link_name); + printf(" failed to delete link '%s'\n", link_name); PART_ERROR(H5Ldelete_links_top_down); } } @@ -7239,15 +7128,15 @@ test_delete_link_reset_grp_max_crt_order(void) if (H5Gget_info(subgroup_id, &grp_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group's info\n"); + printf(" failed to retrieve group's info\n"); PART_ERROR(H5Ldelete_links_top_down); } if (grp_info.max_corder != 0) { H5_FAILED(); - HDprintf(" group's maximum creation order value didn't reset to 0 after deleting all " - "links from group; value is still %lld\n", - (long long)grp_info.max_corder); + printf(" group's maximum creation order value didn't reset to 0 after deleting all " + "links from group; value is still %lld\n", + (long long)grp_info.max_corder); PART_ERROR(H5Ldelete_links_top_down); } @@ -7308,8 +7197,8 @@ test_delete_link_invalid_params(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_BY_IDX) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, flag by index, or hard link aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, link, flag by index, or hard link aren't " + "supported with this connector\n"); return 0; } @@ -7317,27 +7206,27 @@ test_delete_link_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, LINK_DELETE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } if (H5Lcreate_hard(group_id, ".", group_id, LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } @@ -7345,14 +7234,14 @@ test_delete_link_invalid_params(void) if ((link_exists = H5Lexists(group_id, LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first hard link '%s' exists\n", - LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if first hard link '%s' exists\n", + LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" first hard link did not exist\n"); + printf(" first hard link did not exist\n"); goto error; } @@ -7373,7 +7262,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete succeeded with an invalid location ID!\n"); + printf(" H5Ldelete succeeded with an invalid location ID!\n"); PART_ERROR(H5Ldelete_invalid_loc_id); } @@ -7393,7 +7282,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete succeeded with a NULL link name!\n"); + printf(" H5Ldelete succeeded with a NULL link name!\n"); PART_ERROR(H5Ldelete_invalid_link_name); } @@ -7405,7 +7294,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete succeeded with an invalid link name of ''!\n"); + printf(" H5Ldelete succeeded with an invalid link name of ''!\n"); PART_ERROR(H5Ldelete_invalid_link_name); } @@ -7426,7 +7315,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete succeeded with an invalid LAPL!\n"); + printf(" H5Ldelete succeeded with an invalid LAPL!\n"); PART_ERROR(H5Ldelete_invalid_lapl); } @@ -7446,7 +7335,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with an invalid location ID!\n"); + printf(" H5Ldelete_by_idx succeeded with an invalid location ID!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_loc_id); } @@ -7466,7 +7355,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with a NULL group name!\n"); + printf(" H5Ldelete_by_idx succeeded with a NULL group name!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_grp_name); } @@ -7478,7 +7367,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with an invalid group name of ''!\n"); + printf(" H5Ldelete_by_idx succeeded with an invalid group name of ''!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_grp_name); } @@ -7498,7 +7387,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_index_type); } @@ -7510,7 +7399,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_index_type); } @@ -7530,7 +7419,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_index_order); } @@ -7542,7 +7431,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_index_order); } @@ -7562,7 +7451,7 @@ test_delete_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ldelete_by_idx succeeded with an invalid LAPL!\n"); + printf(" H5Ldelete_by_idx succeeded with an invalid LAPL!\n"); PART_ERROR(H5Ldelete_by_idx_invalid_lapl); } @@ -7578,14 +7467,14 @@ test_delete_link_invalid_params(void) if ((link_exists = H5Lexists(group_id, LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME); PART_ERROR(H5Ldelete_by_idx_link_existence); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link didn't exist!\n"); + printf(" hard link didn't exist!\n"); PART_ERROR(H5Ldelete_by_idx_link_existence); } @@ -7640,9 +7529,8 @@ test_copy_link(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, link, hard link, soft link, or external link aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, soft link, or external link aren't " + "supported with this connector\n"); return 0; } @@ -7650,34 +7538,34 @@ test_copy_link(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s\n", H5_api_test_filename); + printf(" couldn't open file '%s\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't opewn container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't opewn container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, COPY_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", COPY_LINK_TEST_SUBGROUP_NAME); + printf(" couldn't create group '%s'\n", COPY_LINK_TEST_SUBGROUP_NAME); goto error; } if ((src_grp_id = H5Gcreate2(group_id, COPY_LINK_TEST_SRC_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", COPY_LINK_TEST_SRC_GROUP_NAME); + printf(" couldn't create group '%s'\n", COPY_LINK_TEST_SRC_GROUP_NAME); goto error; } if ((dst_grp_id = H5Gcreate2(group_id, COPY_LINK_TEST_DST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", COPY_LINK_TEST_DST_GROUP_NAME); + printf(" couldn't create group '%s'\n", COPY_LINK_TEST_DST_GROUP_NAME); goto error; } @@ -7693,33 +7581,33 @@ test_copy_link(void) if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lcopy_hard_no_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lcopy_hard_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lcopy_hard_no_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lcopy_hard_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before copy!\n"); + printf(" hard link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_hard_no_check); } @@ -7727,34 +7615,34 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME); + printf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lcopy_hard_no_check); } /* Verify the link has been copied and still exists in the source group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link copy '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_COPY_NAME); + printf(" couldn't determine if hard link copy '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_COPY_NAME); PART_ERROR(H5Lcopy_hard_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link copy did not exist\n"); + printf(" hard link copy did not exist\n"); PART_ERROR(H5Lcopy_hard_no_check); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original hard link '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't determine if original hard link '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lcopy_hard_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" original hard link did not exist\n"); + printf(" original hard link did not exist\n"); PART_ERROR(H5Lcopy_hard_no_check); } @@ -7773,40 +7661,40 @@ test_copy_link(void) if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lcopy_hard_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lcopy_hard_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lcopy_hard_check); } /* Retrieve the link's info */ if (H5Lget_info2(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lcopy_hard_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lcopy_hard_check); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before copy!\n"); + printf(" hard link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_hard_check); } @@ -7814,83 +7702,83 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2); + printf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lcopy_hard_check); } /* Verify the link has been copied and still exists in the source group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link copy '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_COPY_NAME2); + printf(" couldn't determine if hard link copy '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_hard_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link copy did not exist\n"); + printf(" hard link copy did not exist\n"); PART_ERROR(H5Lcopy_hard_check); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original hard link '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if original hard link '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lcopy_hard_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" original hard link did not exist\n"); + printf(" original hard link did not exist\n"); PART_ERROR(H5Lcopy_hard_check); } /* Retrieve the new link's info */ if (H5Lget_info2(dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME2, &new_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_COPY_NAME2); + printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_hard_check); } if (new_info.type != orig_info.type) { H5_FAILED(); - HDprintf(" copied link's link type doesn't match original link's type\n"); + printf(" copied link's link type doesn't match original link's type\n"); PART_ERROR(H5Lcopy_hard_check); } if (H5Otoken_cmp(dst_grp_id, &new_info.u.token, &orig_info.u.token, &cmp_value) < 0) { H5_FAILED(); - HDprintf(" failed to compare link target tokens\n"); + printf(" failed to compare link target tokens\n"); PART_ERROR(H5Lcopy_hard_check); } if (cmp_value != 0) { H5_FAILED(); - HDprintf(" copied hard link's object token doesn't match original link's object token\n"); + printf(" copied hard link's object token doesn't match original link's object token\n"); PART_ERROR(H5Lcopy_hard_check); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (new_info.corder_valid != orig_info.corder_valid) { H5_FAILED(); - HDprintf(" copied link's 'corder_valid' field doesn't match original link's " - "'corder_valid' field\n"); + printf(" copied link's 'corder_valid' field doesn't match original link's " + "'corder_valid' field\n"); PART_ERROR(H5Lcopy_hard_check); } if (new_info.corder_valid && orig_info.corder_valid && (new_info.corder != orig_info.corder)) { H5_FAILED(); - HDprintf(" copied link's creation order value %" PRId64 - " doesn't match original link's creation order value %" PRId64 "\n", - new_info.corder, orig_info.corder); + printf(" copied link's creation order value %" PRId64 + " doesn't match original link's creation order value %" PRId64 "\n", + new_info.corder, orig_info.corder); PART_ERROR(H5Lcopy_hard_check); } } if (new_info.cset != orig_info.cset) { H5_FAILED(); - HDprintf(" copied link's character set doesn't match original link's character set\n"); + printf(" copied link's character set doesn't match original link's character set\n"); PART_ERROR(H5Lcopy_hard_check); } @@ -7906,20 +7794,20 @@ test_copy_link(void) if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lcopy_hard_same_loc); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lcopy_hard_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lcopy_hard_same_loc); } @@ -7927,28 +7815,28 @@ test_copy_link(void) if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME); PART_ERROR(H5Lcopy_hard_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before copy!\n"); + printf(" hard link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_hard_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2); PART_ERROR(H5Lcopy_hard_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before copy!\n"); + printf(" hard link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_hard_same_loc); } @@ -7956,9 +7844,8 @@ test_copy_link(void) if (H5Lcopy(H5L_SAME_LOC, COPY_LINK_TEST_HARD_LINK_NAME3, src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf( - " failed to copy hard link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n", - COPY_LINK_TEST_HARD_LINK_NAME3); + printf(" failed to copy hard link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n", + COPY_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lcopy_hard_same_loc); } @@ -7966,9 +7853,8 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5L_SAME_LOC, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf( - " failed to copy hard link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n", - COPY_LINK_TEST_HARD_LINK_NAME3); + printf(" failed to copy hard link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n", + COPY_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lcopy_hard_same_loc); } @@ -7976,41 +7862,41 @@ test_copy_link(void) if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link copy '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME); + printf(" couldn't determine if hard link copy '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME); PART_ERROR(H5Lcopy_hard_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link copy did not exist\n"); + printf(" hard link copy did not exist\n"); PART_ERROR(H5Lcopy_hard_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link copy '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2); + printf(" couldn't determine if hard link copy '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2); PART_ERROR(H5Lcopy_hard_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link copy did not exist\n"); + printf(" hard link copy did not exist\n"); PART_ERROR(H5Lcopy_hard_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original hard link '%s' exists\n", - COPY_LINK_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if original hard link '%s' exists\n", + COPY_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lcopy_hard_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" original hard link did not exist\n"); + printf(" original hard link did not exist\n"); PART_ERROR(H5Lcopy_hard_same_loc); } @@ -8026,33 +7912,33 @@ test_copy_link(void) if (H5Lcreate_soft(COPY_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lcopy_soft_no_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lcopy_soft_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lcopy_soft_no_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lcopy_soft_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link existed in target group before copy!\n"); + printf(" soft link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_soft_no_check); } @@ -8060,34 +7946,34 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME); + printf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lcopy_soft_no_check); } /* Verify the link has been copied and still exists in the source group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' copy exists\n", - COPY_LINK_TEST_SOFT_LINK_COPY_NAME); + printf(" couldn't determine if soft link '%s' copy exists\n", + COPY_LINK_TEST_SOFT_LINK_COPY_NAME); PART_ERROR(H5Lcopy_soft_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link copy did not exist\n"); + printf(" soft link copy did not exist\n"); PART_ERROR(H5Lcopy_soft_no_check); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original soft link '%s' exists\n", - COPY_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if original soft link '%s' exists\n", + COPY_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lcopy_soft_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" original soft link did not exist\n"); + printf(" original soft link did not exist\n"); PART_ERROR(H5Lcopy_soft_no_check); } @@ -8107,27 +7993,27 @@ test_copy_link(void) if (H5Lcreate_soft(COPY_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lcopy_soft_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lcopy_soft_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lcopy_soft_check); } /* Retrieve the link's info */ if (H5Lget_info2(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lcopy_soft_check); } @@ -8135,20 +8021,20 @@ test_copy_link(void) if (H5Lget_val(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, orig_link_val, COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't retrieve value for soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lcopy_soft_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lcopy_soft_check); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link existed in target group before copy!\n"); + printf(" soft link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_soft_check); } @@ -8156,79 +8042,79 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); + printf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lcopy_soft_check); } /* Verify the link has been copied and still exists in the source group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' copy exists\n", - COPY_LINK_TEST_SOFT_LINK_COPY_NAME2); + printf(" couldn't determine if soft link '%s' copy exists\n", + COPY_LINK_TEST_SOFT_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_soft_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link copy did not exist\n"); + printf(" soft link copy did not exist\n"); PART_ERROR(H5Lcopy_soft_check); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original soft link '%s' exists\n", - COPY_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if original soft link '%s' exists\n", + COPY_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lcopy_soft_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" original soft link did not exist\n"); + printf(" original soft link did not exist\n"); PART_ERROR(H5Lcopy_soft_check); } /* Retrieve the new link's info */ if (H5Lget_info2(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, &new_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_COPY_NAME2); + printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_soft_check); } if (new_info.type != orig_info.type) { H5_FAILED(); - HDprintf(" copied link's link type doesn't match original link's type\n"); + printf(" copied link's link type doesn't match original link's type\n"); PART_ERROR(H5Lcopy_soft_check); } if (new_info.u.val_size != orig_info.u.val_size) { H5_FAILED(); - HDprintf(" copied soft link's value size of %llu doesn't match original link's value size " - "of %llu\n", - (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); + printf(" copied soft link's value size of %llu doesn't match original link's value size " + "of %llu\n", + (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); PART_ERROR(H5Lcopy_soft_check); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (new_info.corder_valid != orig_info.corder_valid) { H5_FAILED(); - HDprintf(" copied link's 'corder_valid' field doesn't match original link's " - "'corder_valid' field\n"); + printf(" copied link's 'corder_valid' field doesn't match original link's " + "'corder_valid' field\n"); PART_ERROR(H5Lcopy_soft_check); } if (new_info.corder_valid && orig_info.corder_valid && (new_info.corder != orig_info.corder)) { H5_FAILED(); - HDprintf(" copied link's creation order value %" PRId64 - " doesn't match original link's creation order value %" PRId64 "\n", - new_info.corder, orig_info.corder); + printf(" copied link's creation order value %" PRId64 + " doesn't match original link's creation order value %" PRId64 "\n", + new_info.corder, orig_info.corder); PART_ERROR(H5Lcopy_soft_check); } } if (new_info.cset != orig_info.cset) { H5_FAILED(); - HDprintf(" copied link's character set doesn't match original link's character set\n"); + printf(" copied link's character set doesn't match original link's character set\n"); PART_ERROR(H5Lcopy_soft_check); } @@ -8236,15 +8122,15 @@ test_copy_link(void) if (H5Lget_val(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, new_link_val, COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for soft link '%s'\n", - COPY_LINK_TEST_SOFT_LINK_COPY_NAME2); + printf(" couldn't retrieve value for soft link '%s'\n", + COPY_LINK_TEST_SOFT_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_soft_check); } if (HDstrncmp(orig_link_val, new_link_val, COPY_LINK_TEST_LINK_VAL_BUF_SIZE)) { H5_FAILED(); - HDprintf(" copied soft link's value '%s' doesn't match original link's value '%s'\n", - new_link_val, orig_link_val); + printf(" copied soft link's value '%s' doesn't match original link's value '%s'\n", + new_link_val, orig_link_val); PART_ERROR(H5Lcopy_soft_check); } @@ -8260,20 +8146,20 @@ test_copy_link(void) if (H5Lcreate_soft(COPY_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lcopy_soft_same_loc); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lcopy_soft_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lcopy_soft_same_loc); } @@ -8281,28 +8167,28 @@ test_copy_link(void) if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); PART_ERROR(H5Lcopy_soft_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link existed in target group before copy!\n"); + printf(" soft link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_soft_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2); PART_ERROR(H5Lcopy_soft_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link existed in target group before copy!\n"); + printf(" soft link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_soft_same_loc); } @@ -8310,9 +8196,8 @@ test_copy_link(void) if (H5Lcopy(H5L_SAME_LOC, COPY_LINK_TEST_SOFT_LINK_NAME3, src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf( - " failed to copy soft link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n", - COPY_LINK_TEST_SOFT_LINK_NAME3); + printf(" failed to copy soft link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n", + COPY_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lcopy_soft_same_loc); } @@ -8320,9 +8205,8 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME3, H5L_SAME_LOC, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf( - " failed to copy soft link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n", - COPY_LINK_TEST_SOFT_LINK_NAME3); + printf(" failed to copy soft link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n", + COPY_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lcopy_soft_same_loc); } @@ -8330,41 +8214,41 @@ test_copy_link(void) if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' copy exists\n", - COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); + printf(" couldn't determine if soft link '%s' copy exists\n", + COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); PART_ERROR(H5Lcopy_soft_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link copy did not exist\n"); + printf(" soft link copy did not exist\n"); PART_ERROR(H5Lcopy_soft_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' copy exists\n", - COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2); + printf(" couldn't determine if soft link '%s' copy exists\n", + COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2); PART_ERROR(H5Lcopy_soft_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link copy did not exist\n"); + printf(" soft link copy did not exist\n"); PART_ERROR(H5Lcopy_soft_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original soft link '%s' exists\n", - COPY_LINK_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if original soft link '%s' exists\n", + COPY_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lcopy_soft_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" original soft link did not exist\n"); + printf(" original soft link did not exist\n"); PART_ERROR(H5Lcopy_soft_same_loc); } @@ -8381,13 +8265,13 @@ test_copy_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lcopy_external_no_check); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lcopy_external_no_check); } @@ -8395,35 +8279,35 @@ test_copy_link(void) if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lcopy_external_no_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lcopy_external_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lcopy_external_no_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lcopy_external_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" external link existed in target group before copy!\n"); + printf(" external link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_external_no_check); } @@ -8431,7 +8315,7 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME); + printf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lcopy_external_no_check); } @@ -8439,27 +8323,27 @@ test_copy_link(void) if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link copy '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME); + printf(" couldn't determine if external link copy '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME); PART_ERROR(H5Lcopy_external_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link copy did not exist\n"); + printf(" external link copy did not exist\n"); PART_ERROR(H5Lcopy_external_no_check); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if original external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lcopy_external_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" original external link did not exist\n"); + printf(" original external link did not exist\n"); PART_ERROR(H5Lcopy_external_no_check); } @@ -8490,13 +8374,13 @@ test_copy_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lcopy_external_check); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lcopy_external_check); } @@ -8504,28 +8388,28 @@ test_copy_link(void) if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lcopy_external_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lcopy_external_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lcopy_external_check); } /* Retrieve the link's info */ if (H5Lget_info2(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lcopy_external_check); } @@ -8533,29 +8417,29 @@ test_copy_link(void) if (H5Lget_val(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, orig_link_val, COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for external link '%s'\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't retrieve value for external link '%s'\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lcopy_external_check); } if (H5Lunpack_elink_val(orig_link_val, orig_info.u.val_size, &unpack_flags, &orig_filename, &orig_objname) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack original external link's value buffer\n"); + printf(" couldn't unpack original external link's value buffer\n"); PART_ERROR(H5Lcopy_external_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lcopy_external_check); } if (link_exists) { H5_FAILED(); - HDprintf(" external link existed in target group before copy!\n"); + printf(" external link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_external_check); } @@ -8563,7 +8447,7 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2); + printf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lcopy_external_check); } @@ -8571,27 +8455,27 @@ test_copy_link(void) if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link copy '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2); + printf(" couldn't determine if external link copy '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_external_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link copy did not exist\n"); + printf(" external link copy did not exist\n"); PART_ERROR(H5Lcopy_external_check); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if original external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lcopy_external_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" original external link did not exist\n"); + printf(" original external link did not exist\n"); PART_ERROR(H5Lcopy_external_check); } @@ -8599,47 +8483,46 @@ test_copy_link(void) if (H5Lget_info2(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, &new_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", - COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2); + printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_external_check); } if (new_info.type != orig_info.type) { H5_FAILED(); - HDprintf(" copied link's link type doesn't match original link's type\n"); + printf(" copied link's link type doesn't match original link's type\n"); PART_ERROR(H5Lcopy_external_check); } if (new_info.u.val_size != orig_info.u.val_size) { H5_FAILED(); - HDprintf(" copied external link's value size of %llu doesn't match original link's value " - "size of %llu\n", - (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); + printf(" copied external link's value size of %llu doesn't match original link's value " + "size of %llu\n", + (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); PART_ERROR(H5Lcopy_external_check); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (new_info.corder_valid != orig_info.corder_valid) { H5_FAILED(); - HDprintf(" copied link's 'corder_valid' field doesn't match original link's " - "'corder_valid' field\n"); + printf(" copied link's 'corder_valid' field doesn't match original link's " + "'corder_valid' field\n"); PART_ERROR(H5Lcopy_external_check); } if (new_info.corder_valid && orig_info.corder_valid && (new_info.corder != orig_info.corder)) { H5_FAILED(); - HDprintf(" copied link's creation order value %" PRId64 - " doesn't match original link's creation " - "order value %" PRId64 "\n", - new_info.corder, orig_info.corder); + printf(" copied link's creation order value %" PRId64 + " doesn't match original link's creation " + "order value %" PRId64 "\n", + new_info.corder, orig_info.corder); PART_ERROR(H5Lcopy_external_check); } } if (new_info.cset != orig_info.cset) { H5_FAILED(); - HDprintf(" copied link's character set doesn't match original link's character set\n"); + printf(" copied link's character set doesn't match original link's character set\n"); PART_ERROR(H5Lcopy_external_check); } @@ -8647,31 +8530,31 @@ test_copy_link(void) if (H5Lget_val(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, new_link_val, COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for external link '%s'\n", - COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2); + printf(" couldn't retrieve value for external link '%s'\n", + COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2); PART_ERROR(H5Lcopy_external_check); } if (H5Lunpack_elink_val(new_link_val, new_info.u.val_size, &unpack_flags, &new_filename, &new_objname) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack copied external link's value buffer\n"); + printf(" couldn't unpack copied external link's value buffer\n"); PART_ERROR(H5Lcopy_external_check); } if (HDstrncmp(new_filename, orig_filename, strlen(orig_filename)) < 0) { H5_FAILED(); - HDprintf(" copied external link's filename '%s' doesn't match original external link's " - "filename '%s'\n", - new_filename, orig_filename); + printf(" copied external link's filename '%s' doesn't match original external link's " + "filename '%s'\n", + new_filename, orig_filename); PART_ERROR(H5Lcopy_external_check); } if (HDstrncmp(new_objname, orig_objname, strlen(orig_objname)) < 0) { H5_FAILED(); - HDprintf(" copied external link's object name '%s' doesn't match original external link's " - "object name '%s'\n", - new_objname, orig_objname); + printf(" copied external link's object name '%s' doesn't match original external link's " + "object name '%s'\n", + new_objname, orig_objname); PART_ERROR(H5Lcopy_external_check); } @@ -8695,13 +8578,13 @@ test_copy_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lcopy_external_same_loc); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lcopy_external_same_loc); } @@ -8709,21 +8592,21 @@ test_copy_link(void) if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lcopy_external_same_loc); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lcopy_external_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lcopy_external_same_loc); } @@ -8731,28 +8614,28 @@ test_copy_link(void) if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME); + printf(" couldn't determine if external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME); PART_ERROR(H5Lcopy_external_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" external link existed in target group before copy!\n"); + printf(" external link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_external_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2); PART_ERROR(H5Lcopy_external_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" external link existed in target group before copy!\n"); + printf(" external link existed in target group before copy!\n"); PART_ERROR(H5Lcopy_external_same_loc); } @@ -8760,9 +8643,9 @@ test_copy_link(void) if (H5Lcopy(H5L_SAME_LOC, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy external link '%s' using H5L_SAME_LOC as first parameter to " - "H5Lcopy\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME3); + printf(" failed to copy external link '%s' using H5L_SAME_LOC as first parameter to " + "H5Lcopy\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lcopy_external_same_loc); } @@ -8770,9 +8653,9 @@ test_copy_link(void) if (H5Lcopy(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, H5L_SAME_LOC, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy external link '%s' using H5L_SAME_LOC as third parameter to " - "H5Lcopy\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME3); + printf(" failed to copy external link '%s' using H5L_SAME_LOC as third parameter to " + "H5Lcopy\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lcopy_external_same_loc); } @@ -8780,41 +8663,41 @@ test_copy_link(void) if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link copy '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME); + printf(" couldn't determine if external link copy '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME); PART_ERROR(H5Lcopy_external_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link copy did not exist\n"); + printf(" external link copy did not exist\n"); PART_ERROR(H5Lcopy_external_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link copy '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2); + printf(" couldn't determine if external link copy '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2); PART_ERROR(H5Lcopy_external_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link copy did not exist\n"); + printf(" external link copy did not exist\n"); PART_ERROR(H5Lcopy_external_same_loc); } if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original external link '%s' exists\n", - COPY_LINK_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if original external link '%s' exists\n", + COPY_LINK_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lcopy_external_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" original external link did not exist\n"); + printf(" original external link did not exist\n"); PART_ERROR(H5Lcopy_external_same_loc); } @@ -8958,8 +8841,8 @@ test_copy_link_invalid_params(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or hard links aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or hard links aren't supported with this " + "connector\n"); return 0; } @@ -8967,41 +8850,41 @@ test_copy_link_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s\n", H5_api_test_filename); + printf(" couldn't open file '%s\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, COPY_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME); + printf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME); goto error; } if ((src_grp_id = H5Gcreate2(group_id, COPY_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME); + printf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME); goto error; } if ((dst_grp_id = H5Gcreate2(group_id, COPY_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME); + printf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME); goto error; } if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } @@ -9009,14 +8892,14 @@ test_copy_link_invalid_params(void) if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); goto error; } @@ -9038,7 +8921,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with an invalid source location ID\n"); + printf(" H5Lcopy succeeded with an invalid source location ID\n"); PART_ERROR(H5Lcopy_invalid_src_loc_id); } @@ -9060,7 +8943,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with a NULL source name\n"); + printf(" H5Lcopy succeeded with a NULL source name\n"); PART_ERROR(H5Lcopy_invalid_src_name); } @@ -9074,7 +8957,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with an invalid source name of ''\n"); + printf(" H5Lcopy succeeded with an invalid source name of ''\n"); PART_ERROR(H5Lcopy_invalid_src_name); } @@ -9096,7 +8979,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with an invalid destination location ID\n"); + printf(" H5Lcopy succeeded with an invalid destination location ID\n"); PART_ERROR(H5Lcopy_invalid_dst_loc_id); } @@ -9117,7 +9000,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with a NULL destination name\n"); + printf(" H5Lcopy succeeded with a NULL destination name\n"); PART_ERROR(H5Lcopy_invalid_dst_name); } @@ -9130,7 +9013,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with an invalid destination name of ''\n"); + printf(" H5Lcopy succeeded with an invalid destination name of ''\n"); PART_ERROR(H5Lcopy_invalid_dst_name); } @@ -9152,7 +9035,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with an invalid LCPL\n"); + printf(" H5Lcopy succeeded with an invalid LCPL\n"); PART_ERROR(H5Lcopy_invalid_lcpl); } @@ -9174,7 +9057,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with an invalid LAPL\n"); + printf(" H5Lcopy succeeded with an invalid LAPL\n"); PART_ERROR(H5Lcopy_invalid_lapl); } @@ -9196,7 +9079,7 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded with an invalid same location\n"); + printf(" H5Lcopy succeeded with an invalid same location\n"); PART_ERROR(H5Lcopy_invalid_same_location); } @@ -9213,7 +9096,7 @@ test_copy_link_invalid_params(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lcopy_invalid_across_files); } @@ -9227,13 +9110,13 @@ test_copy_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lcopy succeeded in copying a hard link across files!\n"); + printf(" H5Lcopy succeeded in copying a hard link across files!\n"); PART_ERROR(H5Lcopy_invalid_across_files); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lcopy_invalid_across_files); } @@ -9296,9 +9179,8 @@ test_move_link(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, link, hard link, soft link, or external link aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, soft link, or external link aren't " + "supported with this connector\n"); return 0; } @@ -9308,34 +9190,34 @@ test_move_link(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, MOVE_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SUBGROUP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SUBGROUP_NAME); goto error; } if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_TEST_SRC_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SRC_GROUP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SRC_GROUP_NAME); goto error; } if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_TEST_DST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_TEST_DST_GROUP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_TEST_DST_GROUP_NAME); goto error; } @@ -9351,33 +9233,33 @@ test_move_link(void) if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_hard_no_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_hard_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lmove_hard_no_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_hard_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before move!\n"); + printf(" hard link existed in target group before move!\n"); PART_ERROR(H5Lmove_hard_no_check); } @@ -9385,34 +9267,34 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_hard_no_check); } /* Verify the link has been moved */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_hard_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lmove_hard_no_check); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_NAME); + printf(" couldn't determine if old hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_hard_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" old hard link exists\n"); + printf(" old hard link exists\n"); PART_ERROR(H5Lmove_hard_no_check); } @@ -9431,40 +9313,40 @@ test_move_link(void) if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lmove_hard_check); } /* Retrieve the link's info */ if (H5Lget_info2(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before move!\n"); + printf(" hard link existed in target group before move!\n"); PART_ERROR(H5Lmove_hard_check); } @@ -9472,66 +9354,66 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } /* Verify the link has been moved */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lmove_hard_check); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if old hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } if (link_exists) { H5_FAILED(); - HDprintf(" old hard link exists\n"); + printf(" old hard link exists\n"); PART_ERROR(H5Lmove_hard_check); } /* Retrieve the moved link's info */ if (H5Lget_info2(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, &new_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lmove_hard_check); } if (new_info.type != orig_info.type) { H5_FAILED(); - HDprintf(" moved link's link type doesn't match original link's type\n"); + printf(" moved link's link type doesn't match original link's type\n"); PART_ERROR(H5Lmove_hard_check); } if (H5Otoken_cmp(dst_grp_id, &new_info.u.token, &orig_info.u.token, &cmp_value) < 0) { H5_FAILED(); - HDprintf(" failed to compare link target tokens\n"); + printf(" failed to compare link target tokens\n"); PART_ERROR(H5Lmove_hard_check); } if (cmp_value != 0) { H5_FAILED(); - HDprintf(" moved hard link's object token doesn't match original link's object token\n"); + printf(" moved hard link's object token doesn't match original link's object token\n"); PART_ERROR(H5Lmove_hard_check); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (new_info.corder_valid != orig_info.corder_valid) { H5_FAILED(); - HDprintf( + printf( " moved link's 'corder_valid' field doesn't match original link's 'corder_valid' " "field\n"); PART_ERROR(H5Lmove_hard_check); @@ -9540,16 +9422,16 @@ test_move_link(void) if (new_info.corder_valid && orig_info.corder_valid && (new_info.corder != orig_info.corder)) { H5_FAILED(); - HDprintf(" moved link's creation order value %" PRId64 - " doesn't match original link's creation order value %" PRId64 "\n", - new_info.corder, orig_info.corder); + printf(" moved link's creation order value %" PRId64 + " doesn't match original link's creation order value %" PRId64 "\n", + new_info.corder, orig_info.corder); PART_ERROR(H5Lmove_hard_check); } } if (new_info.cset != orig_info.cset) { H5_FAILED(); - HDprintf(" moved link's character set doesn't match original link's character set\n"); + printf(" moved link's character set doesn't match original link's character set\n"); PART_ERROR(H5Lmove_hard_check); } @@ -9565,20 +9447,20 @@ test_move_link(void) if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lmove_hard_same_loc); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lmove_hard_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lmove_hard_same_loc); } @@ -9586,14 +9468,14 @@ test_move_link(void) if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_hard_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before move!\n"); + printf(" hard link existed in target group before move!\n"); PART_ERROR(H5Lmove_hard_same_loc); } @@ -9601,35 +9483,35 @@ test_move_link(void) if (H5Lmove(H5L_SAME_LOC, MOVE_LINK_TEST_HARD_LINK_NAME3, src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n", - MOVE_LINK_TEST_HARD_LINK_NAME3); + printf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n", + MOVE_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lmove_hard_same_loc); } /* Ensure the link has been renamed */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lmove_hard_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" original hard link existed in target group after move!\n"); + printf(" original hard link existed in target group after move!\n"); PART_ERROR(H5Lmove_hard_same_loc); } if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_hard_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist after move!\n"); + printf(" hard link did not exist after move!\n"); PART_ERROR(H5Lmove_hard_same_loc); } @@ -9637,35 +9519,35 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5L_SAME_LOC, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n", - MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); + printf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n", + MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_hard_same_loc); } /* Verify the link has been renamed back */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lmove_hard_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" original hard link did not exist after moving the link back!\n"); + printf(" original hard link did not exist after moving the link back!\n"); PART_ERROR(H5Lmove_hard_same_loc); } if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); + printf(" couldn't determine if old hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_hard_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" renamed hard link exists after moving the link back!\n"); + printf(" renamed hard link exists after moving the link back!\n"); PART_ERROR(H5Lmove_hard_same_loc); } @@ -9681,34 +9563,34 @@ test_move_link(void) if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4); + printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4); PART_ERROR(H5Lmove_hard_rename); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME4); + printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME4); PART_ERROR(H5Lmove_hard_rename); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lmove_hard_rename); } /* Verify the renamed link doesn't currently exist in the source group */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NEW_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if renamed hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_NEW_NAME); + printf(" couldn't determine if renamed hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_NEW_NAME); PART_ERROR(H5Lmove_hard_rename); } if (link_exists) { H5_FAILED(); - HDprintf(" renamed hard link existed in source group before move!\n"); + printf(" renamed hard link existed in source group before move!\n"); PART_ERROR(H5Lmove_hard_rename); } @@ -9716,35 +9598,35 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, src_grp_id, MOVE_LINK_TEST_HARD_LINK_NEW_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to rename link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4); + printf(" failed to rename link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4); PART_ERROR(H5Lmove_hard_rename); } /* Verify the link has been renamed */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NEW_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if renamed hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_NEW_NAME); + printf(" couldn't determine if renamed hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_NEW_NAME); PART_ERROR(H5Lmove_hard_rename); } if (!link_exists) { H5_FAILED(); - HDprintf(" renamed hard link did not exist\n"); + printf(" renamed hard link did not exist\n"); PART_ERROR(H5Lmove_hard_rename); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old hard link '%s' exists\n", - MOVE_LINK_TEST_HARD_LINK_NAME4); + printf(" couldn't determine if old hard link '%s' exists\n", + MOVE_LINK_TEST_HARD_LINK_NAME4); PART_ERROR(H5Lmove_hard_rename); } if (link_exists) { H5_FAILED(); - HDprintf(" old hard link exists\n"); + printf(" old hard link exists\n"); PART_ERROR(H5Lmove_hard_rename); } @@ -9760,33 +9642,33 @@ test_move_link(void) if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lmove_soft_no_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lmove_soft_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lmove_soft_no_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lmove_soft_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link existed in target group before move!\n"); + printf(" soft link existed in target group before move!\n"); PART_ERROR(H5Lmove_soft_no_check); } @@ -9794,34 +9676,34 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lmove_soft_no_check); } /* Verify the link has been moved */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lmove_soft_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lmove_soft_no_check); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if old soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lmove_soft_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" old soft link exists\n"); + printf(" old soft link exists\n"); PART_ERROR(H5Lmove_soft_no_check); } @@ -9841,27 +9723,27 @@ test_move_link(void) if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lmove_soft_check); } /* Retrieve the link's info */ if (H5Lget_info2(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } @@ -9869,20 +9751,20 @@ test_move_link(void) if (H5Lget_val(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, orig_link_val, MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link existed in target group before move!\n"); + printf(" soft link existed in target group before move!\n"); PART_ERROR(H5Lmove_soft_check); } @@ -9890,62 +9772,62 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } /* Verify the link has been moved */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lmove_soft_check); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if old soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } if (link_exists) { H5_FAILED(); - HDprintf(" old soft link exists\n"); + printf(" old soft link exists\n"); PART_ERROR(H5Lmove_soft_check); } /* Retrieve the moved link's info */ if (H5Lget_info2(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, &new_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } if (new_info.type != orig_info.type) { H5_FAILED(); - HDprintf(" moved link's link type doesn't match original link's type\n"); + printf(" moved link's link type doesn't match original link's type\n"); PART_ERROR(H5Lmove_soft_check); } if (new_info.u.val_size != orig_info.u.val_size) { H5_FAILED(); - HDprintf(" moved soft link's value size of %llu doesn't match original link's value size " - "of %llu\n", - (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); + printf(" moved soft link's value size of %llu doesn't match original link's value size " + "of %llu\n", + (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); PART_ERROR(H5Lmove_soft_check); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (new_info.corder_valid != orig_info.corder_valid) { H5_FAILED(); - HDprintf( + printf( " moved link's 'corder_valid' field doesn't match original link's 'corder_valid' " "field\n"); PART_ERROR(H5Lmove_soft_check); @@ -9954,16 +9836,16 @@ test_move_link(void) if (new_info.corder_valid && orig_info.corder_valid && (new_info.corder != orig_info.corder)) { H5_FAILED(); - HDprintf(" moved link's creation order value %" PRId64 - " doesn't match original link's creation order value %" PRId64 "\n", - new_info.corder, orig_info.corder); + printf(" moved link's creation order value %" PRId64 + " doesn't match original link's creation order value %" PRId64 "\n", + new_info.corder, orig_info.corder); PART_ERROR(H5Lmove_soft_check); } } if (new_info.cset != orig_info.cset) { H5_FAILED(); - HDprintf(" moved link's character set doesn't match original link's character set\n"); + printf(" moved link's character set doesn't match original link's character set\n"); PART_ERROR(H5Lmove_soft_check); } @@ -9971,14 +9853,14 @@ test_move_link(void) if (H5Lget_val(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, new_link_val, MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); + printf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lmove_soft_check); } if (HDstrncmp(orig_link_val, new_link_val, MOVE_LINK_TEST_LINK_VAL_BUF_SIZE)) { H5_FAILED(); - HDprintf(" moved soft link's value '%s' doesn't match original link's value '%s'\n", - new_link_val, orig_link_val); + printf(" moved soft link's value '%s' doesn't match original link's value '%s'\n", + new_link_val, orig_link_val); PART_ERROR(H5Lmove_soft_check); } @@ -9994,20 +9876,20 @@ test_move_link(void) if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lmove_soft_same_loc); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lmove_soft_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lmove_soft_same_loc); } @@ -10015,14 +9897,14 @@ test_move_link(void) if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_soft_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" soft link existed in target group before move!\n"); + printf(" soft link existed in target group before move!\n"); PART_ERROR(H5Lmove_soft_same_loc); } @@ -10030,35 +9912,35 @@ test_move_link(void) if (H5Lmove(H5L_SAME_LOC, MOVE_LINK_TEST_SOFT_LINK_NAME3, src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n", - MOVE_LINK_TEST_SOFT_LINK_NAME3); + printf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n", + MOVE_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lmove_soft_same_loc); } /* Ensure the link has been renamed */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lmove_soft_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" original soft link existed in target group after move!\n"); + printf(" original soft link existed in target group after move!\n"); PART_ERROR(H5Lmove_soft_same_loc); } if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_soft_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist after move!\n"); + printf(" soft link did not exist after move!\n"); PART_ERROR(H5Lmove_soft_same_loc); } @@ -10066,35 +9948,35 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5L_SAME_LOC, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n", - MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); + printf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n", + MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_soft_same_loc); } /* Verify the link has been renamed back */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lmove_soft_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" original hard link did not exist after moving the link back!\n"); + printf(" original hard link did not exist after moving the link back!\n"); PART_ERROR(H5Lmove_soft_same_loc); } if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); + printf(" couldn't determine if old soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_soft_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" renamed soft link exists after moving the link back!\n"); + printf(" renamed soft link exists after moving the link back!\n"); PART_ERROR(H5Lmove_soft_same_loc); } @@ -10110,34 +9992,34 @@ test_move_link(void) if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4); + printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4); PART_ERROR(H5Lmove_soft_rename); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME4); + printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME4); PART_ERROR(H5Lmove_soft_rename); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lmove_soft_rename); } /* Verify the renamed link doesn't currently exist in the source group */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NEW_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if renamed soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_NEW_NAME); + printf(" couldn't determine if renamed soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_NEW_NAME); PART_ERROR(H5Lmove_soft_rename); } if (link_exists) { H5_FAILED(); - HDprintf(" renamed soft link existed in source group before move!\n"); + printf(" renamed soft link existed in source group before move!\n"); PART_ERROR(H5Lmove_soft_rename); } @@ -10145,35 +10027,35 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME4, src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NEW_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to rename link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4); + printf(" failed to rename link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4); PART_ERROR(H5Lmove_soft_rename); } /* Verify the link has been renamed */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NEW_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if renamed soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_NEW_NAME); + printf(" couldn't determine if renamed soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_NEW_NAME); PART_ERROR(H5Lmove_soft_rename); } if (!link_exists) { H5_FAILED(); - HDprintf(" renamed soft link did not exist\n"); + printf(" renamed soft link did not exist\n"); PART_ERROR(H5Lmove_soft_rename); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old soft link '%s' exists\n", - MOVE_LINK_TEST_SOFT_LINK_NAME4); + printf(" couldn't determine if old soft link '%s' exists\n", + MOVE_LINK_TEST_SOFT_LINK_NAME4); PART_ERROR(H5Lmove_soft_rename); } if (link_exists) { H5_FAILED(); - HDprintf(" old soft link exists\n"); + printf(" old soft link exists\n"); PART_ERROR(H5Lmove_soft_rename); } @@ -10190,13 +10072,13 @@ test_move_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lmove_external_no_check); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lmove_external_no_check); } @@ -10204,35 +10086,35 @@ test_move_link(void) if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME); + printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME); PART_ERROR(H5Lmove_external_no_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME); PART_ERROR(H5Lmove_external_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lmove_external_no_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME); PART_ERROR(H5Lmove_external_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" external link existed in target group before move!\n"); + printf(" external link existed in target group before move!\n"); PART_ERROR(H5Lmove_external_no_check); } @@ -10240,35 +10122,35 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME); PART_ERROR(H5Lmove_external_no_check); } /* Verify the link has been moved */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME); PART_ERROR(H5Lmove_external_no_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lmove_external_no_check); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME); + printf(" couldn't determine if old external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME); PART_ERROR(H5Lmove_external_no_check); } if (link_exists) { H5_FAILED(); - HDprintf(" old external link exists\n"); + printf(" old external link exists\n"); PART_ERROR(H5Lmove_external_no_check); } @@ -10299,13 +10181,13 @@ test_move_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lmove_external_check); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lmove_external_check); } @@ -10313,28 +10195,28 @@ test_move_link(void) if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lmove_external_check); } /* Retrieve the link's info */ if (H5Lget_info2(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } @@ -10342,29 +10224,29 @@ test_move_link(void) if (H5Lget_val(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, orig_link_val, MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for external link '%s'\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't retrieve value for external link '%s'\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } if (H5Lunpack_elink_val(orig_link_val, orig_info.u.val_size, &unpack_flags, &orig_filename, &orig_objname) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack original external link's value buffer\n"); + printf(" couldn't unpack original external link's value buffer\n"); PART_ERROR(H5Lmove_external_check); } /* Verify the link doesn't currently exist in the target group */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } if (link_exists) { H5_FAILED(); - HDprintf(" external link existed in target group before move!\n"); + printf(" external link existed in target group before move!\n"); PART_ERROR(H5Lmove_external_check); } @@ -10372,63 +10254,63 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } /* Verify the link has been moved */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lmove_external_check); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't determine if old external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } if (link_exists) { H5_FAILED(); - HDprintf(" old external link exists\n"); + printf(" old external link exists\n"); PART_ERROR(H5Lmove_external_check); } /* Retrieve the moved link's info */ if (H5Lget_info2(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, &new_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } if (new_info.type != orig_info.type) { H5_FAILED(); - HDprintf(" moved link's link type doesn't match original link's type\n"); + printf(" moved link's link type doesn't match original link's type\n"); PART_ERROR(H5Lmove_external_check); } if (new_info.u.val_size != orig_info.u.val_size) { H5_FAILED(); - HDprintf(" moved external link's value size of %llu doesn't match original link's value " - "size of %llu\n", - (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); + printf(" moved external link's value size of %llu doesn't match original link's value " + "size of %llu\n", + (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size); PART_ERROR(H5Lmove_external_check); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (new_info.corder_valid != orig_info.corder_valid) { H5_FAILED(); - HDprintf( + printf( " moved link's 'corder_valid' field doesn't match original link's 'corder_valid' " "field\n"); PART_ERROR(H5Lmove_external_check); @@ -10437,17 +10319,17 @@ test_move_link(void) if (new_info.corder_valid && orig_info.corder_valid && (new_info.corder != orig_info.corder)) { H5_FAILED(); - HDprintf(" moved link's creation order value %" PRId64 - " doesn't match original link's creation " - "order value %" PRId64 "\n", - new_info.corder, orig_info.corder); + printf(" moved link's creation order value %" PRId64 + " doesn't match original link's creation " + "order value %" PRId64 "\n", + new_info.corder, orig_info.corder); PART_ERROR(H5Lmove_external_check); } } if (new_info.cset != orig_info.cset) { H5_FAILED(); - HDprintf(" moved link's character set doesn't match original link's character set\n"); + printf(" moved link's character set doesn't match original link's character set\n"); PART_ERROR(H5Lmove_external_check); } @@ -10455,31 +10337,31 @@ test_move_link(void) if (H5Lget_val(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, new_link_val, MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't retrieve value for external link '%s'\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME2); + printf(" couldn't retrieve value for external link '%s'\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME2); PART_ERROR(H5Lmove_external_check); } if (H5Lunpack_elink_val(new_link_val, new_info.u.val_size, &unpack_flags, &new_filename, &new_objname) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack moved external link's value buffer\n"); + printf(" couldn't unpack moved external link's value buffer\n"); PART_ERROR(H5Lmove_external_check); } if (HDstrncmp(new_filename, orig_filename, strlen(orig_filename)) < 0) { H5_FAILED(); - HDprintf(" moved external link's filename '%s' doesn't match original external link's " - "filename '%s'\n", - new_filename, orig_filename); + printf(" moved external link's filename '%s' doesn't match original external link's " + "filename '%s'\n", + new_filename, orig_filename); PART_ERROR(H5Lmove_external_check); } if (HDstrncmp(new_objname, orig_objname, strlen(orig_objname)) < 0) { H5_FAILED(); - HDprintf(" moved external link's object name '%s' doesn't match original external link's " - "object name '%s'\n", - new_objname, orig_objname); + printf(" moved external link's object name '%s' doesn't match original external link's " + "object name '%s'\n", + new_objname, orig_objname); PART_ERROR(H5Lmove_external_check); } @@ -10503,13 +10385,13 @@ test_move_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lmove_external_same_loc); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lmove_external_same_loc); } @@ -10517,21 +10399,21 @@ test_move_link(void) if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3); + printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3); PART_ERROR(H5Lmove_external_same_loc); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME3); PART_ERROR(H5Lmove_external_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lmove_external_same_loc); } @@ -10539,14 +10421,14 @@ test_move_link(void) if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_external_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" external link existed in target group before move!\n"); + printf(" external link existed in target group before move!\n"); PART_ERROR(H5Lmove_external_same_loc); } @@ -10554,35 +10436,35 @@ test_move_link(void) if (H5Lmove(H5L_SAME_LOC, MOVE_LINK_TEST_EXTERN_LINK_NAME3, src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3); PART_ERROR(H5Lmove_external_same_loc); } /* Ensure the link has been renamed */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME3); PART_ERROR(H5Lmove_external_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" original external link existed in target group after move!\n"); + printf(" original external link existed in target group after move!\n"); PART_ERROR(H5Lmove_external_same_loc); } if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_external_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist after move!\n"); + printf(" external link did not exist after move!\n"); PART_ERROR(H5Lmove_external_same_loc); } @@ -10590,35 +10472,35 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5L_SAME_LOC, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); + printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_external_same_loc); } /* Verify the link has been renamed back */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME3); PART_ERROR(H5Lmove_external_same_loc); } if (!link_exists) { H5_FAILED(); - HDprintf(" original external link did not exist after moving the link back!\n"); + printf(" original external link did not exist after moving the link back!\n"); PART_ERROR(H5Lmove_external_same_loc); } if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); + printf(" couldn't determine if old external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME); PART_ERROR(H5Lmove_external_same_loc); } if (link_exists) { H5_FAILED(); - HDprintf(" renamed external link exists after moving the link back!\n"); + printf(" renamed external link exists after moving the link back!\n"); PART_ERROR(H5Lmove_external_same_loc); } @@ -10642,13 +10524,13 @@ test_move_link(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lmove_external_rename); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lmove_external_rename); } @@ -10656,35 +10538,35 @@ test_move_link(void) if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4); + printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4); PART_ERROR(H5Lmove_external_rename); } /* Verify the link has been created */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME4); + printf(" couldn't determine if external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME4); PART_ERROR(H5Lmove_external_rename); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lmove_external_rename); } /* Verify the renamed link doesn't currently exist in the source group */ if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if renamed external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME); + printf(" couldn't determine if renamed external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME); PART_ERROR(H5Lmove_external_rename); } if (link_exists) { H5_FAILED(); - HDprintf(" renamed external link existed in source group before move!\n"); + printf(" renamed external link existed in source group before move!\n"); PART_ERROR(H5Lmove_external_rename); } @@ -10692,35 +10574,35 @@ test_move_link(void) if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4, src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to rename link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4); + printf(" failed to rename link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4); PART_ERROR(H5Lmove_external_rename); } /* Verify the link has been renamed */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if renamed external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME); + printf(" couldn't determine if renamed external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME); PART_ERROR(H5Lmove_external_rename); } if (!link_exists) { H5_FAILED(); - HDprintf(" renamed external link did not exist\n"); + printf(" renamed external link did not exist\n"); PART_ERROR(H5Lmove_external_rename); } /* Verify the old link is gone */ if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if old external link '%s' exists\n", - MOVE_LINK_TEST_EXTERN_LINK_NAME4); + printf(" couldn't determine if old external link '%s' exists\n", + MOVE_LINK_TEST_EXTERN_LINK_NAME4); PART_ERROR(H5Lmove_external_rename); } if (link_exists) { H5_FAILED(); - HDprintf(" old external link exists\n"); + printf(" old external link exists\n"); PART_ERROR(H5Lmove_external_rename); } @@ -10840,53 +10722,53 @@ test_move_links_into_group_with_links(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, hard link, or creation order aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, or creation order aren't " + "supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SUBGROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SRC_GRP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SRC_GRP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SRC_GRP_NAME); goto error; } if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_DST_GRP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_DST_GRP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_DST_GRP_NAME); goto error; } @@ -10896,7 +10778,7 @@ test_move_links_into_group_with_links(void) if (H5Lcreate_hard(src_grp_id, ".", src_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create link '%s' in source group\n", link_name); + printf(" couldn't create link '%s' in source group\n", link_name); goto error; } @@ -10904,21 +10786,21 @@ test_move_links_into_group_with_links(void) memset(&link_info, 0, sizeof(link_info)); if (H5Lget_info2(src_grp_id, link_name, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve info for link '%s'\n", link_name); + printf(" failed to retrieve info for link '%s'\n", link_name); goto error; } if (!link_info.corder_valid) { H5_FAILED(); - HDprintf(" creation order value for newly-created link '%s' was marked as not valid!\n", - link_name); + printf(" creation order value for newly-created link '%s' was marked as not valid!\n", + link_name); goto error; } if (link_info.corder != (int64_t)i) { H5_FAILED(); - HDprintf(" creation order value %lld for link '%s' did not match expected value %lld\n", - (long long)link_info.corder, link_name, (long long)i); + printf(" creation order value %lld for link '%s' did not match expected value %lld\n", + (long long)link_info.corder, link_name, (long long)i); goto error; } } @@ -10929,7 +10811,7 @@ test_move_links_into_group_with_links(void) if (H5Lcreate_hard(dst_grp_id, ".", dst_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create link '%s' in destination group\n", link_name); + printf(" couldn't create link '%s' in destination group\n", link_name); goto error; } } @@ -10940,7 +10822,7 @@ test_move_links_into_group_with_links(void) if (H5Lmove(src_grp_id, link_name, dst_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s' from source group to destination group\n", link_name); + printf(" failed to move link '%s' from source group to destination group\n", link_name); goto error; } @@ -10948,22 +10830,22 @@ test_move_links_into_group_with_links(void) memset(&link_info, 0, sizeof(link_info)); if (H5Lget_info2(dst_grp_id, link_name, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve info for link '%s'\n", link_name); + printf(" failed to retrieve info for link '%s'\n", link_name); goto error; } if (!link_info.corder_valid) { H5_FAILED(); - HDprintf(" creation order value for moved link '%s' was marked as not valid!\n", link_name); + printf(" creation order value for moved link '%s' was marked as not valid!\n", link_name); goto error; } if (link_info.corder != (int64_t)(i + MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_NUM_LINKS)) { H5_FAILED(); - HDprintf(" creation order value for moved link '%s' was not adjusted after move! It should " - "have been %lld but was %lld\n", - link_name, (long long)(i + MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_NUM_LINKS), - (long long)link_info.corder); + printf(" creation order value for moved link '%s' was not adjusted after move! It should " + "have been %lld but was %lld\n", + link_name, (long long)(i + MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_NUM_LINKS), + (long long)link_info.corder); goto error; } } @@ -11043,54 +10925,54 @@ test_move_link_reset_grp_max_crt_order(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, hard link, or creation order aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, or creation order aren't " + "supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } if ((group_id = H5Gcreate2(container_group, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME); goto error; } if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SRC_GRP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SRC_GRP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SRC_GRP_NAME); goto error; } if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_DST_GRP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_DST_GRP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_DST_GRP_NAME); goto error; } @@ -11100,7 +10982,7 @@ test_move_link_reset_grp_max_crt_order(void) if (H5Lcreate_hard(src_grp_id, ".", src_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s' in source group\n", link_name); + printf(" couldn't create hard link '%s' in source group\n", link_name); goto error; } } @@ -11114,15 +10996,15 @@ test_move_link_reset_grp_max_crt_order(void) if (H5Gget_info(src_grp_id, &grp_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve source group's info\n"); + printf(" failed to retrieve source group's info\n"); goto error; } if (grp_info.max_corder != MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" source group's maximum creation order value got adjusted to %lld during link " - "moving; value should have remained at %d\n", - (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); + printf(" source group's maximum creation order value got adjusted to %lld during link " + "moving; value should have remained at %d\n", + (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); goto error; } @@ -11130,7 +11012,7 @@ test_move_link_reset_grp_max_crt_order(void) if (H5Lmove(src_grp_id, link_name, dst_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to move link '%s' to destination group\n", link_name); + printf(" failed to move link '%s' to destination group\n", link_name); goto error; } } @@ -11143,15 +11025,15 @@ test_move_link_reset_grp_max_crt_order(void) if (H5Gget_info(src_grp_id, &grp_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve source group's info\n"); + printf(" failed to retrieve source group's info\n"); goto error; } if (grp_info.max_corder != 0) { H5_FAILED(); - HDprintf(" source group's maximum creation order value didn't reset to 0 after moving all links " - "out of it; value is still %lld\n", - (long long)grp_info.max_corder); + printf(" source group's maximum creation order value didn't reset to 0 after moving all links " + "out of it; value is still %lld\n", + (long long)grp_info.max_corder); goto error; } @@ -11160,15 +11042,15 @@ test_move_link_reset_grp_max_crt_order(void) if (H5Gget_info(dst_grp_id, &grp_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve destination group's info\n"); + printf(" failed to retrieve destination group's info\n"); goto error; } if (grp_info.max_corder != MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" destination group's maximum creation order value of %lld didn't match expected value " - "of %d after moving all links into it\n", - (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); + printf(" destination group's maximum creation order value of %lld didn't match expected value " + "of %d after moving all links into it\n", + (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS); goto error; } @@ -11225,8 +11107,8 @@ test_move_link_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, link, or hard link aren't supported with this " + "connector\n"); return 0; } @@ -11234,41 +11116,41 @@ test_move_link_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, MOVE_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME); goto error; } if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME); goto error; } if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME); + printf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME); goto error; } if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } @@ -11276,14 +11158,14 @@ test_move_link_invalid_params(void) if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); goto error; } @@ -11291,14 +11173,14 @@ test_move_link_invalid_params(void) if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group before move!\n"); + printf(" hard link existed in target group before move!\n"); goto error; } @@ -11319,7 +11201,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with an invalid source location ID!\n"); + printf(" H5Lmove succeeded with an invalid source location ID!\n"); PART_ERROR(H5Lmove_invalid_src_loc_id); } @@ -11340,7 +11222,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with a NULL source name!\n"); + printf(" H5Lmove succeeded with a NULL source name!\n"); PART_ERROR(H5Lmove_invalid_src_name); } @@ -11353,7 +11235,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with an invalid source name of ''!\n"); + printf(" H5Lmove succeeded with an invalid source name of ''!\n"); PART_ERROR(H5Lmove_invalid_src_name); } @@ -11374,7 +11256,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with an invalid destination location ID!\n"); + printf(" H5Lmove succeeded with an invalid destination location ID!\n"); PART_ERROR(H5Lmove_invalid_dst_loc_id); } @@ -11395,7 +11277,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with a NULL destination name!\n"); + printf(" H5Lmove succeeded with a NULL destination name!\n"); PART_ERROR(H5Lmove_invalid_dst_name); } @@ -11408,7 +11290,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with an invalid destination name of ''!\n"); + printf(" H5Lmove succeeded with an invalid destination name of ''!\n"); PART_ERROR(H5Lmove_invalid_dst_name); } @@ -11429,7 +11311,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with an invalid LCPL!\n"); + printf(" H5Lmove succeeded with an invalid LCPL!\n"); PART_ERROR(H5Lmove_invalid_lcpl); } @@ -11450,7 +11332,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with an invalid LAPL!\n"); + printf(" H5Lmove succeeded with an invalid LAPL!\n"); PART_ERROR(H5Lmove_invalid_lapl); } @@ -11466,28 +11348,28 @@ test_move_link_invalid_params(void) if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_existence); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link didn't exist in source group after invalid move!\n"); + printf(" hard link didn't exist in source group after invalid move!\n"); PART_ERROR(H5Lmove_existence); } if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_existence); } if (link_exists) { H5_FAILED(); - HDprintf(" hard link existed in target group after invalid move!\n"); + printf(" hard link existed in target group after invalid move!\n"); PART_ERROR(H5Lmove_existence); } @@ -11510,7 +11392,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded with an invalid same location!\n"); + printf(" H5Lmove succeeded with an invalid same location!\n"); PART_ERROR(H5Lmove_same_location); } @@ -11527,7 +11409,7 @@ test_move_link_invalid_params(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lmove_across_files); } @@ -11541,7 +11423,7 @@ test_move_link_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lmove succeeded in moving a hard link across files!\n"); + printf(" H5Lmove succeeded in moving a hard link across files!\n"); PART_ERROR(H5Lmove_across_files); } @@ -11549,21 +11431,21 @@ test_move_link_invalid_params(void) if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if original link '%s' exists after invalid link move\n", - MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if original link '%s' exists after invalid link move\n", + MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_across_files); } if (!link_exists) { H5_FAILED(); - HDprintf(" original link '%s' didn't exist after failed move!\n", - MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" original link '%s' didn't exist after failed move!\n", + MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME); PART_ERROR(H5Lmove_across_files); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" failed to close a file!\n"); + printf(" failed to close a file!\n"); PART_ERROR(H5Lmove_across_files); } @@ -11632,8 +11514,8 @@ test_get_link_val(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, external link, or creation " - "order aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, external link, or creation " + "order aren't supported with this connector\n"); return 0; } @@ -11641,26 +11523,26 @@ test_get_link_val(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -11668,7 +11550,7 @@ test_get_link_val(void) if ((group_id = H5Gcreate2(container_group, GET_LINK_VAL_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP_NAME); goto error; } @@ -11687,59 +11569,59 @@ test_get_link_val(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME); PART_ERROR(H5Lget_val_soft); } if (H5Lcreate_soft(link_target, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_soft); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_soft); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_soft); } if (H5Lget_info2(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info\n"); + printf(" failed to retrieve soft link's info\n"); PART_ERROR(H5Lget_val_soft); } link_val_size = strlen(link_target) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size, - link_val_size); + printf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size, + link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (H5Lget_val(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value\n"); + printf(" couldn't get soft link value\n"); PART_ERROR(H5Lget_val_soft); } if (HDstrncmp(link_val_buf, link_target, link_val_size)) { H5_FAILED(); - HDprintf(" soft link value did not match\n"); + printf(" soft link value did not match\n"); PART_ERROR(H5Lget_val_soft); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME); PART_ERROR(H5Lget_val_soft); } @@ -11767,88 +11649,88 @@ test_get_link_val(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_val_external); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_val_external); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME); PART_ERROR(H5Lget_val_external); } if (H5Lcreate_external(ext_link_filename, ext_obj_name, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_external); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_external); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" external link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_external); } if (H5Lget_info2(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info\n"); + printf(" failed to retrieve external link's info\n"); PART_ERROR(H5Lget_val_external); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size, - link_val_size); + printf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size, + link_val_size); PART_ERROR(H5Lget_val_external); } if (H5Lget_val(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value\n"); + printf(" couldn't get external link value\n"); PART_ERROR(H5Lget_val_external); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_external); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_external); } if (HDstrncmp(ext_link_val, ext_obj_name, strlen(ext_obj_name) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name); PART_ERROR(H5Lget_val_external); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME); PART_ERROR(H5Lget_val_external); } @@ -11896,14 +11778,14 @@ test_get_link_val(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_val_by_idx_soft_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP4_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -11911,58 +11793,58 @@ test_get_link_val(void) if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -11971,15 +11853,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 0); + printf(" failed to retrieve soft link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } link_val_size = strlen(link_target_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -11987,14 +11869,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 0); + printf(" couldn't get soft link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 0, link_target_a); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 0, link_target_a); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -12002,15 +11884,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 1); + printf(" failed to retrieve soft link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } link_val_size = strlen(link_target_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -12018,14 +11900,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 1); + printf(" couldn't get soft link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 1, link_target_b); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 1, link_target_b); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -12033,15 +11915,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 2); + printf(" failed to retrieve soft link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } link_val_size = strlen(link_target_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -12049,20 +11931,20 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 2); + printf(" couldn't get soft link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 2, link_target_c); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 2, link_target_c); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing); } @@ -12090,14 +11972,14 @@ test_get_link_val(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_val_by_idx_soft_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP5_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12105,58 +11987,58 @@ test_get_link_val(void) if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12165,15 +12047,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 2); + printf(" failed to retrieve soft link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } link_val_size = strlen(link_target_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12181,14 +12063,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 2); + printf(" couldn't get soft link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 2, link_target_a); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 2, link_target_a); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12196,15 +12078,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 1); + printf(" failed to retrieve soft link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } link_val_size = strlen(link_target_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12212,14 +12094,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 1); + printf(" couldn't get soft link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 1, link_target_b); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 1, link_target_b); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12227,15 +12109,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 0); + printf(" failed to retrieve soft link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } link_val_size = strlen(link_target_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12243,20 +12125,20 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 0); + printf(" couldn't get soft link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 0, link_target_c); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 0, link_target_c); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME); PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing); } @@ -12285,7 +12167,7 @@ test_get_link_val(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP6_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12293,58 +12175,58 @@ test_get_link_val(void) if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12353,15 +12235,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 0); + printf(" failed to retrieve soft link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } link_val_size = strlen(link_target_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12369,14 +12251,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 0); + printf(" couldn't get soft link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 0, link_target_a); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 0, link_target_a); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12384,15 +12266,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 1); + printf(" failed to retrieve soft link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } link_val_size = strlen(link_target_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12400,14 +12282,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 1); + printf(" couldn't get soft link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 1, link_target_b); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 1, link_target_b); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12415,15 +12297,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 2); + printf(" failed to retrieve soft link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } link_val_size = strlen(link_target_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12431,20 +12313,20 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 2); + printf(" couldn't get soft link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 2, link_target_c); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 2, link_target_c); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing); } @@ -12473,7 +12355,7 @@ test_get_link_val(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP7_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12481,58 +12363,58 @@ test_get_link_val(void) if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12541,15 +12423,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 2); + printf(" failed to retrieve soft link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } link_val_size = strlen(link_target_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12557,14 +12439,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 2); + printf(" couldn't get soft link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 2, link_target_a); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 2, link_target_a); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12572,15 +12454,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 1); + printf(" failed to retrieve soft link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } link_val_size = strlen(link_target_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12588,14 +12470,14 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 1); + printf(" couldn't get soft link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 1, link_target_b); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 1, link_target_b); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12603,15 +12485,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve soft link's info at index %d\n", 0); + printf(" failed to retrieve soft link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } link_val_size = strlen(link_target_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12619,20 +12501,20 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link value at index %d\n", 0); + printf(" couldn't get soft link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) { H5_FAILED(); - HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n", - link_val_buf, 0, link_target_c); + printf(" link value '%s' for link at index %d did not match expected value '%s'\n", + link_val_buf, 0, link_target_c); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME); PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing); } @@ -12657,7 +12539,7 @@ test_get_link_val(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12666,20 +12548,20 @@ test_get_link_val(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP8_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12687,58 +12569,58 @@ test_get_link_val(void) if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12747,15 +12629,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 0); + printf(" failed to retrieve external link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12763,28 +12645,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 0); + printf(" couldn't get external link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_a); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_a); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12792,15 +12674,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 1); + printf(" failed to retrieve external link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12808,28 +12690,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 1); + printf(" couldn't get external link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_b); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_b); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12837,15 +12719,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 2); + printf(" failed to retrieve external link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12853,34 +12735,34 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 2); + printf(" couldn't get external link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_c); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_c); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing); } @@ -12907,7 +12789,7 @@ test_get_link_val(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -12916,20 +12798,20 @@ test_get_link_val(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP9_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -12937,58 +12819,58 @@ test_get_link_val(void) if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -12997,15 +12879,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 2); + printf(" failed to retrieve external link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -13013,28 +12895,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 2); + printf(" couldn't get external link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_a); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_a); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -13042,15 +12924,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 1); + printf(" failed to retrieve external link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -13058,28 +12940,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 1); + printf(" couldn't get external link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_b); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_b); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -13087,15 +12969,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 0); + printf(" failed to retrieve external link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -13103,34 +12985,34 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 0); + printf(" couldn't get external link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_c); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_c); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME); PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing); } @@ -13160,20 +13042,20 @@ test_get_link_val(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP10_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13181,58 +13063,58 @@ test_get_link_val(void) if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13241,15 +13123,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 0); + printf(" failed to retrieve external link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13257,28 +13139,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 0); + printf(" couldn't get external link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_a); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_a); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13286,15 +13168,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 1); + printf(" failed to retrieve external link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13302,28 +13184,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 1); + printf(" couldn't get external link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_b); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_b); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13331,15 +13213,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 2); + printf(" failed to retrieve external link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13347,34 +13229,34 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 2); + printf(" couldn't get external link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_c); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_c); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing); } @@ -13404,20 +13286,20 @@ test_get_link_val(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP11_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13425,58 +13307,58 @@ test_get_link_val(void) if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } /* Verify the links exist */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); + printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13485,15 +13367,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 2); + printf(" failed to retrieve external link's info at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 2, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 2, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13501,28 +13383,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 2); + printf(" couldn't get external link value at index %d\n", 2); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_a); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_a); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13530,15 +13412,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 1); + printf(" failed to retrieve external link's info at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 1, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 1, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13546,28 +13428,28 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 1); + printf(" couldn't get external link value at index %d\n", 1); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_b); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_b); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13575,15 +13457,15 @@ test_get_link_val(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve external link's info at index %d\n", 0); + printf(" failed to retrieve external link's info at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n", - link_info.u.val_size, 0, link_val_size); + printf(" link value size %zu for link at index %d did not match expected size of %zu\n", + link_info.u.val_size, 0, link_val_size); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13591,34 +13473,34 @@ test_get_link_val(void) if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_val_buf, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link value at index %d\n", 0); + printf(" couldn't get external link value at index %d\n", 0); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath, &ext_link_val) < 0) { H5_FAILED(); - HDprintf(" couldn't unpack external link value buffer\n"); + printf(" couldn't unpack external link value buffer\n"); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) { H5_FAILED(); - HDprintf(" external link target file '%s' did not match expected '%s'\n", - ext_link_filepath, ext_link_filename); + printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath, + ext_link_filename); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) { H5_FAILED(); - HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val, - ext_obj_name_c); + printf(" external link value '%s' did not match expected '%s'\n", ext_link_val, + ext_obj_name_c); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME); + printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME); PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing); } @@ -13754,8 +13636,8 @@ test_get_link_val_invalid_params(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, external link, or creation " - "order aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, external link, or creation " + "order aren't supported with this connector\n"); return 0; } @@ -13763,34 +13645,33 @@ test_get_link_val_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if ((group_id = H5Gcreate2(container_group, GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME, group_id, GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME); goto error; } @@ -13798,21 +13679,21 @@ test_get_link_val_invalid_params(void) if ((link_exists = H5Lexists(group_id, GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", - GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", + GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } link_val_buf_size = 100; if (NULL == (link_val_buf = (char *)HDmalloc(link_val_buf_size))) { H5_FAILED(); - HDprintf(" couldn't allocate buffer for storing link value\n"); + printf(" couldn't allocate buffer for storing link value\n"); goto error; } @@ -13835,7 +13716,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val succeeded with an invalid location ID\n"); + printf(" H5Lget_val succeeded with an invalid location ID\n"); PART_ERROR(H5Lget_val_invalid_loc_id); } @@ -13855,7 +13736,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val succeeded with a NULL link name\n"); + printf(" H5Lget_val succeeded with a NULL link name\n"); PART_ERROR(H5Lget_val_invalid_link_name); } @@ -13867,7 +13748,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val succeeded with an invalid link name of ''\n"); + printf(" H5Lget_val succeeded with an invalid link name of ''\n"); PART_ERROR(H5Lget_val_invalid_link_name); } @@ -13888,7 +13769,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val succeeded with an invalid LAPL\n"); + printf(" H5Lget_val succeeded with an invalid LAPL\n"); PART_ERROR(H5Lget_val_invalid_lapl); } @@ -13911,7 +13792,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val_by_idx succeeded with an invalid location ID!\n"); + printf(" H5Lget_val_by_idx succeeded with an invalid location ID!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_loc_id); } @@ -13932,7 +13813,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val_by_idx succeeded with a NULL group name!\n"); + printf(" H5Lget_val_by_idx succeeded with a NULL group name!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_grp_name); } @@ -13945,7 +13826,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val_by_idx succeeded with an invalid group name of ''!\n"); + printf(" H5Lget_val_by_idx succeeded with an invalid group name of ''!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_grp_name); } @@ -13966,7 +13847,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_index_type); } @@ -13979,7 +13860,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_index_type); } @@ -14000,8 +13881,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( - " H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_iter_order); } @@ -14014,7 +13894,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_iter_order); } @@ -14035,7 +13915,7 @@ test_get_link_val_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_val_by_idx succeeded with an invalid LAPL!\n"); + printf(" H5Lget_val_by_idx succeeded with an invalid LAPL!\n"); PART_ERROR(H5Lget_val_by_idx_invalid_lapl); } @@ -14105,8 +13985,8 @@ test_get_link_info(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, hard link, or external link " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, hard link, or external link " + "aren't supported with this connector\n"); return 0; } @@ -14114,26 +13994,26 @@ test_get_link_info(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -14141,7 +14021,7 @@ test_get_link_info(void) if ((group_id = H5Gcreate2(container_group, GET_LINK_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", GET_LINK_INFO_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", GET_LINK_INFO_TEST_GROUP_NAME); goto error; } @@ -14158,54 +14038,54 @@ test_get_link_info(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME); PART_ERROR(H5Lget_info_hard); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_hard); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_hard); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); PART_ERROR(H5Lget_info_hard); } if (H5Lget_info2(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info\n"); + printf(" couldn't get hard link info\n"); PART_ERROR(H5Lget_info_hard); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_hard); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_hard); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME); PART_ERROR(H5Lget_info_hard); } @@ -14229,7 +14109,7 @@ test_get_link_info(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME); PART_ERROR(H5Lget_info_soft); } @@ -14238,32 +14118,32 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_soft); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_soft); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link did not exist\n"); + printf(" soft link did not exist\n"); PART_ERROR(H5Lget_info_soft); } if (H5Lget_info2(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info\n"); + printf(" couldn't get soft link info\n"); PART_ERROR(H5Lget_info_soft); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_soft); } @@ -14272,23 +14152,23 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_soft); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_soft); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME); PART_ERROR(H5Lget_info_soft); } @@ -14314,75 +14194,75 @@ test_get_link_info(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_info_external); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_info_external); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP3_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME); PART_ERROR(H5Lget_info_external); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_external); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_external); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link did not exist\n"); + printf(" external link did not exist\n"); PART_ERROR(H5Lget_info_external); } if (H5Lget_info2(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info\n"); + printf(" couldn't get external link info\n"); PART_ERROR(H5Lget_info_external); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_external); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_external); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_external); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME); PART_ERROR(H5Lget_info_external); } @@ -14423,14 +14303,14 @@ test_get_link_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_info_by_idx_hard_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP5_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } @@ -14438,64 +14318,64 @@ test_get_link_info(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } @@ -14504,20 +14384,20 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 0); + printf(" couldn't get hard link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } @@ -14525,20 +14405,20 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 1); + printf(" couldn't get hard link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } @@ -14546,26 +14426,26 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 2); + printf(" couldn't get hard link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing); } @@ -14586,14 +14466,14 @@ test_get_link_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_info_by_idx_hard_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP6_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } @@ -14601,64 +14481,64 @@ test_get_link_info(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } @@ -14667,20 +14547,20 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 2); + printf(" couldn't get hard link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } @@ -14688,20 +14568,20 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 1); + printf(" couldn't get hard link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } @@ -14709,26 +14589,26 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 0); + printf(" couldn't get hard link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME); PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing); } @@ -14750,7 +14630,7 @@ test_get_link_info(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP7_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } @@ -14758,64 +14638,64 @@ test_get_link_info(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } @@ -14824,21 +14704,21 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 0); + printf(" couldn't get hard link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } } @@ -14847,21 +14727,21 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 1); + printf(" couldn't get hard link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } } @@ -14870,28 +14750,28 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 2); + printf(" couldn't get hard link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing); } @@ -14913,7 +14793,7 @@ test_get_link_info(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP8_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } @@ -14921,64 +14801,64 @@ test_get_link_info(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } @@ -14987,21 +14867,21 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 2); + printf(" couldn't get hard link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } } @@ -15010,21 +14890,21 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 1); + printf(" couldn't get hard link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } } @@ -15033,28 +14913,28 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get hard link info for index %d\n", 0); + printf(" couldn't get hard link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME); PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing); } @@ -15075,14 +14955,14 @@ test_get_link_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_info_by_idx_soft_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP9_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15092,7 +14972,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15101,7 +14981,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15110,50 +14990,50 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15162,13 +15042,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 0); + printf(" couldn't get soft link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15177,15 +15057,15 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15193,13 +15073,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 1); + printf(" couldn't get soft link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15208,15 +15088,15 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15224,13 +15104,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 2); + printf(" couldn't get soft link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15239,21 +15119,21 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing); } @@ -15274,14 +15154,14 @@ test_get_link_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_info_by_idx_soft_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP10_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15291,7 +15171,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15300,7 +15180,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15309,50 +15189,50 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15361,13 +15241,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 2); + printf(" couldn't get soft link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15376,15 +15256,15 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15392,13 +15272,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 1); + printf(" couldn't get soft link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15407,15 +15287,15 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15423,13 +15303,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 0); + printf(" couldn't get soft link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15438,21 +15318,21 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME); PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing); } @@ -15474,7 +15354,7 @@ test_get_link_info(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP11_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15484,7 +15364,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15493,7 +15373,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15502,50 +15382,50 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15554,13 +15434,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 0); + printf(" couldn't get soft link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15569,16 +15449,16 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } } @@ -15587,13 +15467,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 1); + printf(" couldn't get soft link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15602,16 +15482,16 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } } @@ -15620,13 +15500,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 2); + printf(" couldn't get soft link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15635,23 +15515,23 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%zu' did not match expected value '%zu'\n", - link_info.u.val_size, link_val_size); + printf(" link's value size '%zu' did not match expected value '%zu'\n", + link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing); } @@ -15673,7 +15553,7 @@ test_get_link_info(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP12_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15683,7 +15563,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15692,7 +15572,7 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15701,50 +15581,50 @@ test_get_link_info(void) subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15753,13 +15633,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 2); + printf(" couldn't get soft link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15768,16 +15648,16 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } } @@ -15786,13 +15666,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 1); + printf(" couldn't get soft link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15801,16 +15681,16 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } } @@ -15819,13 +15699,13 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get soft link info for index %d\n", 0); + printf(" couldn't get soft link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (link_info.type != H5L_TYPE_SOFT) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15834,23 +15714,23 @@ test_get_link_info(void) 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME); PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing); } @@ -15871,7 +15751,7 @@ test_get_link_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_info_by_idx_external_crt_order_increasing); } @@ -15880,20 +15760,20 @@ test_get_link_info(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP13_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } @@ -15901,64 +15781,64 @@ test_get_link_info(void) if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } @@ -15967,28 +15847,28 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 0); + printf(" couldn't get external link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } @@ -15996,28 +15876,28 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 1); + printf(" couldn't get external link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } @@ -16025,34 +15905,34 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 2); + printf(" couldn't get external link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing); } @@ -16075,7 +15955,7 @@ test_get_link_info(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_info_by_idx_external_crt_order_decreasing); } @@ -16084,20 +15964,20 @@ test_get_link_info(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP14_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } @@ -16105,64 +15985,64 @@ test_get_link_info(void) if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } @@ -16171,28 +16051,28 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 2); + printf(" couldn't get external link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } @@ -16200,28 +16080,28 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 1); + printf(" couldn't get external link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } @@ -16229,34 +16109,34 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 0); + printf(" couldn't get external link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME); PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing); } @@ -16282,20 +16162,20 @@ test_get_link_info(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP15_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } @@ -16303,64 +16183,64 @@ test_get_link_info(void) if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } @@ -16369,29 +16249,29 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 0); + printf(" couldn't get external link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } } @@ -16400,29 +16280,29 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 1); + printf(" couldn't get external link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } } @@ -16431,36 +16311,36 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 2); + printf(" couldn't get external link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing); } @@ -16486,20 +16366,20 @@ test_get_link_info(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP16_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME); + printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } @@ -16507,64 +16387,64 @@ test_get_link_info(void) if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME2); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME2); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before deletion\n", - GET_LINK_INFO_TEST_EXT_LINK_NAME3); + printf(" external link '%s' did not exist before deletion\n", + GET_LINK_INFO_TEST_EXT_LINK_NAME3); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } @@ -16573,29 +16453,29 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 2); + printf(" couldn't get external link info for index %d\n", 2); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 0)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)0); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)0); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } } @@ -16604,29 +16484,29 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 1); + printf(" couldn't get external link info for index %d\n", 1); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 1)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)1); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)1); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } } @@ -16635,36 +16515,36 @@ test_get_link_info(void) if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get external link info for index %d\n", 0); + printf(" couldn't get external link info for index %d\n", 0); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (link_info.type != H5L_TYPE_EXTERNAL) { H5_FAILED(); - HDprintf(" incorrect link type returned\n"); + printf(" incorrect link type returned\n"); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1; if (link_info.u.val_size != link_val_size) { H5_FAILED(); - HDprintf(" link's value size '%lld' did not match expected value '%zu'\n", - (long long)link_info.u.val_size, link_val_size); + printf(" link's value size '%lld' did not match expected value '%zu'\n", + (long long)link_info.u.val_size, link_val_size); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (link_info.corder_valid && (link_info.corder != 2)) { H5_FAILED(); - HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n", - (long long)link_info.corder, (long long)2); + printf(" link's creation order value '%lld' did not match expected value '%lld'\n", + (long long)link_info.corder, (long long)2); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME); + printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME); PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing); } @@ -16798,8 +16678,8 @@ test_get_link_info_invalid_params(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, or hard link " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, or hard link " + "aren't supported with this connector\n"); return 0; } @@ -16807,34 +16687,33 @@ test_get_link_info_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if ((group_id = H5Gcreate2(container_group, GET_LINK_INFO_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_INFO_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", GET_LINK_INFO_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } if (H5Lcreate_hard(group_id, ".", group_id, GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } @@ -16842,14 +16721,14 @@ test_get_link_info_invalid_params(void) if ((link_exists = H5Lexists(group_id, GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link did not exist\n"); + printf(" hard link did not exist\n"); goto error; } @@ -16872,7 +16751,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info2 succeeded with an invalid location ID!\n"); + printf(" H5Lget_info2 succeeded with an invalid location ID!\n"); PART_ERROR(H5Lget_info_invalid_loc_id); } @@ -16892,7 +16771,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info2 succeeded with a NULL link name!\n"); + printf(" H5Lget_info2 succeeded with a NULL link name!\n"); PART_ERROR(H5Lget_info_invalid_link_name); } @@ -16904,7 +16783,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info2 succeeded with an invalid link name of ''!\n"); + printf(" H5Lget_info2 succeeded with an invalid link name of ''!\n"); PART_ERROR(H5Lget_info_invalid_link_name); } @@ -16925,7 +16804,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info2 succeeded with an invalid LAPL!\n"); + printf(" H5Lget_info2 succeeded with an invalid LAPL!\n"); PART_ERROR(H5Lget_info_invalid_lapl); } @@ -16948,7 +16827,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info_by_idx2 succeeded with an invalid location ID!\n"); + printf(" H5Lget_info_by_idx2 succeeded with an invalid location ID!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_loc_id); } @@ -16969,7 +16848,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info_by_idx2 succeeded with a NULL group name!\n"); + printf(" H5Lget_info_by_idx2 succeeded with a NULL group name!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_grp_name); } @@ -16982,7 +16861,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info_by_idx2 succeeded with an invalid group name of ''!\n"); + printf(" H5Lget_info_by_idx2 succeeded with an invalid group name of ''!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_grp_name); } @@ -17003,7 +16882,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_index_type); } @@ -17016,7 +16895,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_index_type); } @@ -17037,7 +16916,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( + printf( " H5Lget_info_by_idx2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_iter_order); } @@ -17051,7 +16930,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info_by_idx2 succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Lget_info_by_idx2 succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_iter_order); } @@ -17072,7 +16951,7 @@ test_get_link_info_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_info_by_idx2 succeeded with an invalid LAPL!\n"); + printf(" H5Lget_info_by_idx2 succeeded with an invalid LAPL!\n"); PART_ERROR(H5Lget_info_by_idx_invalid_lapl); } @@ -17134,8 +17013,8 @@ test_get_link_name(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, hard link, or external link " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, hard link, or external link " + "aren't supported with this connector\n"); return 0; } @@ -17143,26 +17022,26 @@ test_get_link_name(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -17170,7 +17049,7 @@ test_get_link_name(void) if ((group_id = H5Gcreate2(container_group, GET_LINK_NAME_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", GET_LINK_NAME_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", GET_LINK_NAME_TEST_GROUP_NAME); goto error; } @@ -17184,7 +17063,7 @@ test_get_link_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_name_by_idx_hard_crt_order_increasing); } @@ -17192,8 +17071,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } @@ -17201,64 +17080,64 @@ test_get_link_name(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } @@ -17266,72 +17145,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing); } @@ -17352,7 +17231,7 @@ test_get_link_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_name_by_idx_hard_crt_order_decreasing); } @@ -17360,8 +17239,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME2, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME2); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } @@ -17369,64 +17248,64 @@ test_get_link_name(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } @@ -17434,72 +17313,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing); } @@ -17522,8 +17401,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME3, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME3); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } @@ -17531,64 +17410,64 @@ test_get_link_name(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } @@ -17596,72 +17475,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing); } @@ -17684,8 +17563,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME4, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME4); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME4); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } @@ -17693,64 +17572,64 @@ test_get_link_name(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if hard link '%s' exists\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" couldn't determine if hard link '%s' exists\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" hard link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" hard link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } @@ -17758,72 +17637,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME, strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_HARD_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_HARD_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing); } @@ -17844,7 +17723,7 @@ test_get_link_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_name_by_idx_soft_crt_order_increasing); } @@ -17852,8 +17731,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } @@ -17861,64 +17740,64 @@ test_get_link_name(void) if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } @@ -17926,72 +17805,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing); } @@ -18012,7 +17891,7 @@ test_get_link_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_name_by_idx_soft_crt_order_decreasing); } @@ -18020,8 +17899,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME2, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME2); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } @@ -18029,64 +17908,64 @@ test_get_link_name(void) if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } @@ -18094,72 +17973,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing); } @@ -18182,8 +18061,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME3, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME3); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } @@ -18191,64 +18070,64 @@ test_get_link_name(void) if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } @@ -18256,72 +18135,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing); } @@ -18344,8 +18223,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME4, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME4); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME4); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } @@ -18353,64 +18232,64 @@ test_get_link_name(void) if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if soft link '%s' exists\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" couldn't determine if soft link '%s' exists\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" soft link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" soft link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } @@ -18418,72 +18297,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME, strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_SOFT_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_SOFT_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing); } @@ -18504,7 +18383,7 @@ test_get_link_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_name_by_idx_external_crt_order_increasing); } @@ -18514,13 +18393,13 @@ test_get_link_name(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } @@ -18528,8 +18407,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } @@ -18537,21 +18416,21 @@ test_get_link_name(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } @@ -18559,45 +18438,45 @@ test_get_link_name(void) if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } @@ -18605,72 +18484,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing); } @@ -18693,7 +18572,7 @@ test_get_link_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lget_name_by_idx_external_crt_order_decreasing); } @@ -18703,13 +18582,13 @@ test_get_link_name(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } @@ -18717,8 +18596,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME2, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME2); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } @@ -18726,21 +18605,21 @@ test_get_link_name(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } @@ -18748,45 +18627,45 @@ test_get_link_name(void) if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } @@ -18794,72 +18673,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing); } @@ -18886,13 +18765,13 @@ test_get_link_name(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } @@ -18900,8 +18779,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME3, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME3); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } @@ -18909,21 +18788,21 @@ test_get_link_name(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } @@ -18931,45 +18810,45 @@ test_get_link_name(void) if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } @@ -18977,72 +18856,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing); } @@ -19069,13 +18948,13 @@ test_get_link_name(void) if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (H5Fclose(ext_file_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close file '%s'\n", ext_link_filename); + printf(" couldn't close file '%s'\n", ext_link_filename); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } @@ -19083,8 +18962,8 @@ test_get_link_name(void) if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME4, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME4); + printf(" couldn't create container subgroup '%s'\n", + GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME4); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } @@ -19092,21 +18971,21 @@ test_get_link_name(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } @@ -19114,45 +18993,45 @@ test_get_link_name(void) if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if external link '%s' exists\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" couldn't determine if external link '%s' exists\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (!link_exists) { H5_FAILED(); - HDprintf(" external link '%s' did not exist before name retrieval\n", - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" external link '%s' did not exist before name retrieval\n", + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } @@ -19160,72 +19039,72 @@ test_get_link_name(void) if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, NULL, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_name_buf, (size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name\n"); + printf(" failed to retrieve link name\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) { H5_FAILED(); - HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf, - GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); + printf(" link name '%s' did not match expected name '%s'\n", link_name_buf, + GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group\n"); + printf(" failed to close group\n"); PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing); } @@ -19369,8 +19248,8 @@ test_get_link_name_invalid_params(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, hard link, or external link " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, hard link, or external link " + "aren't supported with this connector\n"); return 0; } @@ -19378,28 +19257,27 @@ test_get_link_name_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, GET_LINK_NAME_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - GET_LINK_NAME_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", GET_LINK_NAME_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } if (H5Lcreate_hard(group_id, ".", group_id, GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" failed to create hard link '%s'\n", GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } @@ -19407,20 +19285,20 @@ test_get_link_name_invalid_params(void) if ((link_exists = H5Lexists(group_id, GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link did not exist\n"); + printf(" link did not exist\n"); goto error; } if ((ret = H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, NULL, link_name_buf_size, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve link name size\n"); + printf(" failed to retrieve link name size\n"); goto error; } @@ -19445,7 +19323,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_name_by_idx succeeded with an invalid location ID!\n"); + printf(" H5Lget_name_by_idx succeeded with an invalid location ID!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_loc_id); } @@ -19466,7 +19344,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_name_by_idx succeeded with a NULL group name!\n"); + printf(" H5Lget_name_by_idx succeeded with a NULL group name!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_grp_name); } @@ -19479,7 +19357,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_name_by_idx succeeded with an invalid group name of ''!\n"); + printf(" H5Lget_name_by_idx succeeded with an invalid group name of ''!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_grp_name); } @@ -19500,7 +19378,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_index_type); } @@ -19513,7 +19391,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_index_type); } @@ -19534,8 +19412,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf( - " H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_iter_order); } @@ -19548,7 +19425,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_iter_order); } @@ -19569,7 +19446,7 @@ test_get_link_name_invalid_params(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" H5Lget_name_by_idx succeeded with an invalid LAPL!\n"); + printf(" H5Lget_name_by_idx succeeded with an invalid LAPL!\n"); PART_ERROR(H5Lget_name_by_idx_invalid_lapl); } @@ -19637,8 +19514,8 @@ test_link_iterate_hard_links(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, link, or iterate aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, dataset, link, or iterate aren't " + "supported with this connector\n"); return 0; } @@ -19646,26 +19523,26 @@ test_link_iterate_hard_links(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -19673,7 +19550,7 @@ test_link_iterate_hard_links(void) if ((group_id = H5Gcreate2(container_group, LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME); goto error; } @@ -19694,26 +19571,26 @@ test_link_iterate_hard_links(void) if ((dset_id = H5Dcreate2(group_id, dset_name, dset_dtype, dset_dspace, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", dset_name); + printf(" couldn't create hard link '%s'\n", dset_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, dset_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", dset_name); + printf(" couldn't determine if link '%s' exists\n", dset_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", dset_name); + printf(" link '%s' did not exist\n", dset_name); goto error; } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close dataset '%s'\n", dset_name); + printf(" couldn't close dataset '%s'\n", dset_name); goto error; } } @@ -19738,13 +19615,13 @@ test_link_iterate_hard_links(void) /* Test basic link iteration capability using both index types and both index orders */ if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in increasing order failed\n"); + printf(" H5Literate2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_link_name_increasing); } if (i != LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_increasing); } @@ -19761,13 +19638,13 @@ test_link_iterate_hard_links(void) if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in decreasing order failed\n"); + printf(" H5Literate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_link_name_decreasing); } if (i != 2 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_decreasing); } @@ -19781,7 +19658,7 @@ test_link_iterate_hard_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_increasing); } @@ -19791,13 +19668,13 @@ test_link_iterate_hard_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in increasing order failed\n"); + printf(" H5Literate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_link_creation_increasing); } if (i != 3 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_increasing); } @@ -19811,7 +19688,7 @@ test_link_iterate_hard_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_decreasing); } @@ -19821,13 +19698,13 @@ test_link_iterate_hard_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_link_creation_decreasing); } if (i != 4 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_decreasing); } @@ -19846,13 +19723,13 @@ test_link_iterate_hard_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } if (i != LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } @@ -19871,13 +19748,13 @@ test_link_iterate_hard_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } if (i != 2 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } @@ -19891,7 +19768,7 @@ test_link_iterate_hard_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_increasing); } @@ -19902,13 +19779,13 @@ test_link_iterate_hard_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } if (i != 3 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } @@ -19922,7 +19799,7 @@ test_link_iterate_hard_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_decreasing); } @@ -19933,13 +19810,13 @@ test_link_iterate_hard_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } if (i != 4 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } @@ -20007,8 +19884,8 @@ test_link_iterate_soft_links(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -20016,26 +19893,26 @@ test_link_iterate_soft_links(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -20043,7 +19920,7 @@ test_link_iterate_soft_links(void) if ((group_id = H5Gcreate2(container_group, LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME); goto error; } @@ -20060,20 +19937,20 @@ test_link_iterate_soft_links(void) if (H5Lcreate_soft(link_target, group_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", link_name); + printf(" couldn't create soft link '%s'\n", link_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, link_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", link_name); + printf(" couldn't determine if link '%s' exists\n", link_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", link_name); + printf(" link '%s' did not exist\n", link_name); goto error; } } @@ -20098,13 +19975,13 @@ test_link_iterate_soft_links(void) /* Test basic link iteration capability using both index types and both index orders */ if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in increasing order failed\n"); + printf(" H5Literate2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_link_name_increasing); } if (i != LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_increasing); } @@ -20121,13 +19998,13 @@ test_link_iterate_soft_links(void) if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in decreasing order failed\n"); + printf(" H5Literate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_link_name_decreasing); } if (i != 2 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_decreasing); } @@ -20141,7 +20018,7 @@ test_link_iterate_soft_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_increasing); } @@ -20151,13 +20028,13 @@ test_link_iterate_soft_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in increasing order failed\n"); + printf(" H5Literate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_link_creation_increasing); } if (i != 3 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_increasing); } @@ -20171,7 +20048,7 @@ test_link_iterate_soft_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_decreasing); } @@ -20181,13 +20058,13 @@ test_link_iterate_soft_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_link_creation_decreasing); } if (i != 4 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_decreasing); } @@ -20206,13 +20083,13 @@ test_link_iterate_soft_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } if (i != LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } @@ -20231,13 +20108,13 @@ test_link_iterate_soft_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } if (i != 2 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } @@ -20251,7 +20128,7 @@ test_link_iterate_soft_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_increasing); } @@ -20262,13 +20139,13 @@ test_link_iterate_soft_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } if (i != 3 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } @@ -20282,7 +20159,7 @@ test_link_iterate_soft_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_decreasing); } @@ -20293,13 +20170,13 @@ test_link_iterate_soft_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } if (i != 4 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } @@ -20361,8 +20238,8 @@ test_link_iterate_external_links(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, external link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, external link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -20372,7 +20249,7 @@ test_link_iterate_external_links(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -20381,26 +20258,26 @@ test_link_iterate_external_links(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -20408,7 +20285,7 @@ test_link_iterate_external_links(void) if ((group_id = H5Gcreate2(container_group, LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME); goto error; } @@ -20421,20 +20298,20 @@ test_link_iterate_external_links(void) if (H5Lcreate_external(ext_link_filename, "/", group_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", link_name); + printf(" couldn't create external link '%s'\n", link_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(group_id, link_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", link_name); + printf(" couldn't determine if link '%s' exists\n", link_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", link_name); + printf(" link '%s' did not exist\n", link_name); goto error; } } @@ -20460,13 +20337,13 @@ test_link_iterate_external_links(void) if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_external_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in increasing order failed\n"); + printf(" H5Literate2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_link_name_increasing); } if (i != LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_increasing); } @@ -20484,13 +20361,13 @@ test_link_iterate_external_links(void) if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_external_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in decreasing order failed\n"); + printf(" H5Literate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_link_name_decreasing); } if (i != 2 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_decreasing); } @@ -20504,7 +20381,7 @@ test_link_iterate_external_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_increasing); } @@ -20514,13 +20391,13 @@ test_link_iterate_external_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_external_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in increasing order failed\n"); + printf(" H5Literate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_link_creation_increasing); } if (i != 3 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_increasing); } @@ -20534,7 +20411,7 @@ test_link_iterate_external_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_decreasing); } @@ -20544,13 +20421,13 @@ test_link_iterate_external_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_external_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_link_creation_decreasing); } if (i != 4 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_decreasing); } @@ -20569,13 +20446,13 @@ test_link_iterate_external_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_external_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } if (i != LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } @@ -20594,13 +20471,13 @@ test_link_iterate_external_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_external_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } if (i != 2 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } @@ -20614,7 +20491,7 @@ test_link_iterate_external_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_increasing); } @@ -20626,13 +20503,13 @@ test_link_iterate_external_links(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_external_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } if (i != 3 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } @@ -20646,7 +20523,7 @@ test_link_iterate_external_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_decreasing); } @@ -20658,13 +20535,13 @@ test_link_iterate_external_links(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_external_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } if (i != 4 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } @@ -20758,8 +20635,8 @@ test_link_iterate_mixed_links(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, external link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, external link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -20769,7 +20646,7 @@ test_link_iterate_mixed_links(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -20778,26 +20655,26 @@ test_link_iterate_mixed_links(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -20805,7 +20682,7 @@ test_link_iterate_mixed_links(void) if ((group_id = H5Gcreate2(container_group, LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME); goto error; } @@ -20819,7 +20696,7 @@ test_link_iterate_mixed_links(void) if ((dset_id = H5Dcreate2(group_id, LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME, dset_dtype, dset_dspace, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME); goto error; } @@ -20827,51 +20704,51 @@ test_link_iterate_mixed_links(void) "/" LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME, group_id, LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME); goto error; } if (H5Lcreate_external(ext_link_filename, "/", group_id, LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME); goto error; } /* Verify the links have been created */ if ((link_exists = H5Lexists(group_id, LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" first link did not exist\n"); + printf(" first link did not exist\n"); goto error; } if ((link_exists = H5Lexists(group_id, LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" second link did not exist\n"); + printf(" second link did not exist\n"); goto error; } if ((link_exists = H5Lexists(group_id, LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" third link did not exist\n"); + printf(" third link did not exist\n"); goto error; } @@ -20895,13 +20772,13 @@ test_link_iterate_mixed_links(void) /* Test basic link iteration capability using both index types and both index orders */ if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in increasing order failed\n"); + printf(" H5Literate2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_link_name_increasing); } if (i != LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_increasing); } @@ -20918,13 +20795,13 @@ test_link_iterate_mixed_links(void) if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in decreasing order failed\n"); + printf(" H5Literate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_link_name_decreasing); } if (i != 2 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_name_decreasing); } @@ -20938,7 +20815,7 @@ test_link_iterate_mixed_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_increasing); } @@ -20948,13 +20825,13 @@ test_link_iterate_mixed_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in increasing order failed\n"); + printf(" H5Literate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_link_creation_increasing); } if (i != 3 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_increasing); } @@ -20968,7 +20845,7 @@ test_link_iterate_mixed_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_link_creation_decreasing); } @@ -20978,13 +20855,13 @@ test_link_iterate_mixed_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_link_creation_decreasing); } if (i != 4 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_link_creation_decreasing); } @@ -21002,13 +20879,13 @@ test_link_iterate_mixed_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } if (i != LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_increasing); } @@ -21027,13 +20904,13 @@ test_link_iterate_mixed_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } if (i != 2 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_link_name_decreasing); } @@ -21047,7 +20924,7 @@ test_link_iterate_mixed_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_increasing); } @@ -21058,13 +20935,13 @@ test_link_iterate_mixed_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } if (i != 3 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_increasing); } @@ -21078,7 +20955,7 @@ test_link_iterate_mixed_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_creation_decreasing); } @@ -21089,13 +20966,13 @@ test_link_iterate_mixed_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } if (i != 4 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not iterated over!\n"); + printf(" some links were not iterated over!\n"); PART_ERROR(H5Literate_by_name_creation_decreasing); } @@ -21109,7 +20986,7 @@ test_link_iterate_mixed_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_index_saving_increasing); } @@ -21120,20 +20997,20 @@ test_link_iterate_mixed_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, &saved_idx, link_iter_idx_saving_cb, &halted) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 index-saving capability test failed\n"); + printf(" H5Literate2 index-saving capability test failed\n"); PART_ERROR(H5Literate_index_saving_increasing); } if (saved_idx != 2) { H5_FAILED(); - HDprintf(" saved index after iteration was wrong\n"); + printf(" saved index after iteration was wrong\n"); PART_ERROR(H5Literate_index_saving_increasing); } if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, &saved_idx, link_iter_idx_saving_cb, &halted) < 0) { H5_FAILED(); - HDprintf(" couldn't finish iterating when beginning from saved index\n"); + printf(" couldn't finish iterating when beginning from saved index\n"); PART_ERROR(H5Literate_index_saving_increasing); } @@ -21147,7 +21024,7 @@ test_link_iterate_mixed_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_index_saving_decreasing); } @@ -21157,20 +21034,20 @@ test_link_iterate_mixed_links(void) if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, &saved_idx, link_iter_idx_saving_cb, &halted) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 index-saving capability test failed\n"); + printf(" H5Literate2 index-saving capability test failed\n"); PART_ERROR(H5Literate_index_saving_decreasing); } if (saved_idx != 2) { H5_FAILED(); - HDprintf(" saved index after iteration was wrong\n"); + printf(" saved index after iteration was wrong\n"); PART_ERROR(H5Literate_index_saving_decreasing); } if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, &saved_idx, link_iter_idx_saving_cb, &halted) < 0) { H5_FAILED(); - HDprintf(" couldn't finish iterating when beginning from saved index\n"); + printf(" couldn't finish iterating when beginning from saved index\n"); PART_ERROR(H5Literate_index_saving_decreasing); } @@ -21244,9 +21121,8 @@ test_link_iterate_invalid_params(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, dataset, link, soft link, external link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, dataset, link, soft link, external link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -21256,7 +21132,7 @@ test_link_iterate_invalid_params(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -21265,21 +21141,20 @@ test_link_iterate_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, LINK_ITER_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_ITER_INVALID_PARAMS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_SUBGROUP_NAME); goto error; } @@ -21293,7 +21168,7 @@ test_link_iterate_invalid_params(void) if ((dset_id = H5Dcreate2(group_id, LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME, dset_dtype, dset_dspace, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't create hard link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } @@ -21302,50 +21177,48 @@ test_link_iterate_invalid_params(void) group_id, LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME); goto error; } if (H5Lcreate_external(ext_link_filename, "/", group_id, LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME); + printf(" couldn't create external link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME); goto error; } /* Verify the links have been created */ if ((link_exists = H5Lexists(group_id, LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", - LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" first link did not exist\n"); + printf(" first link did not exist\n"); goto error; } if ((link_exists = H5Lexists(group_id, LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", - LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" second link did not exist\n"); + printf(" second link did not exist\n"); goto error; } if ((link_exists = H5Lexists(group_id, LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME); + printf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" third link did not exist\n"); + printf(" third link did not exist\n"); goto error; } @@ -21368,7 +21241,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate2 succeeded with an invalid group ID!\n"); + printf(" H5Literate2 succeeded with an invalid group ID!\n"); PART_ERROR(H5Literate_invalid_grp_id); } @@ -21389,7 +21262,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Literate2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Literate_invalid_index_type); } @@ -21402,7 +21275,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate2 succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Literate2 succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Literate_invalid_index_type); } @@ -21423,7 +21296,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Literate_invalid_iter_order); } @@ -21436,7 +21309,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Literate_invalid_iter_order); } @@ -21458,7 +21331,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 succeeded with an invalid location ID!\n"); + printf(" H5Literate_by_name2 succeeded with an invalid location ID!\n"); PART_ERROR(H5Literate_by_name_invalid_loc_id); } @@ -21479,7 +21352,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 succeeded with a NULL group name!\n"); + printf(" H5Literate_by_name2 succeeded with a NULL group name!\n"); PART_ERROR(H5Literate_by_name_invalid_grp_name); } @@ -21492,7 +21365,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 succeeded with an invalid group name of ''!\n"); + printf(" H5Literate_by_name2 succeeded with an invalid group name of ''!\n"); PART_ERROR(H5Literate_by_name_invalid_grp_name); } @@ -21514,7 +21387,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Literate_by_name_invalid_index_type); } @@ -21528,7 +21401,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Literate_by_name_invalid_index_type); } @@ -21550,7 +21423,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( + printf( " H5Literate_by_name2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Literate_by_name_invalid_iter_order); } @@ -21565,7 +21438,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Literate_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Literate_by_name_invalid_iter_order); } @@ -21587,7 +21460,7 @@ test_link_iterate_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 succeeded with an invalid LAPL!\n"); + printf(" H5Literate_by_name2 succeeded with an invalid LAPL!\n"); PART_ERROR(H5Literate_by_name_invalid_lapl); } @@ -21648,8 +21521,8 @@ test_link_iterate_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or iterate aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, or iterate aren't supported " + "with this connector\n"); return 0; } @@ -21657,26 +21530,26 @@ test_link_iterate_0_links(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create GCPL for link creation order tracking\n"); + printf(" couldn't create GCPL for link creation order tracking\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) { H5_FAILED(); - HDprintf(" couldn't set link creation order tracking\n"); + printf(" couldn't set link creation order tracking\n"); goto error; } } @@ -21684,7 +21557,7 @@ test_link_iterate_0_links(void) if ((group_id = H5Gcreate2(container_group, LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME); goto error; } @@ -21699,7 +21572,7 @@ test_link_iterate_0_links(void) /* Test basic link iteration capability using both index types and both index orders */ if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in increasing order failed\n"); + printf(" H5Literate2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_0_links_name_increasing); } @@ -21713,7 +21586,7 @@ test_link_iterate_0_links(void) if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type name in decreasing order failed\n"); + printf(" H5Literate2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_0_links_name_decreasing); } @@ -21727,14 +21600,14 @@ test_link_iterate_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_0_links_creation_increasing); } if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in increasing order failed\n"); + printf(" H5Literate2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_0_links_creation_increasing); } @@ -21748,14 +21621,14 @@ test_link_iterate_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_0_links_creation_decreasing); } if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_0_links_creation_decreasing); } @@ -21771,7 +21644,7 @@ test_link_iterate_0_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Literate_by_name_0_links_name_increasing); } @@ -21787,7 +21660,7 @@ test_link_iterate_0_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_0_links_name_decreasing); } @@ -21801,7 +21674,7 @@ test_link_iterate_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_0_links_creation_increasing); } @@ -21809,7 +21682,7 @@ test_link_iterate_0_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Literate_by_name_0_links_creation_increasing); } @@ -21823,7 +21696,7 @@ test_link_iterate_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Literate_by_name_0_links_creation_decreasing); } @@ -21831,7 +21704,7 @@ test_link_iterate_0_links(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Literate_by_name_0_links_creation_decreasing); } @@ -21896,8 +21769,8 @@ test_link_visit_hard_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or link iterate aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, dataset, or link iterate aren't " + "supported with this connector\n"); return 0; } @@ -21905,26 +21778,26 @@ test_link_visit_hard_links_no_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -21932,8 +21805,8 @@ test_link_visit_hard_links_no_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); goto error; } @@ -21955,7 +21828,7 @@ test_link_visit_hard_links_no_cycles(void) if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", grp_name); + printf(" couldn't create subgroup '%s'\n", grp_name); goto error; } @@ -21970,33 +21843,33 @@ test_link_visit_hard_links_no_cycles(void) if ((dset_id = H5Dcreate2(subgroup_id, dset_name, dset_dtype, dset_dspace, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", dset_name); + printf(" couldn't create hard link '%s'\n", dset_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(subgroup_id, dset_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", dset_name); + printf(" couldn't determine if link '%s' exists\n", dset_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", dset_name); + printf(" link '%s' did not exist\n", dset_name); goto error; } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close dataset '%s'\n", dset_name); + printf(" couldn't close dataset '%s'\n", dset_name); goto error; } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close subgroup '%s'\n", grp_name); + printf(" couldn't close subgroup '%s'\n", grp_name); goto error; } } @@ -22020,13 +21893,13 @@ test_link_visit_hard_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } if (i != LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } @@ -22043,13 +21916,13 @@ test_link_visit_hard_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } @@ -22063,7 +21936,7 @@ test_link_visit_hard_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing); } @@ -22073,13 +21946,13 @@ test_link_visit_hard_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } @@ -22093,7 +21966,7 @@ test_link_visit_hard_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -22103,13 +21976,13 @@ test_link_visit_hard_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -22128,13 +22001,13 @@ test_link_visit_hard_links_no_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } if (i != LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } @@ -22153,13 +22026,13 @@ test_link_visit_hard_links_no_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } @@ -22173,7 +22046,7 @@ test_link_visit_hard_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -22185,13 +22058,13 @@ test_link_visit_hard_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -22205,7 +22078,7 @@ test_link_visit_hard_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -22217,13 +22090,13 @@ test_link_visit_hard_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -22294,8 +22167,8 @@ test_link_visit_soft_links_no_cycles(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -22303,26 +22176,26 @@ test_link_visit_soft_links_no_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -22330,8 +22203,8 @@ test_link_visit_soft_links_no_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); goto error; } @@ -22346,7 +22219,7 @@ test_link_visit_soft_links_no_cycles(void) if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", grp_name); + printf(" couldn't create subgroup '%s'\n", grp_name); goto error; } @@ -22364,27 +22237,27 @@ test_link_visit_soft_links_no_cycles(void) if (H5Lcreate_soft(link_target, subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", link_name); + printf(" couldn't create soft link '%s'\n", link_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", link_name); + printf(" couldn't determine if link '%s' exists\n", link_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", link_name); + printf(" link '%s' did not exist\n", link_name); goto error; } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close subgroup '%s'\n", grp_name); + printf(" couldn't close subgroup '%s'\n", grp_name); goto error; } } @@ -22408,13 +22281,13 @@ test_link_visit_soft_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } if (i != LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } @@ -22431,13 +22304,13 @@ test_link_visit_soft_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } @@ -22451,7 +22324,7 @@ test_link_visit_soft_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing); } @@ -22461,13 +22334,13 @@ test_link_visit_soft_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } @@ -22481,7 +22354,7 @@ test_link_visit_soft_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -22491,13 +22364,13 @@ test_link_visit_soft_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -22515,13 +22388,13 @@ test_link_visit_soft_links_no_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } if (i != LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } @@ -22540,13 +22413,13 @@ test_link_visit_soft_links_no_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } @@ -22560,7 +22433,7 @@ test_link_visit_soft_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -22572,13 +22445,13 @@ test_link_visit_soft_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -22592,7 +22465,7 @@ test_link_visit_soft_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -22604,13 +22477,13 @@ test_link_visit_soft_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -22675,8 +22548,8 @@ test_link_visit_external_links_no_cycles(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, external link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, external link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -22686,7 +22559,7 @@ test_link_visit_external_links_no_cycles(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -22695,26 +22568,26 @@ test_link_visit_external_links_no_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -22722,8 +22595,8 @@ test_link_visit_external_links_no_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); goto error; } @@ -22738,7 +22611,7 @@ test_link_visit_external_links_no_cycles(void) if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", grp_name); + printf(" couldn't create subgroup '%s'\n", grp_name); goto error; } @@ -22753,27 +22626,27 @@ test_link_visit_external_links_no_cycles(void) if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", link_name); + printf(" couldn't create external link '%s'\n", link_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", link_name); + printf(" couldn't determine if link '%s' exists\n", link_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", link_name); + printf(" link '%s' did not exist\n", link_name); goto error; } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close subgroup '%s'\n", grp_name); + printf(" couldn't close subgroup '%s'\n", grp_name); goto error; } } @@ -22798,13 +22671,13 @@ test_link_visit_external_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } if (i != LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } @@ -22822,13 +22695,13 @@ test_link_visit_external_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } @@ -22842,7 +22715,7 @@ test_link_visit_external_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing); } @@ -22852,13 +22725,13 @@ test_link_visit_external_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } @@ -22872,7 +22745,7 @@ test_link_visit_external_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -22882,13 +22755,13 @@ test_link_visit_external_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -22908,13 +22781,13 @@ test_link_visit_external_links_no_cycles(void) H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } if (i != LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } @@ -22934,13 +22807,13 @@ test_link_visit_external_links_no_cycles(void) H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } @@ -22954,7 +22827,7 @@ test_link_visit_external_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -22966,13 +22839,13 @@ test_link_visit_external_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -22986,7 +22859,7 @@ test_link_visit_external_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -22998,13 +22871,13 @@ test_link_visit_external_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -23102,7 +22975,7 @@ test_link_visit_mixed_links_no_cycles(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf( + printf( " API functions for basic file, group, link, hard link, soft link, external link, or iterate " "aren't supported with this connector\n"); return 0; @@ -23114,7 +22987,7 @@ test_link_visit_mixed_links_no_cycles(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -23123,26 +22996,26 @@ test_link_visit_mixed_links_no_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -23150,24 +23023,24 @@ test_link_visit_mixed_links_no_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME); goto error; } if ((subgroup1 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create first subgroup '%s'\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2); + printf(" couldn't create first subgroup '%s'\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2); goto error; } if ((subgroup2 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create second subgroup '%s'\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3); + printf(" couldn't create second subgroup '%s'\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3); goto error; } @@ -23181,7 +23054,7 @@ test_link_visit_mixed_links_no_cycles(void) if ((dset_id = H5Dcreate2(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create first dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME); + printf(" couldn't create first dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME); } if (H5Dclose(dset_id) < 0) @@ -23190,7 +23063,7 @@ test_link_visit_mixed_links_no_cycles(void) if ((dset_id = H5Dcreate2(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create second dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME); + printf(" couldn't create second dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME); } if (H5Dclose(dset_id) < 0) @@ -23199,30 +23072,29 @@ test_link_visit_mixed_links_no_cycles(void) if (H5Lcreate_hard(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME, subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first hard link '%s'\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1); + printf(" couldn't create first hard link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1); goto error; } if (H5Lcreate_soft(LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME, subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2); goto error; } if (H5Lcreate_external(ext_link_filename, "/", subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3); + printf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3); goto error; } if (H5Lcreate_hard(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2, subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create second hard link '%s'\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4); + printf(" couldn't create second hard link '%s'\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4); goto error; } @@ -23230,56 +23102,56 @@ test_link_visit_mixed_links_no_cycles(void) if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1); + printf(" couldn't determine if first link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 1 did not exist\n"); + printf(" link 1 did not exist\n"); goto error; } if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if second link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2); + printf(" couldn't determine if second link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 2 did not exist\n"); + printf(" link 2 did not exist\n"); goto error; } if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if third link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3); + printf(" couldn't determine if third link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 3 did not exist\n"); + printf(" link 3 did not exist\n"); goto error; } if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if fourth link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4); + printf(" couldn't determine if fourth link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 4 did not exist\n"); + printf(" link 4 did not exist\n"); goto error; } @@ -23303,13 +23175,13 @@ test_link_visit_mixed_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } if (i != LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_increasing); } @@ -23327,13 +23199,13 @@ test_link_visit_mixed_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing); } @@ -23347,7 +23219,7 @@ test_link_visit_mixed_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing); } @@ -23357,13 +23229,13 @@ test_link_visit_mixed_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing); } @@ -23377,7 +23249,7 @@ test_link_visit_mixed_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -23387,13 +23259,13 @@ test_link_visit_mixed_links_no_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing); } @@ -23411,13 +23283,13 @@ test_link_visit_mixed_links_no_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } if (i != LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing); } @@ -23436,13 +23308,13 @@ test_link_visit_mixed_links_no_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing); } @@ -23456,7 +23328,7 @@ test_link_visit_mixed_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -23468,13 +23340,13 @@ test_link_visit_mixed_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing); } @@ -23488,7 +23360,7 @@ test_link_visit_mixed_links_no_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -23500,13 +23372,13 @@ test_link_visit_mixed_links_no_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing); } @@ -23581,8 +23453,8 @@ test_link_visit_hard_links_cycles(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, hard link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -23590,26 +23462,26 @@ test_link_visit_hard_links_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -23617,8 +23489,8 @@ test_link_visit_hard_links_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME); goto error; } @@ -23633,7 +23505,7 @@ test_link_visit_hard_links_cycles(void) if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", grp_name); + printf(" couldn't create subgroup '%s'\n", grp_name); goto error; } @@ -23647,27 +23519,27 @@ test_link_visit_hard_links_cycles(void) if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create hard link '%s'\n", link_name); + printf(" couldn't create hard link '%s'\n", link_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", link_name); + printf(" couldn't determine if link '%s' exists\n", link_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", link_name); + printf(" link '%s' did not exist\n", link_name); goto error; } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close subgroup '%s'\n", grp_name); + printf(" couldn't close subgroup '%s'\n", grp_name); goto error; } } @@ -23691,13 +23563,13 @@ test_link_visit_hard_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } if (i != LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } @@ -23714,13 +23586,13 @@ test_link_visit_hard_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } @@ -23734,7 +23606,7 @@ test_link_visit_hard_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_increasing); } @@ -23744,13 +23616,13 @@ test_link_visit_hard_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } @@ -23764,7 +23636,7 @@ test_link_visit_hard_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing); } @@ -23774,13 +23646,13 @@ test_link_visit_hard_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } @@ -23798,13 +23670,13 @@ test_link_visit_hard_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } if (i != LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } @@ -23823,13 +23695,13 @@ test_link_visit_hard_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } @@ -23843,7 +23715,7 @@ test_link_visit_hard_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -23854,13 +23726,13 @@ test_link_visit_hard_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -23874,7 +23746,7 @@ test_link_visit_hard_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -23885,13 +23757,13 @@ test_link_visit_hard_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -23954,8 +23826,8 @@ test_link_visit_soft_links_cycles(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, soft link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, soft link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -23963,26 +23835,26 @@ test_link_visit_soft_links_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -23990,8 +23862,8 @@ test_link_visit_soft_links_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME); goto error; } @@ -24006,7 +23878,7 @@ test_link_visit_soft_links_cycles(void) if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", grp_name); + printf(" couldn't create subgroup '%s'\n", grp_name); goto error; } @@ -24025,27 +23897,27 @@ test_link_visit_soft_links_cycles(void) if (H5Lcreate_soft(link_target, subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", link_name); + printf(" couldn't create soft link '%s'\n", link_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", link_name); + printf(" couldn't determine if link '%s' exists\n", link_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", link_name); + printf(" link '%s' did not exist\n", link_name); goto error; } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close subgroup '%s'\n", grp_name); + printf(" couldn't close subgroup '%s'\n", grp_name); goto error; } } @@ -24069,13 +23941,13 @@ test_link_visit_soft_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } if (i != LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } @@ -24092,13 +23964,13 @@ test_link_visit_soft_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } @@ -24112,7 +23984,7 @@ test_link_visit_soft_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_increasing); } @@ -24122,13 +23994,13 @@ test_link_visit_soft_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } @@ -24142,7 +24014,7 @@ test_link_visit_soft_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing); } @@ -24152,13 +24024,13 @@ test_link_visit_soft_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } @@ -24177,13 +24049,13 @@ test_link_visit_soft_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } if (i != LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } @@ -24202,13 +24074,13 @@ test_link_visit_soft_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } @@ -24222,7 +24094,7 @@ test_link_visit_soft_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -24233,13 +24105,13 @@ test_link_visit_soft_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -24253,7 +24125,7 @@ test_link_visit_soft_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -24264,13 +24136,13 @@ test_link_visit_soft_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -24334,8 +24206,8 @@ test_link_visit_external_links_cycles(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, link, external link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, external link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -24343,26 +24215,26 @@ test_link_visit_external_links_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -24370,8 +24242,8 @@ test_link_visit_external_links_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME); goto error; } @@ -24386,7 +24258,7 @@ test_link_visit_external_links_cycles(void) if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup '%s'\n", grp_name); + printf(" couldn't create subgroup '%s'\n", grp_name); goto error; } @@ -24406,27 +24278,27 @@ test_link_visit_external_links_cycles(void) if (H5Lcreate_external(H5_api_test_filename, link_target_obj, subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", link_name); + printf(" couldn't create external link '%s'\n", link_name); goto error; } /* Verify the link has been created */ if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' exists\n", link_name); + printf(" couldn't determine if link '%s' exists\n", link_name); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link '%s' did not exist\n", link_name); + printf(" link '%s' did not exist\n", link_name); goto error; } } if (H5Gclose(subgroup_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close subgroup '%s'\n", grp_name); + printf(" couldn't close subgroup '%s'\n", grp_name); goto error; } } @@ -24451,13 +24323,13 @@ test_link_visit_external_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } if (i != LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } @@ -24475,13 +24347,13 @@ test_link_visit_external_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } @@ -24495,7 +24367,7 @@ test_link_visit_external_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_increasing); } @@ -24505,13 +24377,13 @@ test_link_visit_external_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } @@ -24525,7 +24397,7 @@ test_link_visit_external_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing); } @@ -24535,13 +24407,13 @@ test_link_visit_external_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } @@ -24560,13 +24432,13 @@ test_link_visit_external_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } if (i != LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } @@ -24585,13 +24457,13 @@ test_link_visit_external_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } @@ -24605,7 +24477,7 @@ test_link_visit_external_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -24617,13 +24489,13 @@ test_link_visit_external_links_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -24637,7 +24509,7 @@ test_link_visit_external_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -24649,13 +24521,13 @@ test_link_visit_external_links_cycles(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -24744,9 +24616,8 @@ test_link_visit_mixed_links_cycles(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, link, hard link, soft link, external link, iterate, " - "or user defined link aren't supported with this connector\n"); + printf(" API functions for basic file, group, link, hard link, soft link, external link, iterate, " + "or user defined link aren't supported with this connector\n"); return 0; } @@ -24756,7 +24627,7 @@ test_link_visit_mixed_links_cycles(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -24765,26 +24636,26 @@ test_link_visit_mixed_links_cycles(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -24792,31 +24663,30 @@ test_link_visit_mixed_links_cycles(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME); goto error; } if ((subgroup1 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create first subgroup '%s'\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2); + printf(" couldn't create first subgroup '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2); goto error; } if ((subgroup2 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create second subgroup '%s'\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3); + printf(" couldn't create second subgroup '%s'\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3); goto error; } if (H5Lcreate_hard(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2, subgroup1, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); + printf(" couldn't create first hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); goto error; } @@ -24825,74 +24695,74 @@ test_link_visit_mixed_links_cycles(void) subgroup1, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); goto error; } if (H5Lcreate_external(ext_link_filename, "/", subgroup2, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); + printf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); goto error; } if (H5Lcreate_hard(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3, subgroup2, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create second hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); + printf(" couldn't create second hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); goto error; } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); + printf(" couldn't determine if first link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" first link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); + printf(" first link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); goto error; } if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if second link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); + printf(" couldn't determine if second link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" second link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); + printf(" second link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); goto error; } if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if third link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); + printf(" couldn't determine if third link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" third link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); + printf(" third link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); goto error; } if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if fourth link '%s' exists\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); + printf(" couldn't determine if fourth link '%s' exists\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" fourth link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); + printf(" fourth link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); goto error; } @@ -24915,13 +24785,13 @@ test_link_visit_mixed_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } if (i != LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_increasing); } @@ -24938,13 +24808,13 @@ test_link_visit_mixed_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_name_decreasing); } @@ -24958,7 +24828,7 @@ test_link_visit_mixed_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_increasing); } @@ -24968,13 +24838,13 @@ test_link_visit_mixed_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_increasing); } @@ -24988,7 +24858,7 @@ test_link_visit_mixed_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing); } @@ -24998,13 +24868,13 @@ test_link_visit_mixed_links_cycles(void) if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_cycles_link_creation_decreasing); } @@ -25022,13 +24892,13 @@ test_link_visit_mixed_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } if (i != LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing); } @@ -25047,13 +24917,13 @@ test_link_visit_mixed_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } if (i != 2 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing); } @@ -25067,7 +24937,7 @@ test_link_visit_mixed_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -25078,13 +24948,13 @@ test_link_visit_mixed_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } if (i != 3 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing); } @@ -25098,7 +24968,7 @@ test_link_visit_mixed_links_cycles(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -25109,13 +24979,13 @@ test_link_visit_mixed_links_cycles(void) file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } if (i != 4 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) { H5_FAILED(); - HDprintf(" some links were not visited!\n"); + printf(" some links were not visited!\n"); PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing); } @@ -25183,8 +25053,8 @@ test_link_visit_invalid_params(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, link, external link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, dataset, link, external link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -25194,7 +25064,7 @@ test_link_visit_invalid_params(void) if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); + printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename); goto error; } @@ -25203,35 +25073,34 @@ test_link_visit_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME); goto error; } if ((subgroup1 = H5Gcreate2(group_id, LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create first subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME2); + printf(" couldn't create first subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME2); goto error; } if ((subgroup2 = H5Gcreate2(group_id, LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME3, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create second subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME3); + printf(" couldn't create second subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME3); goto error; } @@ -25245,7 +25114,7 @@ test_link_visit_invalid_params(void) if ((dset_id = H5Dcreate2(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create first dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME); + printf(" couldn't create first dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME); } if (H5Dclose(dset_id) < 0) @@ -25254,7 +25123,7 @@ test_link_visit_invalid_params(void) if ((dset_id = H5Dcreate2(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create second dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME); + printf(" couldn't create second dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME); } if (H5Dclose(dset_id) < 0) @@ -25263,79 +25132,79 @@ test_link_visit_invalid_params(void) if (H5Lcreate_hard(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create first hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1); + printf(" couldn't create first hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1); goto error; } if (H5Lcreate_soft(LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2); goto error; } if (H5Lcreate_external(ext_link_filename, "/", subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create external link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3); + printf(" couldn't create external link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3); goto error; } if (H5Lcreate_hard(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create second hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4); + printf(" couldn't create second hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4); goto error; } /* Verify the links have been created */ if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if first link '%s' exists\n", - LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1); + printf(" couldn't determine if first link '%s' exists\n", + LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 1 did not exist\n"); + printf(" link 1 did not exist\n"); goto error; } if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if second link '%s' exists\n", - LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2); + printf(" couldn't determine if second link '%s' exists\n", + LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 2 did not exist\n"); + printf(" link 2 did not exist\n"); goto error; } if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if third link '%s' exists\n", - LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3); + printf(" couldn't determine if third link '%s' exists\n", + LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 3 did not exist\n"); + printf(" link 3 did not exist\n"); goto error; } if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if fourth link '%s' exists\n", - LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4); + printf(" couldn't determine if fourth link '%s' exists\n", + LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" link 4 did not exist\n"); + printf(" link 4 did not exist\n"); goto error; } @@ -25356,7 +25225,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 succeeded with an invalid group ID!\n"); + printf(" H5Lvisit2 succeeded with an invalid group ID!\n"); PART_ERROR(H5Lvisit_invalid_grp_id); } @@ -25377,7 +25246,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Lvisit_invalid_index_type); } @@ -25389,7 +25258,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Lvisit_invalid_index_type); } @@ -25410,7 +25279,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Lvisit_invalid_iter_order); } @@ -25422,7 +25291,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Lvisit_invalid_iter_order); } @@ -25445,7 +25314,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 succeeded with an invalid location ID!\n"); + printf(" H5Lvisit_by_name2 succeeded with an invalid location ID!\n"); PART_ERROR(H5Lvisit_by_name_invalid_loc_id); } @@ -25466,7 +25335,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 succeeded with a NULL group name!\n"); + printf(" H5Lvisit_by_name2 succeeded with a NULL group name!\n"); PART_ERROR(H5Lvisit_by_name_invalid_grp_name); } @@ -25479,7 +25348,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 succeeded with an invalid group name of ''!\n"); + printf(" H5Lvisit_by_name2 succeeded with an invalid group name of ''!\n"); PART_ERROR(H5Lvisit_by_name_invalid_grp_name); } @@ -25501,7 +25370,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Lvisit_by_name_invalid_index_type); } @@ -25515,7 +25384,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Lvisit_by_name_invalid_index_type); } @@ -25537,8 +25406,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf( - " H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Lvisit_by_name_invalid_iter_order); } @@ -25552,7 +25420,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Lvisit_by_name_invalid_iter_order); } @@ -25574,7 +25442,7 @@ test_link_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 succeeded with an invalid LAPL!\n"); + printf(" H5Lvisit_by_name2 succeeded with an invalid LAPL!\n"); PART_ERROR(H5Lvisit_by_name_invalid_lapl); } @@ -25640,8 +25508,8 @@ test_link_visit_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or link iterate aren't supported " - "with this connector\n"); + printf(" API functions for basic file, group, or link iterate aren't supported " + "with this connector\n"); return 0; } @@ -25649,26 +25517,26 @@ test_link_visit_0_links(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -25676,7 +25544,7 @@ test_link_visit_0_links(void) if ((group_id = H5Gcreate2(container_group, LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME); goto error; } @@ -25690,7 +25558,7 @@ test_link_visit_0_links(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in increasing order failed\n"); + printf(" H5Lvisit2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_0_links_name_increasing); } @@ -25704,7 +25572,7 @@ test_link_visit_0_links(void) if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_0_links_name_decreasing); } @@ -25718,13 +25586,13 @@ test_link_visit_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_0_links_creation_increasing); } if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_0_links_creation_increasing); } @@ -25738,13 +25606,13 @@ test_link_visit_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_0_links_creation_decreasing); } if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_0_links_cb, NULL) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_0_links_creation_decreasing); } @@ -25759,7 +25627,7 @@ test_link_visit_0_links(void) if (H5Lvisit_by_name2(file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, link_visit_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_0_links_name_increasing); } @@ -25774,7 +25642,7 @@ test_link_visit_0_links(void) if (H5Lvisit_by_name2(file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, link_visit_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_0_links_name_decreasing); } @@ -25788,7 +25656,7 @@ test_link_visit_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_0_links_creation_increasing); } @@ -25796,7 +25664,7 @@ test_link_visit_0_links(void) H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n"); PART_ERROR(H5Lvisit_by_name_0_links_creation_increasing); } @@ -25810,7 +25678,7 @@ test_link_visit_0_links(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Lvisit_by_name_0_links_creation_decreasing); } @@ -25818,7 +25686,7 @@ test_link_visit_0_links(void) H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_0_links_cb, NULL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); + printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n"); PART_ERROR(H5Lvisit_by_name_0_links_creation_decreasing); } @@ -25875,7 +25743,7 @@ link_iter_hard_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf if (H5L_TYPE_HARD != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); goto done; } @@ -25905,7 +25773,7 @@ link_iter_hard_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf } if (HDstrncmp(name, expected_link_name, LINK_ITER_HARD_LINKS_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -25935,7 +25803,7 @@ link_iter_soft_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf if (H5L_TYPE_SOFT != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); goto done; } @@ -25965,7 +25833,7 @@ link_iter_soft_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf } if (HDstrncmp(name, expected_link_name, LINK_ITER_SOFT_LINKS_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -25992,8 +25860,8 @@ link_iter_external_links_cb(hid_t group_id, const char *name, const H5L_info2_t if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for external links aren't supported with this " - "connector\n"); + printf(" API functions for external links aren't supported with this " + "connector\n"); return 1; } @@ -26002,7 +25870,7 @@ link_iter_external_links_cb(hid_t group_id, const char *name, const H5L_info2_t if (H5L_TYPE_EXTERNAL != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); goto done; } @@ -26032,7 +25900,7 @@ link_iter_external_links_cb(hid_t group_id, const char *name, const H5L_info2_t } if (HDstrncmp(name, expected_link_name, LINK_ITER_EXT_LINKS_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -26057,8 +25925,8 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf(" API functions for external or user-defined link aren't supported with this " - "connector\n"); + printf(" API functions for external or user-defined link aren't supported with this " + "connector\n"); return 1; } @@ -26069,7 +25937,7 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in (counter_val == 1 || counter_val == 4 || counter_val == 6 || counter_val == 11)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); } goto done; @@ -26079,7 +25947,7 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in (counter_val == 2 || counter_val == 3 || counter_val == 7 || counter_val == 10)) { if (H5L_TYPE_SOFT != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); } goto done; @@ -26089,13 +25957,13 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in (counter_val == 0 || counter_val == 5 || counter_val == 8 || counter_val == 9)) { if (H5L_TYPE_EXTERNAL != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); } goto done; } - HDprintf(" link name '%s' didn't match known names or came in an incorrect order\n", name); + printf(" link name '%s' didn't match known names or came in an incorrect order\n", name); ret_val = -1; @@ -26146,8 +26014,8 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf(" API functions for external or user-defined link aren't supported with this " - "connector\n"); + printf(" API functions for external or user-defined link aren't supported with this " + "connector\n"); return 1; } @@ -26163,7 +26031,7 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf strlen(LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME) + 1)) { if (H5L_TYPE_HARD != info->type) { H5_FAILED(); - HDprintf(" link type did not match\n"); + printf(" link type did not match\n"); goto error; } } @@ -26171,7 +26039,7 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf strlen(LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME) + 1)) { if (H5L_TYPE_SOFT != info->type) { H5_FAILED(); - HDprintf(" link type did not match\n"); + printf(" link type did not match\n"); goto error; } } @@ -26179,13 +26047,13 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf strlen(LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME) + 1)) { if (H5L_TYPE_EXTERNAL != info->type) { H5_FAILED(); - HDprintf(" link type did not match\n"); + printf(" link type did not match\n"); goto error; } } else { H5_FAILED(); - HDprintf(" link name didn't match known names\n"); + printf(" link name didn't match known names\n"); goto error; } @@ -26217,7 +26085,7 @@ link_visit_hard_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i if (H5L_TYPE_HARD != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); goto done; } @@ -26287,7 +26155,7 @@ link_visit_hard_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i } if (HDstrncmp(name, expected_link_name, LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -26324,14 +26192,14 @@ link_visit_soft_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i if (is_subgroup_link) { if (H5L_TYPE_HARD != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); goto done; } } else { if (H5L_TYPE_SOFT != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); goto done; } } @@ -26400,7 +26268,7 @@ link_visit_soft_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i } if (HDstrncmp(name, expected_link_name, LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -26431,8 +26299,8 @@ link_visit_external_links_no_cycles_cb(hid_t group_id, const char *name, const H if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for external links aren't supported with this " - "connector\n"); + printf(" API functions for external links aren't supported with this " + "connector\n"); return 1; } @@ -26445,14 +26313,14 @@ link_visit_external_links_no_cycles_cb(hid_t group_id, const char *name, const H if (is_subgroup_link) { if (H5L_TYPE_HARD != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); goto done; } } else { if (H5L_TYPE_EXTERNAL != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); goto done; } } @@ -26521,7 +26389,7 @@ link_visit_external_links_no_cycles_cb(hid_t group_id, const char *name, const H } if (HDstrncmp(name, expected_link_name, LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -26546,8 +26414,8 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf(" API functions for external or user-defined link aren't supported with this " - "connector\n"); + printf(" API functions for external or user-defined link aren't supported with this " + "connector\n"); return 1; } @@ -26563,9 +26431,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 2 || counter_val == 14 || counter_val == 18 || counter_val == 30)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2 - "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2 + "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1); } goto done; @@ -26579,9 +26447,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 3 || counter_val == 13 || counter_val == 19 || counter_val == 29)) { if (H5L_TYPE_SOFT != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2 - "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2); + printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2 + "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2); } goto done; @@ -26595,9 +26463,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 6 || counter_val == 10 || counter_val == 22 || counter_val == 26)) { if (H5L_TYPE_EXTERNAL != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3 - "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3); + printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3 + "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3); } goto done; @@ -26611,9 +26479,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 7 || counter_val == 9 || counter_val == 23 || counter_val == 25)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3 - "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3 + "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4); } goto done; @@ -26627,9 +26495,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 1 || counter_val == 15 || counter_val == 17 || counter_val == 31)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2 - "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2 + "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME); } goto done; @@ -26643,9 +26511,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 5 || counter_val == 11 || counter_val == 21 || counter_val == 27)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3 - "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3 + "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2); } goto done; @@ -26655,8 +26523,8 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 0 || counter_val == 12 || counter_val == 16 || counter_val == 28)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2); } goto done; @@ -26666,14 +26534,14 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_ (counter_val == 4 || counter_val == 8 || counter_val == 20 || counter_val == 24)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3); } goto done; } - HDprintf(" link name '%s' didn't match known names or came in an incorrect order\n", name); + printf(" link name '%s' didn't match known names or came in an incorrect order\n", name); ret_val = -1; @@ -26705,7 +26573,7 @@ link_visit_hard_links_cycles_cb(hid_t group_id, const char *name, const H5L_info if (H5L_TYPE_HARD != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); goto done; } @@ -26775,7 +26643,7 @@ link_visit_hard_links_cycles_cb(hid_t group_id, const char *name, const H5L_info } if (HDstrncmp(name, expected_link_name, LINK_VISIT_HARD_LINKS_CYCLE_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -26812,14 +26680,14 @@ link_visit_soft_links_cycles_cb(hid_t group_id, const char *name, const H5L_info if (is_subgroup_link) { if (H5L_TYPE_HARD != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); goto done; } } else { if (H5L_TYPE_SOFT != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name); goto done; } } @@ -26888,7 +26756,7 @@ link_visit_soft_links_cycles_cb(hid_t group_id, const char *name, const H5L_info } if (HDstrncmp(name, expected_link_name, LINK_VISIT_SOFT_LINKS_CYCLE_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -26918,8 +26786,8 @@ link_visit_external_links_cycles_cb(hid_t group_id, const char *name, const H5L_ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) { SKIPPED(); - HDprintf(" API functions for external links aren't supported with this " - "connector\n"); + printf(" API functions for external links aren't supported with this " + "connector\n"); return 1; } @@ -26932,14 +26800,14 @@ link_visit_external_links_cycles_cb(hid_t group_id, const char *name, const H5L_ if (is_subgroup_link) { if (H5L_TYPE_HARD != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name); goto done; } } else { if (H5L_TYPE_EXTERNAL != info->type) { ret_val = H5_ITER_ERROR; - HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); + printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name); goto done; } } @@ -27008,7 +26876,7 @@ link_visit_external_links_cycles_cb(hid_t group_id, const char *name, const H5L_ } if (HDstrncmp(name, expected_link_name, LINK_VISIT_EXT_LINKS_CYCLE_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name); ret_val = H5_ITER_ERROR; goto done; } @@ -27033,8 +26901,8 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) { SKIPPED(); - HDprintf(" API functions for external or user-defined link aren't supported with this " - "connector\n"); + printf(" API functions for external or user-defined link aren't supported with this " + "connector\n"); return 1; } @@ -27050,9 +26918,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf (counter_val == 1 || counter_val == 11 || counter_val == 13 || counter_val == 23)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2 - "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2 + "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1); } goto done; @@ -27066,9 +26934,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf (counter_val == 2 || counter_val == 10 || counter_val == 14 || counter_val == 22)) { if (H5L_TYPE_SOFT != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2 - "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); + printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2 + "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2); } goto done; @@ -27082,9 +26950,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf (counter_val == 4 || counter_val == 8 || counter_val == 16 || counter_val == 20)) { if (H5L_TYPE_EXTERNAL != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3 - "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); + printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3 + "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3); } goto done; @@ -27098,9 +26966,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf (counter_val == 5 || counter_val == 7 || counter_val == 17 || counter_val == 19)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3 - "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3 + "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4); } goto done; @@ -27110,8 +26978,8 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf (counter_val == 0 || counter_val == 9 || counter_val == 12 || counter_val == 21)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2); } goto done; @@ -27121,14 +26989,14 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf (counter_val == 3 || counter_val == 6 || counter_val == 15 || counter_val == 18)) { if (H5L_TYPE_HARD != info->type) { ret_val = -1; - HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", - LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3); + printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", + LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3); } goto done; } - HDprintf(" link name '%s' didn't match known names or came in an incorrect order\n", name); + printf(" link name '%s' didn't match known names or came in an incorrect order\n", name); ret_val = -1; @@ -27184,19 +27052,19 @@ H5_api_link_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Link Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Link Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(link_tests); i++) { nerrors += (*link_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); - HDprintf("Cleaning up testing files\n"); + printf("Cleaning up testing files\n"); cleanup_files(); return nerrors; diff --git a/test/API/H5_api_misc_test.c b/test/API/H5_api_misc_test.c index 256550b..37b98ab 100644 --- a/test/API/H5_api_misc_test.c +++ b/test/API/H5_api_misc_test.c @@ -44,20 +44,19 @@ test_open_link_without_leading_slash(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } @@ -71,7 +70,7 @@ test_open_link_without_leading_slash(void) if ((dset_id = H5Dcreate2(container_group, OPEN_LINK_WITHOUT_SLASH_DSET_NAME, dset_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); goto error; } @@ -86,20 +85,20 @@ test_open_link_without_leading_slash(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((group_id = H5Gopen2(file_id, "/", H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open root group\n"); + printf(" couldn't open root group\n"); goto error; } if ((dset_id = H5Dopen2(group_id, MISCELLANEOUS_TEST_GROUP_NAME "/" OPEN_LINK_WITHOUT_SLASH_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset\n"); + printf(" couldn't open dataset\n"); goto error; } @@ -149,8 +148,8 @@ test_object_creation_by_absolute_path(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, link, or stored datatype aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, dataset, link, or stored datatype aren't " + "supported with this connector\n"); return 0; } @@ -158,13 +157,13 @@ test_object_creation_by_absolute_path(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } @@ -172,7 +171,7 @@ test_object_creation_by_absolute_path(void) if ((group_id = H5Gcreate2(container_group, OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_CONTAINER_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group\n"); + printf(" couldn't create container group\n"); goto error; } @@ -181,13 +180,13 @@ test_object_creation_by_absolute_path(void) "/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_CONTAINER_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); goto error; } if (!link_exists) { H5_FAILED(); - HDprintf(" container group didn't exist at the correct location\n"); + printf(" container group didn't exist at the correct location\n"); goto error; } @@ -206,7 +205,7 @@ test_object_creation_by_absolute_path(void) "/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create subgroup by absolute pathname\n"); + printf(" couldn't create subgroup by absolute pathname\n"); PART_ERROR(H5Gcreate_using_absolute_path); } @@ -216,13 +215,13 @@ test_object_creation_by_absolute_path(void) "/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_SUBGROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Gcreate_using_absolute_path); } if (!link_exists) { H5_FAILED(); - HDprintf(" subgroup didn't exist at the correct location\n"); + printf(" subgroup didn't exist at the correct location\n"); PART_ERROR(H5Gcreate_using_absolute_path); } @@ -238,13 +237,13 @@ test_object_creation_by_absolute_path(void) if ((fspace_id = generate_random_dataspace(OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DSET_SPACE_RANK, NULL, NULL, FALSE)) < 0) { H5_FAILED(); - HDprintf(" failed to generate dataspace\n"); + printf(" failed to generate dataspace\n"); PART_ERROR(H5Dcreate_using_absolute_path); } if ((dset_dtype = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" failed to generate datatype\n"); + printf(" failed to generate datatype\n"); PART_ERROR(H5Dcreate_using_absolute_path); } @@ -255,7 +254,7 @@ test_object_creation_by_absolute_path(void) "/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); PART_ERROR(H5Dcreate_using_absolute_path); } @@ -266,13 +265,13 @@ test_object_creation_by_absolute_path(void) "/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Dcreate_using_absolute_path); } if (!link_exists) { H5_FAILED(); - HDprintf(" dataset didn't exist at the correct location\n"); + printf(" dataset didn't exist at the correct location\n"); PART_ERROR(H5Dcreate_using_absolute_path); } @@ -287,7 +286,7 @@ test_object_creation_by_absolute_path(void) /* Try to create a committed datatype in the same fashion as the preceding dataset */ if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); PART_ERROR(H5Tcommit_using_absolute_path); } @@ -298,7 +297,7 @@ test_object_creation_by_absolute_path(void) "/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype\n"); + printf(" couldn't commit datatype\n"); PART_ERROR(H5Tcommit_using_absolute_path); } @@ -309,13 +308,13 @@ test_object_creation_by_absolute_path(void) "/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Tcommit_using_absolute_path); } if (!link_exists) { H5_FAILED(); - HDprintf(" datatype didn't exist at the correct location\n"); + printf(" datatype didn't exist at the correct location\n"); PART_ERROR(H5Tcommit_using_absolute_path); } @@ -384,8 +383,8 @@ test_absolute_vs_relative_path(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, dataset, or link aren't supported with this " + "connector\n"); return 0; } @@ -393,13 +392,13 @@ test_absolute_vs_relative_path(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } @@ -407,7 +406,7 @@ test_absolute_vs_relative_path(void) if ((group_id = H5Gcreate2(container_group, ABSOLUTE_VS_RELATIVE_PATH_TEST_CONTAINER_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container group\n"); + printf(" couldn't create container group\n"); goto error; } @@ -443,7 +442,7 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET1_NAME, dset_dtype1, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset by absolute path from root\n"); + printf(" couldn't create dataset by absolute path from root\n"); PART_ERROR(H5Dcreate_absolute_from_root); } @@ -453,13 +452,13 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET1_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Dcreate_absolute_from_root); } if (!link_exists) { H5_FAILED(); - HDprintf(" didn't exist at the correct location\n"); + printf(" didn't exist at the correct location\n"); PART_ERROR(H5Dcreate_absolute_from_root); } @@ -479,7 +478,7 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET4_NAME, dset_dtype4, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset by absolute path from container group\n"); + printf(" couldn't create dataset by absolute path from container group\n"); PART_ERROR(H5Dcreate_absolute_from_nonroot); } @@ -489,13 +488,13 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET4_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Dcreate_absolute_from_nonroot); } if (!link_exists) { H5_FAILED(); - HDprintf(" didn't exist at the correct location\n"); + printf(" didn't exist at the correct location\n"); PART_ERROR(H5Dcreate_absolute_from_nonroot); } @@ -523,7 +522,7 @@ test_absolute_vs_relative_path(void) if ((dset_id5 = H5Dcreate2(group_id, ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET5_NAME, dset_dtype5, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset by relative path from container group\n"); + printf(" couldn't create dataset by relative path from container group\n"); PART_ERROR(H5Dcreate_relative_from_nonroot); } @@ -534,7 +533,7 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET2_NAME, dset_dtype2, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset by relative path from container group\n"); + printf(" couldn't create dataset by relative path from container group\n"); PART_ERROR(H5Dcreate_relative_from_nonroot); } @@ -544,13 +543,13 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET2_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Dcreate_relative_from_nonroot); } if (!link_exists) { H5_FAILED(); - HDprintf(" didn't exist at the correct location\n"); + printf(" didn't exist at the correct location\n"); PART_ERROR(H5Dcreate_relative_from_nonroot); } @@ -560,13 +559,13 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET5_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Dcreate_relative_from_nonroot); } if (!link_exists) { H5_FAILED(); - HDprintf(" didn't exist at the correct location\n"); + printf(" didn't exist at the correct location\n"); PART_ERROR(H5Dcreate_relative_from_nonroot); } @@ -585,7 +584,7 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET3_NAME, dset_dtype3, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset by relative path from root with leading '.'\n"); + printf(" couldn't create dataset by relative path from root with leading '.'\n"); PART_ERROR(H5Dcreate_relative_leading_dot_root); } @@ -595,13 +594,13 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET3_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Dcreate_relative_leading_dot_root); } if (!link_exists) { H5_FAILED(); - HDprintf(" didn't exist at the correct location\n"); + printf(" didn't exist at the correct location\n"); PART_ERROR(H5Dcreate_relative_leading_dot_root); } @@ -617,7 +616,7 @@ test_absolute_vs_relative_path(void) if ((dset_id6 = H5Dcreate2(group_id, "./" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET6_NAME, dset_dtype6, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf( + printf( " couldn't create dataset by relative path from container group with leading '.'\n"); PART_ERROR(H5Dcreate_relative_leading_dot_nonroot); } @@ -628,13 +627,13 @@ test_absolute_vs_relative_path(void) "/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET6_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link exists\n"); + printf(" couldn't determine if link exists\n"); PART_ERROR(H5Dcreate_relative_leading_dot_nonroot); } if (!link_exists) { H5_FAILED(); - HDprintf(" didn't exist at the correct location\n"); + printf(" didn't exist at the correct location\n"); PART_ERROR(H5Dcreate_relative_leading_dot_nonroot); } @@ -729,8 +728,8 @@ test_dot_for_object_name(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, or stored datatype aren't supported with " - "this connector\n"); + printf(" API functions for basic file, group, dataset, or stored datatype aren't supported with " + "this connector\n"); return 0; } @@ -738,26 +737,26 @@ test_dot_for_object_name(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", MISCELLANEOUS_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", MISCELLANEOUS_TEST_GROUP_NAME); goto error; } if ((subgroup_id = H5Gcreate2(container_group, DOT_AS_OBJECT_NAME_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", DOT_AS_OBJECT_NAME_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", DOT_AS_OBJECT_NAME_TEST_SUBGROUP_NAME); goto error; } if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) { H5_FAILED(); - HDprintf(" couldn't create data space\n"); + printf(" couldn't create data space\n"); goto error; } @@ -778,7 +777,7 @@ test_dot_for_object_name(void) if (group_id >= 0) { H5_FAILED(); - HDprintf(" a group was created with '.' as the name!\n"); + printf(" a group was created with '.' as the name!\n"); PART_ERROR(H5Gcreate_dot_as_name); } @@ -800,7 +799,7 @@ test_dot_for_object_name(void) if (dset_id >= 0) { H5_FAILED(); - HDprintf(" a dataset was created with '.' as the name!\n"); + printf(" a dataset was created with '.' as the name!\n"); PART_ERROR(H5Dcreate_dot_as_name); } @@ -814,7 +813,7 @@ test_dot_for_object_name(void) if ((dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) { H5_FAILED(); - HDprintf(" couldn't copy a native datatype\n"); + printf(" couldn't copy a native datatype\n"); PART_ERROR(H5Tcommit_dot_as_name); } @@ -827,13 +826,13 @@ test_dot_for_object_name(void) if (ret >= 0) { H5_FAILED(); - HDprintf(" a named datatype was committed with '.' as the name!\n"); + printf(" a named datatype was committed with '.' as the name!\n"); PART_ERROR(H5Tcommit_dot_as_name); } if (H5Tclose(dtype_id) < 0) { H5_FAILED(); - HDprintf(" failed to close datatype\n"); + printf(" failed to close datatype\n"); PART_ERROR(H5Tcommit_dot_as_name); } @@ -918,8 +917,7 @@ test_symbols_in_compound_field_name(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or dataset aren't supported with this connector\n"); + printf(" API functions for basic file, group, or dataset aren't supported with this connector\n"); return 0; } @@ -928,20 +926,20 @@ test_symbols_in_compound_field_name(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file\n"); + printf(" couldn't open file\n"); goto error; } if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group\n"); + printf(" couldn't open container group\n"); goto error; } if ((group_id = H5Gcreate2(container_group, COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group\n"); + printf(" couldn't create container sub-group\n"); goto error; } @@ -962,14 +960,14 @@ test_symbols_in_compound_field_name(void) if ((compound_type = H5Tcreate(H5T_COMPOUND, total_type_size)) < 0) { H5_FAILED(); - HDprintf(" couldn't create compound datatype\n"); + printf(" couldn't create compound datatype\n"); goto error; } for (i = 0, next_offset = 0; i < COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_TEST_NUM_SUBTYPES; i++) { if (H5Tinsert(compound_type, member_names[i], next_offset, type_pool[i]) < 0) { H5_FAILED(); - HDprintf(" couldn't insert compound member %zu\n", i); + printf(" couldn't insert compound member %zu\n", i); goto error; } @@ -986,7 +984,7 @@ test_symbols_in_compound_field_name(void) if ((dset_id = H5Dcreate2(group_id, COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_TEST_DSET_NAME, compound_type, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset\n"); + printf(" couldn't create dataset\n"); goto error; } @@ -996,7 +994,7 @@ test_symbols_in_compound_field_name(void) if ((dset_id = H5Dopen2(group_id, COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset\n"); + printf(" failed to open dataset\n"); goto error; } @@ -1044,17 +1042,17 @@ H5_api_misc_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Miscellaneous Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Miscellaneous Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(misc_tests); i++) { nerrors += (*misc_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); return nerrors; } diff --git a/test/API/H5_api_object_test.c b/test/API/H5_api_object_test.c index 8055ad9..268e65c 100644 --- a/test/API/H5_api_object_test.c +++ b/test/API/H5_api_object_test.c @@ -126,27 +126,27 @@ test_open_object(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, dataset, or stored datatype aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, object, dataset, or stored datatype aren't " + "supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME); goto error; } @@ -167,7 +167,7 @@ test_open_object(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_OPEN_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_OPEN_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_OPEN_TEST_GRP_NAME); PART_ERROR(H5Oopen_group); } @@ -179,19 +179,19 @@ test_open_object(void) if ((group_id2 = H5Oopen(group_id, OBJECT_OPEN_TEST_GRP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group '%s' with H5Oopen\n", OBJECT_OPEN_TEST_GRP_NAME); + printf(" couldn't open group '%s' with H5Oopen\n", OBJECT_OPEN_TEST_GRP_NAME); PART_ERROR(H5Oopen_group); } if (H5Iget_type(group_id2) != H5I_GROUP) { H5_FAILED(); - HDprintf(" ID is not a group\n"); + printf(" ID is not a group\n"); PART_ERROR(H5Oopen_group); } if (H5Gclose(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't close group opened with H5Oopen\n"); + printf(" couldn't close group opened with H5Oopen\n"); PART_ERROR(H5Oopen_group); } @@ -206,7 +206,7 @@ test_open_object(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_OPEN_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_OPEN_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_OPEN_TEST_DSET_NAME); PART_ERROR(H5Oopen_dset); } @@ -218,19 +218,19 @@ test_open_object(void) if ((dset_id = H5Oopen(group_id, OBJECT_OPEN_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_OPEN_TEST_DSET_NAME); + printf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_OPEN_TEST_DSET_NAME); PART_ERROR(H5Oopen_dset); } if (H5Iget_type(dset_id) != H5I_DATASET) { H5_FAILED(); - HDprintf(" ID is not a dataset\n"); + printf(" ID is not a dataset\n"); PART_ERROR(H5Oopen_dset); } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close dataset opened with H5Oopen\n"); + printf(" couldn't close dataset opened with H5Oopen\n"); PART_ERROR(H5Oopen_dset); } @@ -244,14 +244,14 @@ test_open_object(void) if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME); + printf(" couldn't create datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME); PART_ERROR(H5Oopen_dtype); } if (H5Tcommit2(group_id, OBJECT_OPEN_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME); PART_ERROR(H5Oopen_dtype); } @@ -263,19 +263,19 @@ test_open_object(void) if ((type_id = H5Oopen(group_id, OBJECT_OPEN_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_OPEN_TEST_TYPE_NAME); + printf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_OPEN_TEST_TYPE_NAME); PART_ERROR(H5Oopen_dtype); } if (H5Iget_type(type_id) != H5I_DATATYPE) { H5_FAILED(); - HDprintf(" ID is not a dataset\n"); + printf(" ID is not a dataset\n"); PART_ERROR(H5Oopen_dtype); } if (H5Tclose(type_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close committed datatype opened with H5Oopen\n"); + printf(" couldn't close committed datatype opened with H5Oopen\n"); PART_ERROR(H5Oopen_dtype); } @@ -315,7 +315,7 @@ test_open_object(void) if ((group_id2 = H5Oopen_by_idx(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 1, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_GRP_NAME); + printf(" couldn't open group '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_GRP_NAME); PART_ERROR(H5Oopen_by_idx_group); } @@ -330,7 +330,7 @@ test_open_object(void) if ((dset_id = H5Oopen_by_idx(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_DSET_NAME); + printf(" couldn't open dataset '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_DSET_NAME); PART_ERROR(H5Oopen_by_idx_dset); } @@ -345,8 +345,8 @@ test_open_object(void) if ((type_id = H5Oopen_by_idx(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, 2, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open committed datatype '%s' with H5Oopen_by_idx\n", - OBJECT_OPEN_TEST_TYPE_NAME); + printf(" couldn't open committed datatype '%s' with H5Oopen_by_idx\n", + OBJECT_OPEN_TEST_TYPE_NAME); PART_ERROR(H5Oopen_by_idx_dtype); } @@ -434,8 +434,8 @@ test_open_object_invalid_params(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or object aren't supported with " - "this connector\n"); + printf(" API functions for basic file, group, or object aren't supported with " + "this connector\n"); return 0; } @@ -443,26 +443,26 @@ test_open_object_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -470,15 +470,14 @@ test_open_object_invalid_params(void) if ((group_id = H5Gcreate2(container_group, OBJECT_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - OBJECT_OPEN_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } if ((group_id2 = H5Gcreate2(group_id, OBJECT_OPEN_INVALID_PARAMS_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_OPEN_INVALID_PARAMS_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_OPEN_INVALID_PARAMS_TEST_GRP_NAME); goto error; } @@ -501,7 +500,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen succeeded with an invalid location ID!\n"); + printf(" H5Oopen succeeded with an invalid location ID!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_invalid_loc_id); } @@ -522,7 +521,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen succeeded with a NULL object name!\n"); + printf(" H5Oopen succeeded with a NULL object name!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_invalid_obj_name); } @@ -535,7 +534,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen succeeded with an invalid object name of ''!\n"); + printf(" H5Oopen succeeded with an invalid object name of ''!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_invalid_obj_name); } @@ -556,7 +555,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen succeeded with an invalid LAPL!\n"); + printf(" H5Oopen succeeded with an invalid LAPL!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_invalid_lapl); } @@ -578,7 +577,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_idx succeeded with an invalid location ID!\n"); + printf(" H5Oopen_by_idx succeeded with an invalid location ID!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_loc_id); } @@ -599,7 +598,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_idx succeeded with a NULL group name!\n"); + printf(" H5Oopen_by_idx succeeded with a NULL group name!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_grp_name); } @@ -612,7 +611,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_idx succeeded with an invalid group name of ''!\n"); + printf(" H5Oopen_by_idx succeeded with an invalid group name of ''!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_grp_name); } @@ -634,7 +633,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_index_type); } @@ -648,7 +647,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_N!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_index_type); } @@ -670,8 +669,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf( - " H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_UNKNOWN!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_iter_order); } @@ -685,7 +683,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_N!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_iter_order); } @@ -707,7 +705,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_idx succeeded with an invalid LAPL!\n"); + printf(" H5Oopen_by_idx succeeded with an invalid LAPL!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_idx_invalid_lapl); } @@ -728,7 +726,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_token succeeded with an invalid location ID!\n"); + printf(" H5Oopen_by_token succeeded with an invalid location ID!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_token_invalid_loc_id); } @@ -749,7 +747,7 @@ test_open_object_invalid_params(void) if (group_id2 >= 0) { H5_FAILED(); - HDprintf(" H5Oopen_by_token succeeded with an invalid token!\n"); + printf(" H5Oopen_by_token succeeded with an invalid token!\n"); H5Gclose(group_id2); PART_ERROR(H5Oopen_by_token_invalid_token); } @@ -812,8 +810,8 @@ test_object_exists(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, dataset, stored datatype or soft link " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, dataset, stored datatype or soft link " + "aren't supported with this connector\n"); return 0; } @@ -821,20 +819,20 @@ test_object_exists(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_EXISTS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_EXISTS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_EXISTS_TEST_SUBGROUP_NAME); goto error; } @@ -859,25 +857,25 @@ test_object_exists(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_EXISTS_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_EXISTS_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_EXISTS_TEST_GRP_NAME); PART_ERROR(H5Oexists_by_name_group); } if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_GRP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_GRP_NAME); + printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_GRP_NAME); PART_ERROR(H5Oexists_by_name_group); } if (!object_exists) { H5_FAILED(); - HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_GRP_NAME); + printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_GRP_NAME); PART_ERROR(H5Oexists_by_name_group); } if (H5Gclose(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't close group\n"); + printf(" couldn't close group\n"); PART_ERROR(H5Oexists_by_name_group); } @@ -892,26 +890,26 @@ test_object_exists(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_EXISTS_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_EXISTS_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_EXISTS_TEST_DSET_NAME); PART_ERROR(H5Oexists_by_name_dset); } if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_DSET_NAME); + printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_DSET_NAME); PART_ERROR(H5Oexists_by_name_dset); } if (!object_exists) { H5_FAILED(); - HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_DSET_NAME); + printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_DSET_NAME); PART_ERROR(H5Oexists_by_name_dset); } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close dataset\n"); + printf(" couldn't close dataset\n"); PART_ERROR(H5Oexists_by_name_dset); } @@ -925,33 +923,33 @@ test_object_exists(void) if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME); + printf(" couldn't create datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME); PART_ERROR(H5Oexists_by_name_dtype); } if (H5Tcommit2(group_id, OBJECT_EXISTS_TEST_TYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME); PART_ERROR(H5Oexists_by_name_dtype); } if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_TYPE_NAME); + printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_TYPE_NAME); PART_ERROR(H5Oexists_by_name_dtype); } if (!object_exists) { H5_FAILED(); - HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_TYPE_NAME); + printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_TYPE_NAME); PART_ERROR(H5Oexists_by_name_dtype); } if (H5Tclose(dtype_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); PART_ERROR(H5Oexists_by_name_dtype); } @@ -966,20 +964,20 @@ test_object_exists(void) if (H5Lcreate_soft("/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME, group_id, OBJECT_EXISTS_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME); + printf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME); PART_ERROR(H5Oexists_by_name_soft_link); } if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME); + printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME); PART_ERROR(H5Oexists_by_name_soft_link); } if (!object_exists) { H5_FAILED(); - HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME); + printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME); PART_ERROR(H5Oexists_by_name_soft_link); } @@ -995,22 +993,22 @@ test_object_exists(void) "/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME "/non_existent_object", group_id, OBJECT_EXISTS_TEST_DANGLING_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_DANGLING_LINK_NAME); + printf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_DANGLING_LINK_NAME); PART_ERROR(H5Oexists_by_name_dangling_soft_link); } if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_DANGLING_LINK_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if object '%s' exists\n", - "/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME - "/non_existent_object"); + printf(" couldn't determine if object '%s' exists\n", + "/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME + "/non_existent_object"); PART_ERROR(H5Oexists_by_name_dangling_soft_link); } if (object_exists) { H5_FAILED(); - HDprintf(" object pointed to by dangling soft link should not have existed!\n"); + printf(" object pointed to by dangling soft link should not have existed!\n"); PART_ERROR(H5Oexists_by_name_dangling_soft_link); } @@ -1072,7 +1070,7 @@ test_object_exists_invalid_params(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or object aren't supported with this connector\n"); + printf(" API functions for basic file, group, or object aren't supported with this connector\n"); return 0; } @@ -1080,28 +1078,28 @@ test_object_exists_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_EXISTS_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - OBJECT_EXISTS_INVALID_PARAMS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + OBJECT_EXISTS_INVALID_PARAMS_TEST_SUBGROUP_NAME); goto error; } if ((group_id2 = H5Gcreate2(group_id, OBJECT_EXISTS_INVALID_PARAMS_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_EXISTS_INVALID_PARAMS_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_EXISTS_INVALID_PARAMS_TEST_GRP_NAME); goto error; } @@ -1125,7 +1123,7 @@ test_object_exists_invalid_params(void) if (object_exists >= 0) { H5_FAILED(); - HDprintf(" H5Oexists_by_name succeeded with an invalid location ID!\n"); + printf(" H5Oexists_by_name succeeded with an invalid location ID!\n"); PART_ERROR(H5Oexists_by_name_invalid_loc_id); } @@ -1145,7 +1143,7 @@ test_object_exists_invalid_params(void) if (object_exists >= 0) { H5_FAILED(); - HDprintf(" H5Oexists_by_name succeeded with a NULL object name!\n"); + printf(" H5Oexists_by_name succeeded with a NULL object name!\n"); PART_ERROR(H5Oexists_by_name_invalid_obj_name); } @@ -1157,7 +1155,7 @@ test_object_exists_invalid_params(void) if (object_exists >= 0) { H5_FAILED(); - HDprintf(" H5Oexists_by_name succeeded with an invalid object name of ''!\n"); + printf(" H5Oexists_by_name succeeded with an invalid object name of ''!\n"); PART_ERROR(H5Oexists_by_name_invalid_obj_name); } @@ -1178,7 +1176,7 @@ test_object_exists_invalid_params(void) if (object_exists >= 0) { H5_FAILED(); - HDprintf(" H5Oexists_by_name succeeded with an invalid LAPL!\n"); + printf(" H5Oexists_by_name succeeded with an invalid LAPL!\n"); PART_ERROR(H5Oexists_by_name_invalid_lapl); } @@ -1263,8 +1261,8 @@ test_link_object(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, dataset, or stored datatype aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, object, dataset, or stored datatype aren't " + "supported with this connector\n"); return 0; } @@ -1272,20 +1270,20 @@ test_link_object(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME); goto error; } @@ -1305,13 +1303,13 @@ test_link_object(void) if ((group_id2 = H5Gcreate_anon(group_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create an anonymous group\n"); + printf(" couldn't create an anonymous group\n"); PART_ERROR(H5Olink_group); } if (H5Olink(group_id2, group_id, OBJECT_LINK_TEST_GROUP_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't link the anonymous group\n"); + printf(" couldn't link the anonymous group\n"); PART_ERROR(H5Olink_group); } @@ -1325,13 +1323,13 @@ test_link_object(void) if ((dset_id = H5Dcreate_anon(group_id, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create an anonymous dataset\n"); + printf(" couldn't create an anonymous dataset\n"); PART_ERROR(H5Olink_dataset); } if (H5Olink(dset_id, group_id, OBJECT_LINK_TEST_DSET_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't link the anonymous dataset\n"); + printf(" couldn't link the anonymous dataset\n"); PART_ERROR(H5Olink_dataset); } @@ -1345,13 +1343,13 @@ test_link_object(void) if (H5Tcommit_anon(group_id, dset_dtype, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create an anonymous datatype\n"); + printf(" couldn't create an anonymous datatype\n"); PART_ERROR(H5Olink_datatype); } if (H5Olink(dset_dtype, group_id, OBJECT_LINK_TEST_DTYPE_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't link the anonymous datatype\n"); + printf(" couldn't link the anonymous datatype\n"); PART_ERROR(H5Olink_datatype); } @@ -1418,7 +1416,7 @@ test_link_object_invalid_params(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or object aren't supported with this connector\n"); + printf(" API functions for basic file, group, or object aren't supported with this connector\n"); return 0; } @@ -1426,26 +1424,26 @@ test_link_object_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME); goto error; } if ((group_id2 = H5Gcreate_anon(group_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create an anonymous group\n"); + printf(" couldn't create an anonymous group\n"); goto error; } @@ -1466,7 +1464,7 @@ test_link_object_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Olink succeeded with an invalid object ID!\n"); + printf(" H5Olink succeeded with an invalid object ID!\n"); PART_ERROR(H5Olink_invalid_object_id); } @@ -1487,7 +1485,7 @@ test_link_object_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Olink succeeded with an invalid location ID!\n"); + printf(" H5Olink succeeded with an invalid location ID!\n"); PART_ERROR(H5Olink_invalid_location); } @@ -1507,7 +1505,7 @@ test_link_object_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Olink succeeded with NULL as the object name!\n"); + printf(" H5Olink succeeded with NULL as the object name!\n"); PART_ERROR(H5Olink_invalid_name); } @@ -1519,7 +1517,7 @@ test_link_object_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Olink succeeded with an invalid object name of ''!\n"); + printf(" H5Olink succeeded with an invalid object name of ''!\n"); PART_ERROR(H5Olink_invalid_name); } @@ -1540,7 +1538,7 @@ test_link_object_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Olink succeeded with an invalid LCPL!\n"); + printf(" H5Olink succeeded with an invalid LCPL!\n"); PART_ERROR(H5Olink_invalid_lcpl); } @@ -1561,7 +1559,7 @@ test_link_object_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Olink succeeded with an invalid LAPL!\n"); + printf(" H5Olink succeeded with an invalid LAPL!\n"); PART_ERROR(H5Olink_invalid_lapl); } @@ -1621,8 +1619,8 @@ test_incr_decr_object_refcount(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, dataset, stored datatype, or object " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, dataset, stored datatype, or object " + "aren't supported with this connector\n"); return 0; } @@ -1630,20 +1628,20 @@ test_incr_decr_object_refcount(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_REF_COUNT_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_REF_COUNT_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_REF_COUNT_TEST_SUBGROUP_NAME); goto error; } @@ -1664,15 +1662,15 @@ test_incr_decr_object_refcount(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_REF_COUNT_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_REF_COUNT_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_REF_COUNT_TEST_GRP_NAME); PART_ERROR(H5Oincr_decr_refcount_group); } /* Increment the reference count */ if (H5Oincr_refcount(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't increment reference count for the group '%s' \n", - OBJECT_REF_COUNT_TEST_GRP_NAME); + printf(" couldn't increment reference count for the group '%s' \n", + OBJECT_REF_COUNT_TEST_GRP_NAME); PART_ERROR(H5Oincr_decr_refcount_group); } @@ -1680,23 +1678,23 @@ test_incr_decr_object_refcount(void) if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_GRP_NAME, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get reference count for the group '%s' \n", - OBJECT_REF_COUNT_TEST_GRP_NAME); + printf(" couldn't get reference count for the group '%s' \n", + OBJECT_REF_COUNT_TEST_GRP_NAME); PART_ERROR(H5Oincr_decr_refcount_group); } if (oinfo.rc != 2) { H5_FAILED(); - HDprintf(" the reference count for the group '%s' isn't 2: %d\n", - OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc); + printf(" the reference count for the group '%s' isn't 2: %d\n", + OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc); PART_ERROR(H5Oincr_decr_refcount_group); } /* Decrement the reference count */ if (H5Odecr_refcount(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't decrement reference count for the group '%s' \n", - OBJECT_REF_COUNT_TEST_GRP_NAME); + printf(" couldn't decrement reference count for the group '%s' \n", + OBJECT_REF_COUNT_TEST_GRP_NAME); PART_ERROR(H5Oincr_decr_refcount_group); } @@ -1704,21 +1702,21 @@ test_incr_decr_object_refcount(void) if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_GRP_NAME, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get reference count for the group '%s' \n", - OBJECT_REF_COUNT_TEST_GRP_NAME); + printf(" couldn't get reference count for the group '%s' \n", + OBJECT_REF_COUNT_TEST_GRP_NAME); PART_ERROR(H5Oincr_decr_refcount_group); } if (oinfo.rc != 1) { H5_FAILED(); - HDprintf(" the reference count for the group '%s' isn't 1: %d\n", - OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc); + printf(" the reference count for the group '%s' isn't 1: %d\n", + OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc); PART_ERROR(H5Oincr_decr_refcount_group); } if (H5Gclose(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't close group\n"); + printf(" couldn't close group\n"); PART_ERROR(H5Oincr_decr_refcount_group); } @@ -1733,15 +1731,15 @@ test_incr_decr_object_refcount(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_REF_COUNT_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_REF_COUNT_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_REF_COUNT_TEST_DSET_NAME); PART_ERROR(H5Oincr_decr_refcount_dset); } /* Increment the reference count */ if (H5Oincr_refcount(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't increment reference count for the dataset '%s' \n", - OBJECT_REF_COUNT_TEST_DSET_NAME); + printf(" couldn't increment reference count for the dataset '%s' \n", + OBJECT_REF_COUNT_TEST_DSET_NAME); PART_ERROR(H5Oincr_decr_refcount_dset); } @@ -1749,23 +1747,23 @@ test_incr_decr_object_refcount(void) if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_DSET_NAME, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get reference count for the dataset '%s' \n", - OBJECT_REF_COUNT_TEST_DSET_NAME); + printf(" couldn't get reference count for the dataset '%s' \n", + OBJECT_REF_COUNT_TEST_DSET_NAME); PART_ERROR(H5Oincr_decr_refcount_dset); } if (oinfo.rc != 2) { H5_FAILED(); - HDprintf(" the reference count for the dataset '%s' isn't 2: %d\n", - OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc); + printf(" the reference count for the dataset '%s' isn't 2: %d\n", + OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc); PART_ERROR(H5Oincr_decr_refcount_dset); } /* Decrement the reference count */ if (H5Odecr_refcount(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't decrement reference count for the dataset '%s' \n", - OBJECT_REF_COUNT_TEST_DSET_NAME); + printf(" couldn't decrement reference count for the dataset '%s' \n", + OBJECT_REF_COUNT_TEST_DSET_NAME); PART_ERROR(H5Oincr_decr_refcount_dset); } @@ -1773,21 +1771,21 @@ test_incr_decr_object_refcount(void) if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_DSET_NAME, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get reference count for the dataset '%s' \n", - OBJECT_REF_COUNT_TEST_DSET_NAME); + printf(" couldn't get reference count for the dataset '%s' \n", + OBJECT_REF_COUNT_TEST_DSET_NAME); PART_ERROR(H5Oincr_decr_refcount_dset); } if (oinfo.rc != 1) { H5_FAILED(); - HDprintf(" the reference count for the dataset '%s' isn't 1: %d\n", - OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc); + printf(" the reference count for the dataset '%s' isn't 1: %d\n", + OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc); PART_ERROR(H5Oincr_decr_refcount_dset); } if (H5Dclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close dataset\n"); + printf(" couldn't close dataset\n"); PART_ERROR(H5Oincr_decr_refcount_dset); } @@ -1802,15 +1800,15 @@ test_incr_decr_object_refcount(void) if (H5Tcommit2(group_id, OBJECT_REF_COUNT_TEST_TYPE_NAME, dset_dtype, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_REF_COUNT_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_REF_COUNT_TEST_TYPE_NAME); PART_ERROR(H5Oincr_decr_refcount_dtype); } /* Increment the reference count */ if (H5Oincr_refcount(dset_dtype) < 0) { H5_FAILED(); - HDprintf(" couldn't increment reference count for the datatype '%s' \n", - OBJECT_REF_COUNT_TEST_TYPE_NAME); + printf(" couldn't increment reference count for the datatype '%s' \n", + OBJECT_REF_COUNT_TEST_TYPE_NAME); PART_ERROR(H5Oincr_decr_refcount_dtype); } @@ -1818,23 +1816,23 @@ test_incr_decr_object_refcount(void) if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_TYPE_NAME, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get reference count for the datatype '%s' \n", - OBJECT_REF_COUNT_TEST_TYPE_NAME); + printf(" couldn't get reference count for the datatype '%s' \n", + OBJECT_REF_COUNT_TEST_TYPE_NAME); PART_ERROR(H5Oincr_decr_refcount_dtype); } if (oinfo.rc != 2) { H5_FAILED(); - HDprintf(" the reference count for the datatype '%s' isn't 2: %d\n", - OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc); + printf(" the reference count for the datatype '%s' isn't 2: %d\n", + OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc); PART_ERROR(H5Oincr_decr_refcount_dtype); } /* Decrement the reference count */ if (H5Odecr_refcount(dset_dtype) < 0) { H5_FAILED(); - HDprintf(" couldn't decrement reference count for the datatype '%s' \n", - OBJECT_REF_COUNT_TEST_TYPE_NAME); + printf(" couldn't decrement reference count for the datatype '%s' \n", + OBJECT_REF_COUNT_TEST_TYPE_NAME); PART_ERROR(H5Oincr_decr_refcount_dtype); } @@ -1842,21 +1840,21 @@ test_incr_decr_object_refcount(void) if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_TYPE_NAME, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't get reference count for the datatype '%s' \n", - OBJECT_REF_COUNT_TEST_TYPE_NAME); + printf(" couldn't get reference count for the datatype '%s' \n", + OBJECT_REF_COUNT_TEST_TYPE_NAME); PART_ERROR(H5Oincr_decr_refcount_dtype); } if (oinfo.rc != 1) { H5_FAILED(); - HDprintf(" the reference count for the datatype '%s' isn't 1: %d\n", - OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc); + printf(" the reference count for the datatype '%s' isn't 1: %d\n", + OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc); PART_ERROR(H5Oincr_decr_refcount_dtype); } if (H5Tclose(dset_dtype) < 0) { H5_FAILED(); - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); PART_ERROR(H5Oincr_decr_refcount_dtype); } @@ -1911,7 +1909,7 @@ test_incr_decr_object_refcount_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) { SKIPPED(); - HDprintf(" API functions for more object aren't supported with this connector\n"); + printf(" API functions for more object aren't supported with this connector\n"); return 0; } @@ -1929,7 +1927,7 @@ test_incr_decr_object_refcount_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" incremented the reference count for an invalid object ID\n"); + printf(" incremented the reference count for an invalid object ID\n"); PART_ERROR(H5Oincr_refcount_invalid_param); } @@ -1949,7 +1947,7 @@ test_incr_decr_object_refcount_invalid_params(void) if (status >= 0) { H5_FAILED(); - HDprintf(" decremented the reference count for an invalid object ID\n"); + printf(" decremented the reference count for an invalid object ID\n"); PART_ERROR(H5Odecr_refcount_invalid_param); } @@ -1998,8 +1996,8 @@ test_object_copy_basic(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or " - "stored datatype aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or " + "stored datatype aren't supported with this connector\n"); return 0; } @@ -2007,20 +2005,20 @@ test_object_copy_basic(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_BASIC_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_BASIC_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_BASIC_TEST_SUBGROUP_NAME); goto error; } @@ -2036,7 +2034,7 @@ test_object_copy_basic(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_BASIC_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME); goto error; } @@ -2047,8 +2045,8 @@ test_object_copy_basic(void) if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name, - OBJECT_COPY_BASIC_TEST_GROUP_NAME); + printf(" couldn't create group '%s' under group '%s'\n", grp_name, + OBJECT_COPY_BASIC_TEST_GROUP_NAME); goto error; } @@ -2057,15 +2055,15 @@ test_object_copy_basic(void) if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create nested group '%s' under group '%s'\n", - OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME, grp_name); + printf(" couldn't create nested group '%s' under group '%s'\n", + OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME, grp_name); goto error; } } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", grp_name); + printf(" couldn't close group '%s'\n", grp_name); goto error; } } @@ -2078,14 +2076,14 @@ test_object_copy_basic(void) if ((tmp_attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name, - OBJECT_COPY_BASIC_TEST_GROUP_NAME); + printf(" couldn't create attribute '%s' on group '%s'\n", attr_name, + OBJECT_COPY_BASIC_TEST_GROUP_NAME); goto error; } if (H5Aclose(tmp_attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -2094,7 +2092,7 @@ test_object_copy_basic(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_BASIC_TEST_DSET_NAME, dset_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME); goto error; } @@ -2106,14 +2104,14 @@ test_object_copy_basic(void) if ((tmp_attr_id = H5Acreate2(dset_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name, - OBJECT_COPY_BASIC_TEST_DSET_NAME); + printf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name, + OBJECT_COPY_BASIC_TEST_DSET_NAME); goto error; } if (H5Aclose(tmp_attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -2121,14 +2119,14 @@ test_object_copy_basic(void) /* Create the test committed datatype object, along with the attributes attached to it. */ if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, OBJECT_COPY_BASIC_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME); goto error; } @@ -2140,14 +2138,14 @@ test_object_copy_basic(void) if ((tmp_attr_id = H5Acreate2(dtype_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name, - OBJECT_COPY_BASIC_TEST_DTYPE_NAME); + printf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name, + OBJECT_COPY_BASIC_TEST_DTYPE_NAME); goto error; } if (H5Aclose(tmp_attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -2163,30 +2161,30 @@ test_object_copy_basic(void) if (H5Ocopy(group_id, OBJECT_COPY_BASIC_TEST_GROUP_NAME, group_id, OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME, - OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); + printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME, + OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group); } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied group exists\n", - OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); + printf(" couldn't determine if link '%s' to copied group exists\n", + OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied group didn't exist!\n", - OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); + printf(" link '%s' to copied group didn't exist!\n", + OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group); } /* Ensure that the new group has all the members of the copied group, and all its attributes */ if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); + printf(" failed to open group copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group); } @@ -2200,14 +2198,14 @@ test_object_copy_basic(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); PART_ERROR(H5Ocopy_group); } if (group_info.nlinks != OBJECT_COPY_BASIC_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf(" copied group contained %d members instead of %d members after a deep copy!\n", - (int)group_info.nlinks, OBJECT_COPY_BASIC_TEST_NUM_NESTED_OBJS); + printf(" copied group contained %d members instead of %d members after a deep copy!\n", + (int)group_info.nlinks, OBJECT_COPY_BASIC_TEST_NUM_NESTED_OBJS); PART_ERROR(H5Ocopy_group); } @@ -2221,13 +2219,13 @@ test_object_copy_basic(void) if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_group); } if (object_info.num_attrs == 0) { H5_FAILED(); - HDprintf(" copied group didn't contain any attributes after copy operation!\n"); + printf(" copied group didn't contain any attributes after copy operation!\n"); PART_ERROR(H5Ocopy_group); } @@ -2236,13 +2234,13 @@ test_object_copy_basic(void) if (H5Aiterate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_attribute_iter_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over copied group's attributes\n"); + printf(" failed to iterate over copied group's attributes\n"); PART_ERROR(H5Ocopy_group); } if (i != OBJECT_COPY_BASIC_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf( + printf( " number of attributes on copied group (%llu) didn't match expected number (%llu)!\n", (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS); PART_ERROR(H5Ocopy_group); @@ -2250,7 +2248,7 @@ test_object_copy_basic(void) if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group copy\n"); + printf(" failed to close group copy\n"); PART_ERROR(H5Ocopy_group); } @@ -2267,8 +2265,7 @@ test_object_copy_basic(void) if ((tmp_group_id = H5Gopen2(group_id, grp_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group '%s'\n", - OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME); + printf(" failed to open group '%s'\n", OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME); PART_ERROR(H5Ocopy_group); } @@ -2282,21 +2279,20 @@ test_object_copy_basic(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); PART_ERROR(H5Ocopy_group); } if (group_info.nlinks != 1) { H5_FAILED(); - HDprintf(" copied group's immediate members didn't contain nested members after a " - "deep copy!\n"); + printf(" copied group's immediate members didn't contain nested members after a " + "deep copy!\n"); PART_ERROR(H5Ocopy_group); } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", - OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME); + printf(" failed to close group '%s'\n", OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME); PART_ERROR(H5Ocopy_group); } } @@ -2321,30 +2317,30 @@ test_object_copy_basic(void) if (H5Ocopy(group_id, OBJECT_COPY_BASIC_TEST_DSET_NAME, group_id, OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME, - OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); + printf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME, + OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset); } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied dataset exists\n", - OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); + printf(" couldn't determine if link '%s' to copied dataset exists\n", + OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied dataset didn't exist!\n", - OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); + printf(" link '%s' to copied dataset didn't exist!\n", + OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset); } /* Ensure that the new dataset has all of the attributes of the copied dataset */ if ((tmp_dset_id = H5Dopen2(group_id, OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); + printf(" failed to open dataset copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset); } @@ -2358,13 +2354,13 @@ test_object_copy_basic(void) if (H5Oget_info3(tmp_dset_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_dset); } if (object_info.num_attrs == 0) { H5_FAILED(); - HDprintf(" copied dataset didn't contain any attributes after copy operation!\n"); + printf(" copied dataset didn't contain any attributes after copy operation!\n"); PART_ERROR(H5Ocopy_dset); } @@ -2373,21 +2369,21 @@ test_object_copy_basic(void) if (H5Aiterate2(tmp_dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_attribute_iter_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over copied dataset's attributes\n"); + printf(" failed to iterate over copied dataset's attributes\n"); PART_ERROR(H5Ocopy_dset); } if (i != OBJECT_COPY_BASIC_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" number of attributes on copied dataset (%llu) didn't match expected number " - "(%llu)!\n", - (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS); + printf(" number of attributes on copied dataset (%llu) didn't match expected number " + "(%llu)!\n", + (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS); PART_ERROR(H5Ocopy_dset); } if (H5Dclose(tmp_dset_id) < 0) { H5_FAILED(); - HDprintf(" failed to close dataset copy\n"); + printf(" failed to close dataset copy\n"); PART_ERROR(H5Ocopy_dset); } @@ -2411,30 +2407,30 @@ test_object_copy_basic(void) if (H5Ocopy(group_id, OBJECT_COPY_BASIC_TEST_DTYPE_NAME, group_id, OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME, - OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); + printf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME, + OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype); } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied datatype exists\n", - OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); + printf(" couldn't determine if link '%s' to copied datatype exists\n", + OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied datatype didn't exist!\n", - OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); + printf(" link '%s' to copied datatype didn't exist!\n", + OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype); } /* Ensure that the new committed datatype has all the attributes of the copied datatype */ if ((tmp_dtype_id = H5Topen2(group_id, OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open datatype copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); + printf(" failed to open datatype copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype); } @@ -2448,14 +2444,13 @@ test_object_copy_basic(void) if (H5Oget_info3(tmp_dtype_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_dtype); } if (object_info.num_attrs == 0) { H5_FAILED(); - HDprintf( - " copied committed datatype didn't contain any attributes after copy operation!\n"); + printf(" copied committed datatype didn't contain any attributes after copy operation!\n"); PART_ERROR(H5Ocopy_dtype); } @@ -2464,21 +2459,21 @@ test_object_copy_basic(void) if (H5Aiterate2(tmp_dtype_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_attribute_iter_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over copied datatype's attributes\n"); + printf(" failed to iterate over copied datatype's attributes\n"); PART_ERROR(H5Ocopy_dtype); } if (i != OBJECT_COPY_BASIC_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" number of attributes on copied datatype (%llu) didn't match expected number " - "(%llu)!\n", - (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS); + printf(" number of attributes on copied datatype (%llu) didn't match expected number " + "(%llu)!\n", + (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS); PART_ERROR(H5Ocopy_dtype); } if (H5Tclose(tmp_dtype_id) < 0) { H5_FAILED(); - HDprintf(" failed to close datatype copy\n"); + printf(" failed to close datatype copy\n"); PART_ERROR(H5Ocopy_dtype); } @@ -2569,8 +2564,8 @@ test_object_copy_already_existing(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, dataset, or stored datatype aren't " - "supported with this connector\n"); + printf(" API functions for basic file, group, object, dataset, or stored datatype aren't " + "supported with this connector\n"); return 0; } @@ -2578,21 +2573,21 @@ test_object_copy_already_existing(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_ALREADY_EXISTING_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - OBJECT_COPY_ALREADY_EXISTING_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + OBJECT_COPY_ALREADY_EXISTING_TEST_SUBGROUP_NAME); goto error; } @@ -2606,7 +2601,7 @@ test_object_copy_already_existing(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_ALREADY_EXISTING_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_GROUP_NAME); goto error; } @@ -2614,21 +2609,21 @@ test_object_copy_already_existing(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_ALREADY_EXISTING_TEST_DSET_NAME, dset_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DSET_NAME); goto error; } /* Create the test committed datatype object */ if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, OBJECT_COPY_ALREADY_EXISTING_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DTYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DTYPE_NAME); goto error; } @@ -2649,7 +2644,7 @@ test_object_copy_already_existing(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" group copy succeeded in location where group already exists!\n"); + printf(" group copy succeeded in location where group already exists!\n"); PART_ERROR(H5Ocopy_already_existing_group); } @@ -2670,7 +2665,7 @@ test_object_copy_already_existing(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" dataset copy succeeded in location where dataset already exists!\n"); + printf(" dataset copy succeeded in location where dataset already exists!\n"); PART_ERROR(H5Ocopy_already_existing_dset); } @@ -2691,8 +2686,8 @@ test_object_copy_already_existing(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" committed datatype copy succeeded in location where committed datatype already " - "exists!\n"); + printf(" committed datatype copy succeeded in location where committed datatype already " + "exists!\n"); PART_ERROR(H5Ocopy_already_existing_dtype); } @@ -2766,27 +2761,27 @@ test_object_copy_shallow_group_copy(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, or link aren't supported with this " - "connector\n"); + printf(" API functions for basic file, group, object, or link aren't supported with this " + "connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_SHALLOW_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SHALLOW_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SHALLOW_TEST_SUBGROUP_NAME); goto error; } @@ -2794,7 +2789,7 @@ test_object_copy_shallow_group_copy(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_SHALLOW_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME); goto error; } @@ -2805,8 +2800,8 @@ test_object_copy_shallow_group_copy(void) if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name, - OBJECT_COPY_SHALLOW_TEST_GROUP_NAME); + printf(" couldn't create group '%s' under group '%s'\n", grp_name, + OBJECT_COPY_SHALLOW_TEST_GROUP_NAME); goto error; } @@ -2815,50 +2810,50 @@ test_object_copy_shallow_group_copy(void) if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_SHALLOW_TEST_DEEP_NESTED_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create nested group '%s' under group '%s'\n", - OBJECT_COPY_SHALLOW_TEST_DEEP_NESTED_GROUP_NAME, grp_name); + printf(" couldn't create nested group '%s' under group '%s'\n", + OBJECT_COPY_SHALLOW_TEST_DEEP_NESTED_GROUP_NAME, grp_name); goto error; } } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", grp_name); + printf(" couldn't close group '%s'\n", grp_name); goto error; } } if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) { H5_FAILED(); - HDprintf(" couldn't create OCopyPL\n"); + printf(" couldn't create OCopyPL\n"); goto error; } if (H5Pset_copy_object(ocpypl_id, H5O_COPY_SHALLOW_HIERARCHY_FLAG) < 0) { H5_FAILED(); - HDprintf(" couldn't set object copying options\n"); + printf(" couldn't set object copying options\n"); goto error; } if (H5Ocopy(group_id, OBJECT_COPY_SHALLOW_TEST_GROUP_NAME, group_id, OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME, ocpypl_id, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME, - OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); + printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME, + OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); goto error; } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied group exists\n", - OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); + printf(" couldn't determine if link '%s' to copied group exists\n", + OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); goto error; } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied group didn't exist!\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); + printf(" link '%s' to copied group didn't exist!\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); goto error; } @@ -2867,7 +2862,7 @@ test_object_copy_shallow_group_copy(void) */ if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); + printf(" failed to open group copy '%s'\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME); goto error; } @@ -2881,14 +2876,14 @@ test_object_copy_shallow_group_copy(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); goto error; } if (group_info.nlinks != OBJECT_COPY_SHALLOW_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf(" copied group contained %d members instead of %d members after a shallow copy!\n", - (int)group_info.nlinks, OBJECT_COPY_SHALLOW_TEST_NUM_NESTED_OBJS); + printf(" copied group contained %d members instead of %d members after a shallow copy!\n", + (int)group_info.nlinks, OBJECT_COPY_SHALLOW_TEST_NUM_NESTED_OBJS); goto error; } @@ -2908,7 +2903,7 @@ test_object_copy_shallow_group_copy(void) if ((tmp_group_id = H5Gopen2(group_id, grp_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group '%s'\n", grp_name); + printf(" failed to open group '%s'\n", grp_name); goto error; } @@ -2922,19 +2917,19 @@ test_object_copy_shallow_group_copy(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); goto error; } if (group_info.nlinks != 0) { H5_FAILED(); - HDprintf(" copied group's immediate members contained nested members after a shallow copy!\n"); + printf(" copied group's immediate members contained nested members after a shallow copy!\n"); goto error; } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", grp_name); + printf(" failed to close group '%s'\n", grp_name); goto error; } } @@ -3003,8 +2998,8 @@ test_object_copy_no_attributes(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, link, dataset, attribute, or stored " - "datatype aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, link, dataset, attribute, or stored " + "datatype aren't supported with this connector\n"); return 0; } @@ -3012,20 +3007,20 @@ test_object_copy_no_attributes(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_NO_ATTRS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_SUBGROUP_NAME); goto error; } @@ -3042,7 +3037,7 @@ test_object_copy_no_attributes(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME); goto error; } @@ -3054,14 +3049,14 @@ test_object_copy_no_attributes(void) if ((attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name, - OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME); + printf(" couldn't create attribute '%s' on group '%s'\n", attr_name, + OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -3070,7 +3065,7 @@ test_object_copy_no_attributes(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME, dset_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME); goto error; } @@ -3082,14 +3077,14 @@ test_object_copy_no_attributes(void) if ((attr_id = H5Acreate2(dset_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name, - OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME); + printf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name, + OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -3097,14 +3092,14 @@ test_object_copy_no_attributes(void) /* Create the test committed datatype object, along with the attributes attached to it. */ if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME); goto error; } @@ -3116,14 +3111,14 @@ test_object_copy_no_attributes(void) if ((attr_id = H5Acreate2(dtype_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name, - OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME); + printf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name, + OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -3138,36 +3133,36 @@ test_object_copy_no_attributes(void) if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) { H5_FAILED(); - HDprintf(" couldn't create OCopyPL\n"); + printf(" couldn't create OCopyPL\n"); PART_ERROR(H5Ocopy_group_no_attributes); } if (H5Pset_copy_object(ocpypl_id, H5O_COPY_WITHOUT_ATTR_FLAG) < 0) { H5_FAILED(); - HDprintf(" couldn't set object copying options\n"); + printf(" couldn't set object copying options\n"); PART_ERROR(H5Ocopy_group_no_attributes); } if (H5Ocopy(group_id, OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME, group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME, ocpypl_id, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME, - OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); + printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME, + OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group_no_attributes); } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied group exists\n", - OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); + printf(" couldn't determine if link '%s' to copied group exists\n", + OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group_no_attributes); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied group didn't exist!\n", - OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); + printf(" link '%s' to copied group didn't exist!\n", + OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group_no_attributes); } @@ -3175,7 +3170,7 @@ test_object_copy_no_attributes(void) if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); + printf(" failed to open group copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group_no_attributes); } @@ -3189,25 +3184,25 @@ test_object_copy_no_attributes(void) if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_group_no_attributes); } if (object_info.num_attrs != 0) { H5_FAILED(); - HDprintf(" copied group contained attributes after a non-attribute copy!\n"); + printf(" copied group contained attributes after a non-attribute copy!\n"); PART_ERROR(H5Ocopy_group_no_attributes); } if (H5Pclose(ocpypl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close OCopyPL\n"); + printf(" failed to close OCopyPL\n"); PART_ERROR(H5Ocopy_group_no_attributes); } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group copy\n"); + printf(" failed to close group copy\n"); PART_ERROR(H5Ocopy_group_no_attributes); } @@ -3238,36 +3233,36 @@ test_object_copy_no_attributes(void) if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) { H5_FAILED(); - HDprintf(" couldn't create OCopyPL\n"); + printf(" couldn't create OCopyPL\n"); PART_ERROR(H5Ocopy_dset_no_attributes); } if (H5Pset_copy_object(ocpypl_id, H5O_COPY_WITHOUT_ATTR_FLAG) < 0) { H5_FAILED(); - HDprintf(" couldn't set object copying options\n"); + printf(" couldn't set object copying options\n"); PART_ERROR(H5Ocopy_dset_no_attributes); } if (H5Ocopy(group_id, OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME, group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME, ocpypl_id, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME, - OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); + printf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME, + OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset_no_attributes); } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied dataset exists\n", - OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); + printf(" couldn't determine if link '%s' to copied dataset exists\n", + OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset_no_attributes); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied dataset didn't exist!\n", - OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); + printf(" link '%s' to copied dataset didn't exist!\n", + OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset_no_attributes); } @@ -3275,7 +3270,7 @@ test_object_copy_no_attributes(void) if ((tmp_dset_id = H5Dopen2(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); + printf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset_no_attributes); } @@ -3289,25 +3284,25 @@ test_object_copy_no_attributes(void) if (H5Oget_info3(tmp_dset_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_dset_no_attributes); } if (object_info.num_attrs != 0) { H5_FAILED(); - HDprintf(" copied dataset contained attributes after a non-attribute copy!\n"); + printf(" copied dataset contained attributes after a non-attribute copy!\n"); PART_ERROR(H5Ocopy_dset_no_attributes); } if (H5Pclose(ocpypl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close OCopyPL\n"); + printf(" failed to close OCopyPL\n"); PART_ERROR(H5Ocopy_dset_no_attributes); } if (H5Dclose(tmp_dset_id) < 0) { H5_FAILED(); - HDprintf(" failed to close dataset copy\n"); + printf(" failed to close dataset copy\n"); PART_ERROR(H5Ocopy_dset_no_attributes); } @@ -3338,36 +3333,36 @@ test_object_copy_no_attributes(void) if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) { H5_FAILED(); - HDprintf(" couldn't create OCopyPL\n"); + printf(" couldn't create OCopyPL\n"); PART_ERROR(H5Ocopy_dtype_no_attributes); } if (H5Pset_copy_object(ocpypl_id, H5O_COPY_WITHOUT_ATTR_FLAG) < 0) { H5_FAILED(); - HDprintf(" couldn't set object copying options\n"); + printf(" couldn't set object copying options\n"); PART_ERROR(H5Ocopy_dtype_no_attributes); } if (H5Ocopy(group_id, OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME, group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME, ocpypl_id, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME, - OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); + printf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME, + OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype_no_attributes); } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied datatype exists\n", - OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); + printf(" couldn't determine if link '%s' to copied datatype exists\n", + OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype_no_attributes); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied datatype didn't exist!\n", - OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); + printf(" link '%s' to copied datatype didn't exist!\n", + OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype_no_attributes); } @@ -3375,7 +3370,7 @@ test_object_copy_no_attributes(void) if ((tmp_dtype_id = H5Topen2(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); + printf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype_no_attributes); } @@ -3389,25 +3384,25 @@ test_object_copy_no_attributes(void) if (H5Oget_info3(tmp_dtype_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_dtype_no_attributes); } if (object_info.num_attrs != 0) { H5_FAILED(); - HDprintf(" copied committed datatype contained attributes after a non-attribute copy!\n"); + printf(" copied committed datatype contained attributes after a non-attribute copy!\n"); PART_ERROR(H5Ocopy_dtype_no_attributes); } if (H5Pclose(ocpypl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close OCopyPL\n"); + printf(" failed to close OCopyPL\n"); PART_ERROR(H5Ocopy_dtype_no_attributes); } if (H5Tclose(tmp_dtype_id) < 0) { H5_FAILED(); - HDprintf(" failed to close datatype copy\n"); + printf(" failed to close datatype copy\n"); PART_ERROR(H5Ocopy_dtype_no_attributes); } @@ -3511,8 +3506,8 @@ test_object_copy_by_soft_link(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or " - "soft link aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or " + "soft link aren't supported with this connector\n"); return 0; } @@ -3520,20 +3515,20 @@ test_object_copy_by_soft_link(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_SOFT_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_SUBGROUP_NAME); goto error; } @@ -3545,7 +3540,7 @@ test_object_copy_by_soft_link(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME); goto error; } @@ -3556,8 +3551,8 @@ test_object_copy_by_soft_link(void) if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name, - OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME); + printf(" couldn't create group '%s' under group '%s'\n", grp_name, + OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME); goto error; } @@ -3566,15 +3561,15 @@ test_object_copy_by_soft_link(void) if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_SOFT_LINK_TEST_DEEP_NESTED_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create nested group '%s' under group '%s'\n", - OBJECT_COPY_SOFT_LINK_TEST_DEEP_NESTED_GROUP_NAME, grp_name); + printf(" couldn't create nested group '%s' under group '%s'\n", + OBJECT_COPY_SOFT_LINK_TEST_DEEP_NESTED_GROUP_NAME, grp_name); goto error; } } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", grp_name); + printf(" couldn't close group '%s'\n", grp_name); goto error; } } @@ -3587,14 +3582,14 @@ test_object_copy_by_soft_link(void) if ((attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name, - OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME); + printf(" couldn't create attribute '%s' on group '%s'\n", attr_name, + OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -3612,31 +3607,31 @@ test_object_copy_by_soft_link(void) group_id, OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s' to group for copying\n", - OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME); + printf(" failed to create soft link '%s' to group for copying\n", + OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME); PART_ERROR(H5Ocopy_through_soft_link); } if (H5Ocopy(group_id, OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME, group_id, OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME, - OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); + printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME, + OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_through_soft_link); } if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied group exists\n", - OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); + printf(" couldn't determine if link '%s' to copied group exists\n", + OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_through_soft_link); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied group didn't exist!\n", - OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); + printf(" link '%s' to copied group didn't exist!\n", + OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_through_soft_link); } @@ -3645,14 +3640,14 @@ test_object_copy_by_soft_link(void) if (H5Lget_info2(group_id, OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, &link_info, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve info for link '%s'\n", - OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); + printf(" failed to retrieve info for link '%s'\n", + OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_through_soft_link); } if (link_info.type != H5L_TYPE_HARD) { H5_FAILED(); - HDprintf( + printf( " after group copy through soft link, group's new link type wasn't H5L_TYPE_HARD!\n"); PART_ERROR(H5Ocopy_through_soft_link); } @@ -3664,7 +3659,7 @@ test_object_copy_by_soft_link(void) if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); + printf(" failed to open group copy '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_through_soft_link); } @@ -3678,15 +3673,14 @@ test_object_copy_by_soft_link(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); PART_ERROR(H5Ocopy_through_soft_link); } if (group_info.nlinks != OBJECT_COPY_SOFT_LINK_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf( - " copied group contained %d members instead of %d members after a shallow copy!\n", - (int)group_info.nlinks, OBJECT_COPY_SOFT_LINK_TEST_NUM_NESTED_OBJS); + printf(" copied group contained %d members instead of %d members after a shallow copy!\n", + (int)group_info.nlinks, OBJECT_COPY_SOFT_LINK_TEST_NUM_NESTED_OBJS); PART_ERROR(H5Ocopy_through_soft_link); } @@ -3700,13 +3694,13 @@ test_object_copy_by_soft_link(void) if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_through_soft_link); } if (object_info.num_attrs == 0) { H5_FAILED(); - HDprintf(" copied group didn't contain any attributes after copy operation!\n"); + printf(" copied group didn't contain any attributes after copy operation!\n"); PART_ERROR(H5Ocopy_through_soft_link); } @@ -3715,13 +3709,13 @@ test_object_copy_by_soft_link(void) if (H5Aiterate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_attribute_iter_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over copied group's attributes\n"); + printf(" failed to iterate over copied group's attributes\n"); PART_ERROR(H5Ocopy_through_soft_link); } if (i != OBJECT_COPY_SOFT_LINK_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf( + printf( " number of attributes on copied group (%llu) didn't match expected number (%llu)!\n", (unsigned long long)i, (unsigned long long)OBJECT_COPY_SOFT_LINK_TEST_NUM_ATTRS); PART_ERROR(H5Ocopy_through_soft_link); @@ -3729,7 +3723,7 @@ test_object_copy_by_soft_link(void) if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group copy\n"); + printf(" failed to close group copy\n"); PART_ERROR(H5Ocopy_through_soft_link); } @@ -3757,8 +3751,8 @@ test_object_copy_by_soft_link(void) group_id, OBJECT_COPY_SOFT_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create dangling soft link '%s'\n", - OBJECT_COPY_SOFT_LINK_TEST_DANGLING_LINK_NAME); + printf(" failed to create dangling soft link '%s'\n", + OBJECT_COPY_SOFT_LINK_TEST_DANGLING_LINK_NAME); PART_ERROR(H5Ocopy_through_dangling_soft_link); } @@ -3772,7 +3766,7 @@ test_object_copy_by_soft_link(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" copied non-existent object through use of a dangling soft link!\n"); + printf(" copied non-existent object through use of a dangling soft link!\n"); PART_ERROR(H5Ocopy_through_dangling_soft_link); } @@ -3841,9 +3835,9 @@ test_object_copy_group_with_soft_links(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, link, iterate, or soft link aren't " - "supported with " - "this connector\n"); + printf(" API functions for basic file, group, object, link, iterate, or soft link aren't " + "supported with " + "this connector\n"); return 0; } @@ -3851,21 +3845,21 @@ test_object_copy_group_with_soft_links(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME); goto error; } @@ -3873,7 +3867,7 @@ test_object_copy_group_with_soft_links(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME); goto error; } @@ -3893,20 +3887,20 @@ test_object_copy_group_with_soft_links(void) if ((tmp_group_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name, - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME); + printf(" couldn't create group '%s' under group '%s'\n", grp_name, + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME); goto error; } if (H5Lcreate_soft(lnk_target, group_id2, lnk_name, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to create soft link '%s'\n", lnk_name); + printf(" failed to create soft link '%s'\n", lnk_name); goto error; } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", grp_name); + printf(" couldn't close group '%s'\n", grp_name); goto error; } } @@ -3923,9 +3917,9 @@ test_object_copy_group_with_soft_links(void) OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy group '%s' to '%s'\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME, - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); + printf(" failed to copy group '%s' to '%s'\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME, + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_dont_expand_soft_links); } @@ -3933,15 +3927,15 @@ test_object_copy_group_with_soft_links(void) H5Lexists(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied group exists\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); + printf(" couldn't determine if link '%s' to copied group exists\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_dont_expand_soft_links); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied group didn't exist!\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); + printf(" link '%s' to copied group didn't exist!\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_dont_expand_soft_links); } @@ -3950,8 +3944,8 @@ test_object_copy_group_with_soft_links(void) H5Gopen2(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group copy '%s'\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); + printf(" failed to open group copy '%s'\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_dont_expand_soft_links); } @@ -3965,14 +3959,14 @@ test_object_copy_group_with_soft_links(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); PART_ERROR(H5Ocopy_dont_expand_soft_links); } if (group_info.nlinks != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf(" copied group contained %d members instead of %d members after copy!\n", - (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); + printf(" copied group contained %d members instead of %d members after copy!\n", + (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); PART_ERROR(H5Ocopy_dont_expand_soft_links); } @@ -3984,22 +3978,22 @@ test_object_copy_group_with_soft_links(void) if (H5Literate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_soft_link_non_expand_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over links in group '%s'\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); + printf(" failed to iterate over links in group '%s'\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_dont_expand_soft_links); } if (i != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n", - (unsigned long long)i, - (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); + printf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n", + (unsigned long long)i, + (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); PART_ERROR(H5Ocopy_dont_expand_soft_links); } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group copy\n"); + printf(" failed to close group copy\n"); PART_ERROR(H5Ocopy_dont_expand_soft_links); } @@ -4022,13 +4016,13 @@ test_object_copy_group_with_soft_links(void) if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) { H5_FAILED(); - HDprintf(" couldn't create OCopyPL\n"); + printf(" couldn't create OCopyPL\n"); PART_ERROR(H5Ocopy_expand_soft_links); } if (H5Pset_copy_object(ocpypl_id, H5O_COPY_EXPAND_SOFT_LINK_FLAG) < 0) { H5_FAILED(); - HDprintf(" couldn't set object copying options\n"); + printf(" couldn't set object copying options\n"); PART_ERROR(H5Ocopy_expand_soft_links); } @@ -4036,24 +4030,24 @@ test_object_copy_group_with_soft_links(void) OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME, ocpypl_id, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy group '%s' to '%s'\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME, - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); + printf(" failed to copy group '%s' to '%s'\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME, + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_expand_soft_links); } if ((object_link_exists = H5Lexists( group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied group exists\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); + printf(" couldn't determine if link '%s' to copied group exists\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_expand_soft_links); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied group didn't exist!\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); + printf(" link '%s' to copied group didn't exist!\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_expand_soft_links); } @@ -4061,8 +4055,8 @@ test_object_copy_group_with_soft_links(void) if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group copy '%s'\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); + printf(" failed to open group copy '%s'\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_expand_soft_links); } @@ -4076,14 +4070,14 @@ test_object_copy_group_with_soft_links(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); PART_ERROR(H5Ocopy_expand_soft_links); } if (group_info.nlinks != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf(" copied group contained %d members instead of %d members after copy!\n", - (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); + printf(" copied group contained %d members instead of %d members after copy!\n", + (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); PART_ERROR(H5Ocopy_expand_soft_links); } @@ -4096,28 +4090,28 @@ test_object_copy_group_with_soft_links(void) if (H5Literate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_soft_link_expand_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over links in group '%s'\n", - OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); + printf(" failed to iterate over links in group '%s'\n", + OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME); PART_ERROR(H5Ocopy_expand_soft_links); } if (i != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n", - (unsigned long long)i, - (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); + printf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n", + (unsigned long long)i, + (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS); PART_ERROR(H5Ocopy_expand_soft_links); } if (H5Pclose(ocpypl_id) < 0) { H5_FAILED(); - HDprintf(" failed to close OCopyPL\n"); + printf(" failed to close OCopyPL\n"); PART_ERROR(H5Ocopy_expand_soft_links); } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group copy\n"); + printf(" failed to close group copy\n"); PART_ERROR(H5Ocopy_expand_soft_links); } @@ -4211,8 +4205,8 @@ test_object_copy_between_files(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, link, dataset, attribute, stored " - "datatype, or iterate aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, link, dataset, attribute, stored " + "datatype, or iterate aren't supported with this connector\n"); return 0; } @@ -4224,27 +4218,26 @@ test_object_copy_between_files(void) if ((file_id2 = H5Fcreate(OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create file '%s'\n", H5_api_test_filename); + printf(" couldn't create file '%s'\n", H5_api_test_filename); goto error; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_BETWEEN_FILES_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_SUBGROUP_NAME); goto error; } @@ -4262,7 +4255,7 @@ test_object_copy_between_files(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME); goto error; } @@ -4273,8 +4266,8 @@ test_object_copy_between_files(void) if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name, - OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME); + printf(" couldn't create group '%s' under group '%s'\n", grp_name, + OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME); goto error; } @@ -4283,15 +4276,15 @@ test_object_copy_between_files(void) if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DEEP_NESTED_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create nested group '%s' under group '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_DEEP_NESTED_GROUP_NAME, grp_name); + printf(" couldn't create nested group '%s' under group '%s'\n", + OBJECT_COPY_BETWEEN_FILES_TEST_DEEP_NESTED_GROUP_NAME, grp_name); goto error; } } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", grp_name); + printf(" couldn't close group '%s'\n", grp_name); goto error; } } @@ -4304,14 +4297,14 @@ test_object_copy_between_files(void) if ((attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name, - OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME); + printf(" couldn't create attribute '%s' on group '%s'\n", attr_name, + OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -4320,7 +4313,7 @@ test_object_copy_between_files(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME, dset_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME); goto error; } @@ -4332,14 +4325,14 @@ test_object_copy_between_files(void) if ((attr_id = H5Acreate2(dset_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name, - OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME); + printf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name, + OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -4347,14 +4340,14 @@ test_object_copy_between_files(void) /* Create the test committed datatype object, along with the attributes attached to it. */ if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype\n"); + printf(" couldn't create datatype\n"); goto error; } if (H5Tcommit2(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME); goto error; } @@ -4366,14 +4359,14 @@ test_object_copy_between_files(void) if ((attr_id = H5Acreate2(dtype_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name, - OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME); + printf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name, + OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME); goto error; } if (H5Aclose(attr_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close attribute '%s'\n", attr_name); + printf(" couldn't close attribute '%s'\n", attr_name); goto error; } } @@ -4389,25 +4382,25 @@ test_object_copy_between_files(void) if (H5Ocopy(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME, file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy group '%s' to second file '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME, - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME); + printf(" failed to copy group '%s' to second file '%s'\n", + OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME, + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group_between_files); } if ((object_link_exists = H5Lexists(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied group exists\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME); + printf(" couldn't determine if link '%s' to copied group exists\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group_between_files); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied group in second file '%s' didn't exist!\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, - OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME); + printf(" link '%s' to copied group in second file '%s' didn't exist!\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, + OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME); PART_ERROR(H5Ocopy_group_between_files); } @@ -4415,8 +4408,7 @@ test_object_copy_between_files(void) if ((tmp_group_id = H5Gopen2(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group copy '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME); + printf(" failed to open group copy '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME); PART_ERROR(H5Ocopy_group_between_files); } @@ -4430,14 +4422,14 @@ test_object_copy_between_files(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); PART_ERROR(H5Ocopy_group_between_files); } if (group_info.nlinks != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_NESTED_OBJS) { H5_FAILED(); - HDprintf(" copied group contained %d members instead of %d members after a deep copy!\n", - (int)group_info.nlinks, OBJECT_COPY_BETWEEN_FILES_TEST_NUM_NESTED_OBJS); + printf(" copied group contained %d members instead of %d members after a deep copy!\n", + (int)group_info.nlinks, OBJECT_COPY_BETWEEN_FILES_TEST_NUM_NESTED_OBJS); PART_ERROR(H5Ocopy_group_between_files); } @@ -4451,13 +4443,13 @@ test_object_copy_between_files(void) if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_group_between_files); } if (object_info.num_attrs == 0) { H5_FAILED(); - HDprintf(" copied group didn't contain any attributes after copy operation!\n"); + printf(" copied group didn't contain any attributes after copy operation!\n"); PART_ERROR(H5Ocopy_group_between_files); } @@ -4466,13 +4458,13 @@ test_object_copy_between_files(void) if (H5Aiterate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_attribute_iter_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over copied group's attributes\n"); + printf(" failed to iterate over copied group's attributes\n"); PART_ERROR(H5Ocopy_group_between_files); } if (i != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf( + printf( " number of attributes on copied group (%llu) didn't match expected number (%llu)!\n", (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS); PART_ERROR(H5Ocopy_group_between_files); @@ -4480,7 +4472,7 @@ test_object_copy_between_files(void) if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group copy\n"); + printf(" failed to close group copy\n"); PART_ERROR(H5Ocopy_group_between_files); } @@ -4497,7 +4489,7 @@ test_object_copy_between_files(void) if ((tmp_group_id = H5Gopen2(file_id2, grp_name, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open group '%s'\n", grp_name); + printf(" failed to open group '%s'\n", grp_name); PART_ERROR(H5Ocopy_group_between_files); } @@ -4511,20 +4503,20 @@ test_object_copy_between_files(void) if (H5Gget_info(tmp_group_id, &group_info) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve group info\n"); + printf(" failed to retrieve group info\n"); PART_ERROR(H5Ocopy_group_between_files); } if (group_info.nlinks != 1) { H5_FAILED(); - HDprintf(" copied group's immediate members didn't contain nested members after a " - "deep copy!\n"); + printf(" copied group's immediate members didn't contain nested members after a " + "deep copy!\n"); PART_ERROR(H5Ocopy_group_between_files); } if (H5Gclose(tmp_group_id) < 0) { H5_FAILED(); - HDprintf(" failed to close group '%s'\n", grp_name); + printf(" failed to close group '%s'\n", grp_name); PART_ERROR(H5Ocopy_group_between_files); } } @@ -4549,25 +4541,25 @@ test_object_copy_between_files(void) if (H5Ocopy(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME, file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy dataset '%s' to second file '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME, - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME); + printf(" failed to copy dataset '%s' to second file '%s'\n", + OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME, + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset_between_files); } if ((object_link_exists = H5Lexists(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied dataset exists\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME); + printf(" couldn't determine if link '%s' to copied dataset exists\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset_between_files); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied dataset in second file '%s' didn't exist!\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, - OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME); + printf(" link '%s' to copied dataset in second file '%s' didn't exist!\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, + OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME); PART_ERROR(H5Ocopy_dset_between_files); } @@ -4575,8 +4567,8 @@ test_object_copy_between_files(void) if ((tmp_dset_id = H5Dopen2(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open dataset copy '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME); + printf(" failed to open dataset copy '%s'\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME); PART_ERROR(H5Ocopy_dset_between_files); } @@ -4590,13 +4582,13 @@ test_object_copy_between_files(void) if (H5Oget_info3(tmp_dset_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_dset_between_files); } if (object_info.num_attrs == 0) { H5_FAILED(); - HDprintf(" copied dataset didn't contain any attributes after copy operation!\n"); + printf(" copied dataset didn't contain any attributes after copy operation!\n"); PART_ERROR(H5Ocopy_dset_between_files); } @@ -4605,21 +4597,21 @@ test_object_copy_between_files(void) if (H5Aiterate2(tmp_dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_attribute_iter_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over copied dataset's attributes\n"); + printf(" failed to iterate over copied dataset's attributes\n"); PART_ERROR(H5Ocopy_dset_between_files); } if (i != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" number of attributes on copied dataset (%llu) didn't match expected number " - "(%llu)!\n", - (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS); + printf(" number of attributes on copied dataset (%llu) didn't match expected number " + "(%llu)!\n", + (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS); PART_ERROR(H5Ocopy_dset_between_files); } if (H5Dclose(tmp_dset_id) < 0) { H5_FAILED(); - HDprintf(" failed to close dataset copy\n"); + printf(" failed to close dataset copy\n"); PART_ERROR(H5Ocopy_dset_between_files); } @@ -4643,25 +4635,25 @@ test_object_copy_between_files(void) if (H5Ocopy(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME, file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" failed to copy committed datatype '%s' to second file '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME, - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME); + printf(" failed to copy committed datatype '%s' to second file '%s'\n", + OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME, + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype_between_files); } if ((object_link_exists = H5Lexists(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't determine if link '%s' to copied committed datatype exists\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME); + printf(" couldn't determine if link '%s' to copied committed datatype exists\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype_between_files); } if (!object_link_exists) { H5_FAILED(); - HDprintf(" link '%s' to copied committed datatype in second file '%s' didn't exist!\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, - OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME); + printf(" link '%s' to copied committed datatype in second file '%s' didn't exist!\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, + OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME); PART_ERROR(H5Ocopy_dtype_between_files); } @@ -4670,8 +4662,8 @@ test_object_copy_between_files(void) if ((tmp_dtype_id = H5Topen2(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" failed to open committed datatype copy '%s'\n", - OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME); + printf(" failed to open committed datatype copy '%s'\n", + OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME); PART_ERROR(H5Ocopy_dtype_between_files); } @@ -4685,14 +4677,13 @@ test_object_copy_between_files(void) if (H5Oget_info3(tmp_dtype_id, &object_info, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" failed to retrieve object info\n"); + printf(" failed to retrieve object info\n"); PART_ERROR(H5Ocopy_dtype_between_files); } if (object_info.num_attrs == 0) { H5_FAILED(); - HDprintf( - " copied committed datatype didn't contain any attributes after copy operation!\n"); + printf(" copied committed datatype didn't contain any attributes after copy operation!\n"); PART_ERROR(H5Ocopy_dtype_between_files); } @@ -4701,21 +4692,21 @@ test_object_copy_between_files(void) if (H5Aiterate2(tmp_dtype_id, H5_INDEX_NAME, H5_ITER_INC, NULL, object_copy_attribute_iter_callback, &i) < 0) { H5_FAILED(); - HDprintf(" failed to iterate over copied datatype's attributes\n"); + printf(" failed to iterate over copied datatype's attributes\n"); PART_ERROR(H5Ocopy_dtype_between_files); } if (i != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS) { H5_FAILED(); - HDprintf(" number of attributes on copied datatype (%llu) didn't match expected number " - "(%llu)!\n", - (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS); + printf(" number of attributes on copied datatype (%llu) didn't match expected number " + "(%llu)!\n", + (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS); PART_ERROR(H5Ocopy_dtype_between_files); } if (H5Tclose(tmp_dtype_id) < 0) { H5_FAILED(); - HDprintf(" failed to close committed datatype copy\n"); + printf(" failed to close committed datatype copy\n"); PART_ERROR(H5Ocopy_dtype_between_files); } @@ -4803,7 +4794,7 @@ test_object_copy_invalid_params(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or object aren't supported with this connector\n"); + printf(" API functions for basic file, group, or object aren't supported with this connector\n"); return 0; } @@ -4811,28 +4802,28 @@ test_object_copy_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", - OBJECT_COPY_INVALID_PARAMS_TEST_SUBGROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", + OBJECT_COPY_INVALID_PARAMS_TEST_SUBGROUP_NAME); goto error; } if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_COPY_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -4853,7 +4844,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with an invalid source location ID!\n"); + printf(" H5Ocopy succeeded with an invalid source location ID!\n"); PART_ERROR(H5Ocopy_invalid_src_loc_id); } @@ -4874,7 +4865,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with a NULL source object name!\n"); + printf(" H5Ocopy succeeded with a NULL source object name!\n"); PART_ERROR(H5Ocopy_invalid_src_obj_name); } @@ -4887,7 +4878,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with an invalid source object name of ''!\n"); + printf(" H5Ocopy succeeded with an invalid source object name of ''!\n"); PART_ERROR(H5Ocopy_invalid_src_obj_name); } @@ -4908,7 +4899,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with an invalid destination location ID!\n"); + printf(" H5Ocopy succeeded with an invalid destination location ID!\n"); PART_ERROR(H5Ocopy_invalid_dst_loc_id); } @@ -4929,7 +4920,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with a NULL destination object name!\n"); + printf(" H5Ocopy succeeded with a NULL destination object name!\n"); PART_ERROR(H5Ocopy_invalid_dst_obj_name); } @@ -4942,7 +4933,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with an invalid destination object name of ''!\n"); + printf(" H5Ocopy succeeded with an invalid destination object name of ''!\n"); PART_ERROR(H5Ocopy_invalid_dst_obj_name); } @@ -4963,7 +4954,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with an invalid OcpyPL!\n"); + printf(" H5Ocopy succeeded with an invalid OcpyPL!\n"); PART_ERROR(H5Ocopy_invalid_ocpypl); } @@ -4984,7 +4975,7 @@ test_object_copy_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ocopy succeeded with an invalid LCPL!\n"); + printf(" H5Ocopy succeeded with an invalid LCPL!\n"); PART_ERROR(H5Ocopy_invalid_lcpl); } @@ -5075,8 +5066,8 @@ test_object_visit(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, dataset, attribute, stored datatype, or " - "iterate aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, dataset, attribute, stored datatype, or " + "iterate aren't supported with this connector\n"); return 0; } @@ -5084,26 +5075,26 @@ test_object_visit(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -5111,7 +5102,7 @@ test_object_visit(void) if ((group_id = H5Gcreate2(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_TEST_SUBGROUP_NAME); goto error; } @@ -5123,28 +5114,28 @@ test_object_visit(void) if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME); + printf(" couldn't create datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME); goto error; } if ((group_id2 = H5Gcreate2(group_id, OBJECT_VISIT_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_VISIT_TEST_GROUP_NAME); goto error; } if ((dset_id = H5Dcreate2(group_id, OBJECT_VISIT_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_VISIT_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_VISIT_TEST_DSET_NAME); goto error; } if (H5Tcommit2(group_id, OBJECT_VISIT_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME); goto error; } @@ -5168,13 +5159,13 @@ test_object_visit(void) if (H5Ovisit3(group_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by object name in increasing order failed\n"); + printf(" H5Ovisit by object name in increasing order failed\n"); PART_ERROR(H5Ovisit_obj_name_increasing); } if (i != OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_obj_name_increasing); } @@ -5192,13 +5183,13 @@ test_object_visit(void) if (H5Ovisit3(group_id, H5_INDEX_NAME, H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by object name in decreasing order failed\n"); + printf(" H5Ovisit by object name in decreasing order failed\n"); PART_ERROR(H5Ovisit_obj_name_decreasing); } if (i != 2 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_obj_name_decreasing); } @@ -5212,7 +5203,7 @@ test_object_visit(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_create_order_increasing); } @@ -5222,13 +5213,13 @@ test_object_visit(void) if (H5Ovisit3(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by creation order in increasing order failed\n"); + printf(" H5Ovisit by creation order in increasing order failed\n"); PART_ERROR(H5Ovisit_create_order_increasing); } if (i != 3 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_create_order_increasing); } @@ -5242,7 +5233,7 @@ test_object_visit(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_create_order_decreasing); } @@ -5252,13 +5243,13 @@ test_object_visit(void) if (H5Ovisit3(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by creation order in decreasing order failed\n"); + printf(" H5Ovisit by creation order in decreasing order failed\n"); PART_ERROR(H5Ovisit_create_order_decreasing); } if (i != 4 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_create_order_decreasing); } @@ -5286,7 +5277,7 @@ test_object_visit(void) if (H5Ovisit3(dset_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_dset_callback, NULL, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit failed\n"); + printf(" H5Ovisit failed\n"); PART_ERROR(H5Ovisit_dset); } @@ -5301,7 +5292,7 @@ test_object_visit(void) if (H5Ovisit3(type_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_dtype_callback, NULL, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit failed\n"); + printf(" H5Ovisit failed\n"); PART_ERROR(H5Ovisit_dtype); } @@ -5320,13 +5311,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n"); + printf(" H5Ovisit_by_name by object name in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } if (i != OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } @@ -5336,13 +5327,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n"); + printf(" H5Ovisit_by_name by object name in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } if (i != OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } @@ -5361,13 +5352,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n"); + printf(" H5Ovisit_by_name by object name in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } if (i != 2 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } @@ -5377,13 +5368,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_NAME, H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n"); + printf(" H5Ovisit_by_name by object name in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } if (i != 2 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } @@ -5397,7 +5388,7 @@ test_object_visit(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_by_name_create_order_increasing); } @@ -5408,13 +5399,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } if (i != 3 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } @@ -5424,13 +5415,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } if (i != 3 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } @@ -5444,7 +5435,7 @@ test_object_visit(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_by_name_create_order_decreasing); } @@ -5455,13 +5446,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } if (i != 4 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } @@ -5471,13 +5462,13 @@ test_object_visit(void) if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } if (i != 4 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } @@ -5505,7 +5496,7 @@ test_object_visit(void) if (H5Ovisit_by_name3(group_id, OBJECT_VISIT_TEST_DSET_NAME, H5_INDEX_NAME, H5_ITER_INC, object_visit_dset_callback, NULL, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name failed\n"); + printf(" H5Ovisit_by_name failed\n"); PART_ERROR(H5Ovisit_by_name_dset); } @@ -5520,7 +5511,7 @@ test_object_visit(void) if (H5Ovisit_by_name3(group_id, OBJECT_VISIT_TEST_TYPE_NAME, H5_INDEX_NAME, H5_ITER_INC, object_visit_dtype_callback, NULL, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name failed\n"); + printf(" H5Ovisit_by_name failed\n"); PART_ERROR(H5Ovisit_by_name_dtype); } @@ -5599,8 +5590,8 @@ test_object_visit_soft_link(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, soft link, or iterate " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, soft link, or iterate " + "aren't supported with this connector\n"); return 0; } @@ -5608,26 +5599,26 @@ test_object_visit_soft_link(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create a GCPL\n"); + printf(" couldn't create a GCPL\n"); goto error; } if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) { if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) { H5_FAILED(); - HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n"); + printf(" couldn't enable link creation order tracking and indexing on GCPL\n"); goto error; } } @@ -5635,7 +5626,7 @@ test_object_visit_soft_link(void) if ((group_id = H5Gcreate2(container_group, OBJECT_VISIT_SOFT_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_SUBGROUP_NAME); goto error; } @@ -5643,7 +5634,7 @@ test_object_visit_soft_link(void) if ((subgroup_id = H5Gcreate2(group_id, OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME1, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME1); + printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME1); goto error; } @@ -5651,7 +5642,7 @@ test_object_visit_soft_link(void) if ((subgroup_id2 = H5Gcreate2(group_id, OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2); + printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2); goto error; } @@ -5659,45 +5650,45 @@ test_object_visit_soft_link(void) if ((linked_group_id = H5Gcreate2(subgroup_id2, OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1); + printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1); goto error; } if (H5Gclose(linked_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1); + printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1); goto error; } if ((linked_group_id = H5Gcreate2(subgroup_id2, OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2); + printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2); goto error; } if (H5Gclose(linked_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2); + printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2); goto error; } if ((linked_group_id = H5Gcreate2(subgroup_id2, OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3); + printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3); goto error; } if (H5Gclose(linked_group_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3); + printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3); goto error; } if (H5Gclose(subgroup_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2); + printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2); goto error; } @@ -5706,7 +5697,7 @@ test_object_visit_soft_link(void) "/" OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2 "/" OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1, subgroup_id, OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME1); + printf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME1); goto error; } @@ -5714,7 +5705,7 @@ test_object_visit_soft_link(void) "/" OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2 "/" OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2, subgroup_id, OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME2); + printf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME2); goto error; } @@ -5722,7 +5713,7 @@ test_object_visit_soft_link(void) "/" OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2 "/" OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3, subgroup_id, OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME3); + printf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME3); goto error; } @@ -5746,13 +5737,13 @@ test_object_visit_soft_link(void) if (H5Ovisit3(subgroup_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by object name in increasing order failed\n"); + printf(" H5Ovisit by object name in increasing order failed\n"); PART_ERROR(H5Ovisit_obj_name_increasing); } if (i != OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_obj_name_increasing); } @@ -5770,13 +5761,13 @@ test_object_visit_soft_link(void) if (H5Ovisit3(subgroup_id, H5_INDEX_NAME, H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by object name in decreasing order failed\n"); + printf(" H5Ovisit by object name in decreasing order failed\n"); PART_ERROR(H5Ovisit_obj_name_decreasing); } if (i != 2 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_obj_name_decreasing); } @@ -5790,7 +5781,7 @@ test_object_visit_soft_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_create_order_increasing); } @@ -5800,13 +5791,13 @@ test_object_visit_soft_link(void) if (H5Ovisit3(subgroup_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by creation order in increasing order failed\n"); + printf(" H5Ovisit by creation order in increasing order failed\n"); PART_ERROR(H5Ovisit_create_order_increasing); } if (i != 3 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_create_order_increasing); } @@ -5820,7 +5811,7 @@ test_object_visit_soft_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_create_order_decreasing); } @@ -5830,13 +5821,13 @@ test_object_visit_soft_link(void) if (H5Ovisit3(subgroup_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit by creation order in decreasing order failed\n"); + printf(" H5Ovisit by creation order in decreasing order failed\n"); PART_ERROR(H5Ovisit_create_order_decreasing); } if (i != 4 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_create_order_decreasing); } @@ -5855,13 +5846,13 @@ test_object_visit_soft_link(void) if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n"); + printf(" H5Ovisit_by_name by object name in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } if (i != OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } @@ -5873,13 +5864,13 @@ test_object_visit_soft_link(void) H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n"); + printf(" H5Ovisit_by_name by object name in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } if (i != OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_increasing); } @@ -5898,13 +5889,13 @@ test_object_visit_soft_link(void) if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n"); + printf(" H5Ovisit_by_name by object name in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } if (i != 2 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } @@ -5916,13 +5907,13 @@ test_object_visit_soft_link(void) H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n"); + printf(" H5Ovisit_by_name by object name in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } if (i != 2 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_obj_name_decreasing); } @@ -5936,7 +5927,7 @@ test_object_visit_soft_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_by_name_create_order_increasing); } @@ -5947,13 +5938,13 @@ test_object_visit_soft_link(void) if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } if (i != 3 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } @@ -5965,13 +5956,13 @@ test_object_visit_soft_link(void) H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in increasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } if (i != 3 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_increasing); } @@ -5985,7 +5976,7 @@ test_object_visit_soft_link(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) { SKIPPED(); - HDprintf(" creation order tracking isn't supported with this VOL connector\n"); + printf(" creation order tracking isn't supported with this VOL connector\n"); PART_EMPTY(H5Ovisit_by_name_create_order_decreasing); } @@ -5996,13 +5987,13 @@ test_object_visit_soft_link(void) if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } if (i != 4 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } @@ -6014,13 +6005,13 @@ test_object_visit_soft_link(void) H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); + printf(" H5Ovisit_by_name by creation order in decreasing order failed\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } if (i != 4 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) { H5_FAILED(); - HDprintf(" some objects were not visited!\n"); + printf(" some objects were not visited!\n"); PART_ERROR(H5Ovisit_by_name_create_order_decreasing); } @@ -6081,8 +6072,7 @@ test_object_visit_invalid_params(void) if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf( - " API functions for basic file, group, or iterate aren't supported with this connector\n"); + printf(" API functions for basic file, group, or iterate aren't supported with this connector\n"); return 0; } @@ -6090,28 +6080,28 @@ test_object_visit_invalid_params(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", - OBJECT_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", + OBJECT_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME); goto error; } if ((group_id2 = H5Gcreate2(group_id, OBJECT_VISIT_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_INVALID_PARAMS_TEST_GROUP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_VISIT_INVALID_PARAMS_TEST_GROUP_NAME); goto error; } @@ -6132,7 +6122,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit succeeded with an invalid object ID!\n"); + printf(" H5Ovisit succeeded with an invalid object ID!\n"); PART_ERROR(H5Ovisit_invalid_obj_id); } @@ -6153,7 +6143,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Ovisit succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Ovisit_invalid_index_type); } @@ -6166,7 +6156,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Ovisit succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Ovisit_invalid_index_type); } @@ -6187,7 +6177,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Ovisit_invalid_iter_order); } @@ -6200,7 +6190,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Ovisit_invalid_iter_order); } @@ -6221,7 +6211,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with an invalid location ID!\n"); + printf(" H5Ovisit_by_name succeeded with an invalid location ID!\n"); PART_ERROR(H5Ovisit_by_name_invalid_loc_id); } @@ -6242,7 +6232,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with a NULL object name!\n"); + printf(" H5Ovisit_by_name succeeded with a NULL object name!\n"); PART_ERROR(H5Ovisit_by_name_invalid_obj_name); } @@ -6255,7 +6245,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with an invalid object name of ''!\n"); + printf(" H5Ovisit_by_name succeeded with an invalid object name of ''!\n"); PART_ERROR(H5Ovisit_by_name_invalid_obj_name); } @@ -6276,7 +6266,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); + printf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_UNKNOWN!\n"); PART_ERROR(H5Ovisit_by_name_invalid_index_type); } @@ -6289,7 +6279,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_N!\n"); + printf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_N!\n"); PART_ERROR(H5Ovisit_by_name_invalid_index_type); } @@ -6310,7 +6300,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); + printf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n"); PART_ERROR(H5Ovisit_by_name_invalid_iter_order); } @@ -6323,7 +6313,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_N!\n"); + printf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_N!\n"); PART_ERROR(H5Ovisit_by_name_invalid_iter_order); } @@ -6344,7 +6334,7 @@ test_object_visit_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Ovisit_by_name succeeded with an invalid LAPL!\n"); + printf(" H5Ovisit_by_name succeeded with an invalid LAPL!\n"); PART_ERROR(H5Ovisit_by_name_invalid_lapl); } @@ -6404,8 +6394,8 @@ test_close_object(void) !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) { SKIPPED(); - HDprintf(" API functions for basic file, group, object, dataset, attribute, or stored datatype " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, object, dataset, attribute, or stored datatype " + "aren't supported with this connector\n"); return 0; } @@ -6413,20 +6403,20 @@ test_close_object(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_CLOSE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_CLOSE_TEST_GROUP_NAME); + printf(" couldn't create container subgroup '%s'\n", OBJECT_CLOSE_TEST_GROUP_NAME); goto error; } @@ -6447,7 +6437,7 @@ test_close_object(void) if ((group_id2 = H5Gcreate2(group_id, OBJECT_CLOSE_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create group '%s'\n", OBJECT_CLOSE_TEST_GRP_NAME); + printf(" couldn't create group '%s'\n", OBJECT_CLOSE_TEST_GRP_NAME); PART_ERROR(H5Oclose_group); } @@ -6459,13 +6449,13 @@ test_close_object(void) if ((group_id2 = H5Oopen(group_id, OBJECT_CLOSE_TEST_GRP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open group '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_GRP_NAME); + printf(" couldn't open group '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_GRP_NAME); PART_ERROR(H5Oclose_group); } if (H5Oclose(group_id2) < 0) { H5_FAILED(); - HDprintf(" couldn't close group '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_GRP_NAME); + printf(" couldn't close group '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_GRP_NAME); PART_ERROR(H5Oclose_group); } @@ -6480,7 +6470,7 @@ test_close_object(void) if ((dset_id = H5Dcreate2(group_id, OBJECT_CLOSE_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create dataset '%s'\n", OBJECT_CLOSE_TEST_DSET_NAME); + printf(" couldn't create dataset '%s'\n", OBJECT_CLOSE_TEST_DSET_NAME); PART_ERROR(H5Oclose_dset); } @@ -6492,13 +6482,13 @@ test_close_object(void) if ((dset_id = H5Oopen(group_id, OBJECT_CLOSE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_DSET_NAME); + printf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_DSET_NAME); PART_ERROR(H5Oclose_dset); } if (H5Oclose(dset_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close dataset '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_DSET_NAME); + printf(" couldn't close dataset '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_DSET_NAME); PART_ERROR(H5Oclose_dset); } @@ -6512,14 +6502,14 @@ test_close_object(void) if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME); + printf(" couldn't create datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME); PART_ERROR(H5Oclose_dtype); } if (H5Tcommit2(group_id, OBJECT_CLOSE_TEST_TYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); - HDprintf(" couldn't commit datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME); + printf(" couldn't commit datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME); PART_ERROR(H5Oclose_dtype); } @@ -6531,13 +6521,13 @@ test_close_object(void) if ((dtype_id = H5Oopen(group_id, OBJECT_CLOSE_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_TYPE_NAME); + printf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_TYPE_NAME); PART_ERROR(H5Oclose_dtype); } if (H5Oclose(dtype_id) < 0) { H5_FAILED(); - HDprintf(" couldn't close datatype '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_TYPE_NAME); + printf(" couldn't close datatype '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_TYPE_NAME); PART_ERROR(H5Oclose_dtype); } @@ -6596,13 +6586,13 @@ test_close_object_invalid_params(void) /* Make sure the connector supports the API functions being tested */ if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file or object aren't supported with this connector\n"); + printf(" API functions for basic file or object aren't supported with this connector\n"); return 0; } if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } @@ -6614,7 +6604,7 @@ test_close_object_invalid_params(void) if (err_ret >= 0) { H5_FAILED(); - HDprintf(" H5Oclose succeeded with an invalid object ID!\n"); + printf(" H5Oclose succeeded with an invalid object ID!\n"); goto error; } @@ -6656,8 +6646,8 @@ test_close_invalid_objects(void) if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC)) { SKIPPED(); - HDprintf(" API functions for basic file, group, or object " - "aren't supported with this connector\n"); + printf(" API functions for basic file, group, or object " + "aren't supported with this connector\n"); return 0; } @@ -6668,20 +6658,20 @@ test_close_invalid_objects(void) if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, fapl_id)) < 0) { H5_FAILED(); - HDprintf(" couldn't open file '%s'\n", H5_api_test_filename); + printf(" couldn't open file '%s'\n", H5_api_test_filename); goto error; } if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); + printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME); goto error; } if ((group_id = H5Gcreate2(container_group, OBJECT_CLOSE_INVALID_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); - HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME); + printf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME); goto error; } @@ -6712,7 +6702,7 @@ test_close_invalid_objects(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Oclose succeeded with an invalid object (file)!\n"); + printf(" H5Oclose succeeded with an invalid object (file)!\n"); PART_ERROR(H5Oclose_file); } @@ -6732,7 +6722,7 @@ test_close_invalid_objects(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Oclose succeeded with an invalid object (property list)!\n"); + printf(" H5Oclose succeeded with an invalid object (property list)!\n"); PART_ERROR(H5Oclose_plist); } @@ -6752,7 +6742,7 @@ test_close_invalid_objects(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Oclose succeeded with an invalid object (data space)!\n"); + printf(" H5Oclose succeeded with an invalid object (data space)!\n"); PART_ERROR(H5Oclose_dspace); } @@ -6772,7 +6762,7 @@ test_close_invalid_objects(void) if (status >= 0) { H5_FAILED(); - HDprintf(" H5Oclose succeeded with an invalid object (attribute)!\n"); + printf(" H5Oclose succeeded with an invalid object (attribute)!\n"); PART_ERROR(H5Oclose_attribute); } @@ -6894,31 +6884,31 @@ object_copy_attribute_iter_callback(hid_t location_id, const char *attr_name, co snprintf(expected_name, 256, "attr%d", (int)(*counter)); if (HDstrncmp(attr_name, expected_name, 256)) { - HDprintf(" attribute name '%s' did not match expected name '%s'\n", attr_name, expected_name); + printf(" attribute name '%s' did not match expected name '%s'\n", attr_name, expected_name); ret_value = H5_ITER_ERROR; goto done; } if ((attr_id = H5Aopen(location_id, attr_name, H5P_DEFAULT)) < 0) { - HDprintf(" failed to open attribute '%s'\n", attr_name); + printf(" failed to open attribute '%s'\n", attr_name); ret_value = H5_ITER_ERROR; goto done; } if ((attr_type = H5Aget_type(attr_id)) < 0) { - HDprintf(" failed to retrieve attribute's datatype\n"); + printf(" failed to retrieve attribute's datatype\n"); ret_value = H5_ITER_ERROR; goto done; } if ((types_equal = H5Tequal(attr_type, H5T_NATIVE_INT)) < 0) { - HDprintf(" failed to determine if attribute's datatype matched what is expected\n"); + printf(" failed to determine if attribute's datatype matched what is expected\n"); ret_value = H5_ITER_ERROR; goto done; } if (!types_equal) { - HDprintf(" attribute datatype did not match expected H5T_NATIVE_INT\n"); + printf(" attribute datatype did not match expected H5T_NATIVE_INT\n"); ret_value = H5_ITER_ERROR; goto done; } @@ -6950,20 +6940,20 @@ object_copy_soft_link_non_expand_callback(hid_t group, const char *name, const H /* Make sure the link type is soft */ if (H5L_TYPE_SOFT != info->type) { - HDprintf(" link type was not H5L_TYPE_SOFT; link must have been expanded!\n"); + printf(" link type was not H5L_TYPE_SOFT; link must have been expanded!\n"); ret_value = H5_ITER_ERROR; goto done; } if (NULL == (link_val_buf = calloc(1, info->u.val_size))) { - HDprintf(" failed to allocate buffer for link value\n"); + printf(" failed to allocate buffer for link value\n"); ret_value = H5_ITER_ERROR; goto done; } /* Retrieve the link's value */ if (H5Lget_val(group, name, link_val_buf, info->u.val_size, H5P_DEFAULT) < 0) { - HDprintf(" failed to retrieve value of link '%s'\n", name); + printf(" failed to retrieve value of link '%s'\n", name); ret_value = H5_ITER_ERROR; goto done; } @@ -6974,8 +6964,8 @@ object_copy_soft_link_non_expand_callback(hid_t group, const char *name, const H (int)(*counter)); if (strncmp(link_val_buf, expected_link_val, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_BUF_SIZE)) { - HDprintf(" value '%s' for link '%s' did not match expected value '%s'\n", (char *)link_val_buf, - name, expected_link_val); + printf(" value '%s' for link '%s' did not match expected value '%s'\n", (char *)link_val_buf, name, + expected_link_val); ret_value = H5_ITER_ERROR; goto done; } @@ -7005,7 +6995,7 @@ object_copy_soft_link_expand_callback(hid_t group, const char *name, const H5L_i /* Make sure the link type is hard */ if (H5L_TYPE_HARD != info->type) { - HDprintf(" link type was not H5L_TYPE_HARD; link must not have been expanded!\n"); + printf(" link type was not H5L_TYPE_HARD; link must not have been expanded!\n"); ret_value = H5_ITER_ERROR; goto done; } @@ -7014,7 +7004,7 @@ object_copy_soft_link_expand_callback(hid_t group, const char *name, const H5L_i snprintf(expected_link_name, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_BUF_SIZE, "link%d", (int)(*counter)); if (strncmp(name, expected_link_name, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_BUF_SIZE)) { - HDprintf(" link name '%s' did not match expected name '%s'\n", name, expected_link_name); + printf(" link name '%s' did not match expected name '%s'\n", name, expected_link_name); ret_value = H5_ITER_ERROR; goto done; } @@ -7043,31 +7033,31 @@ object_visit_callback(hid_t o_id, const char *name, const H5O_info2_t *object_in if (H5O_TYPE_GROUP == object_info->type) goto done; else - HDprintf(" type for object '%s' was not H5O_TYPE_GROUP\n", name); + printf(" type for object '%s' was not H5O_TYPE_GROUP\n", name); } else if (!HDstrncmp(name, OBJECT_VISIT_TEST_GROUP_NAME, strlen(OBJECT_VISIT_TEST_GROUP_NAME) + 1) && (counter_val == 2 || counter_val == 6 || counter_val == 9 || counter_val == 15)) { if (H5O_TYPE_GROUP == object_info->type) goto done; else - HDprintf(" type for object '%s' was not H5O_TYPE_GROUP\n", name); + printf(" type for object '%s' was not H5O_TYPE_GROUP\n", name); } else if (!HDstrncmp(name, OBJECT_VISIT_TEST_DSET_NAME, strlen(OBJECT_VISIT_TEST_DSET_NAME) + 1) && (counter_val == 1 || counter_val == 7 || counter_val == 10 || counter_val == 14)) { if (H5O_TYPE_DATASET == object_info->type) goto done; else - HDprintf(" type for object '%s' was not H5O_TYPE_DATASET\n", name); + printf(" type for object '%s' was not H5O_TYPE_DATASET\n", name); } else if (!HDstrncmp(name, OBJECT_VISIT_TEST_TYPE_NAME, strlen(OBJECT_VISIT_TEST_TYPE_NAME) + 1) && (counter_val == 3 || counter_val == 5 || counter_val == 11 || counter_val == 13)) { if (H5O_TYPE_NAMED_DATATYPE == object_info->type) goto done; else - HDprintf(" type for object '%s' was not H5O_TYPE_NAMED_DATATYPE\n", name); + printf(" type for object '%s' was not H5O_TYPE_NAMED_DATATYPE\n", name); } else - HDprintf(" object '%s' didn't match known names or came in an incorrect order\n", name); + printf(" object '%s' didn't match known names or came in an incorrect order\n", name); ret_val = -1; @@ -7089,12 +7079,12 @@ object_visit_dset_callback(hid_t o_id, const char *name, const H5O_info2_t *obje UNUSED(op_data); if (HDstrncmp(name, ".", strlen(".") + 1)) { - HDprintf(" object '%s' didn't match known names\n", name); + printf(" object '%s' didn't match known names\n", name); return -1; } if (H5O_TYPE_DATASET != object_info->type) { - HDprintf(" object type was not H5O_TYPE_DATASET\n"); + printf(" object type was not H5O_TYPE_DATASET\n"); return -1; } @@ -7113,12 +7103,12 @@ object_visit_dtype_callback(hid_t o_id, const char *name, const H5O_info2_t *obj UNUSED(op_data); if (HDstrncmp(name, ".", strlen(".") + 1)) { - HDprintf(" object '%s' didn't match known names\n", name); + printf(" object '%s' didn't match known names\n", name); return -1; } if (H5O_TYPE_NAMED_DATATYPE != object_info->type) { - HDprintf(" object type was not H5O_TYPE_NAMED_DATATYPE\n"); + printf(" object type was not H5O_TYPE_NAMED_DATATYPE\n"); return -1; } @@ -7142,10 +7132,10 @@ object_visit_soft_link_callback(hid_t o_id, const char *name, const H5O_info2_t if (H5O_TYPE_GROUP == object_info->type) goto done; else - HDprintf(" type for object '%s' was not H5O_TYPE_GROUP\n", name); + printf(" type for object '%s' was not H5O_TYPE_GROUP\n", name); } else - HDprintf(" object '%s' didn't match known names or came in an incorrect order\n", name); + printf(" object '%s' didn't match known names or came in an incorrect order\n", name); ret_val = -1; @@ -7185,19 +7175,19 @@ H5_api_object_test(void) size_t i; int nerrors; - HDprintf("**********************************************\n"); - HDprintf("* *\n"); - HDprintf("* API Object Tests *\n"); - HDprintf("* *\n"); - HDprintf("**********************************************\n\n"); + printf("**********************************************\n"); + printf("* *\n"); + printf("* API Object Tests *\n"); + printf("* *\n"); + printf("**********************************************\n\n"); for (i = 0, nerrors = 0; i < ARRAY_LENGTH(object_tests); i++) { nerrors += (*object_tests[i])() ? 1 : 0; } - HDprintf("\n"); + printf("\n"); - HDprintf("Cleaning up testing files\n"); + printf("Cleaning up testing files\n"); cleanup_files(); return nerrors; diff --git a/test/API/H5_api_test.c b/test/API/H5_api_test.c index 3719524..411062e 100644 --- a/test/API/H5_api_test.c +++ b/test/API/H5_api_test.c @@ -162,7 +162,7 @@ main(int argc, char **argv) TEST_FILE_NAME); if (NULL == (vol_connector_string = HDgetenv(HDF5_VOL_CONNECTOR))) { - HDprintf("No VOL connector selected; using native VOL connector\n"); + printf("No VOL connector selected; using native VOL connector\n"); vol_connector_name = "native"; vol_connector_info = NULL; } @@ -170,13 +170,13 @@ main(int argc, char **argv) char *token; if (NULL == (vol_connector_string_copy = HDstrdup(vol_connector_string))) { - HDfprintf(stderr, "Unable to copy VOL connector string\n"); + fprintf(stderr, "Unable to copy VOL connector string\n"); err_occurred = TRUE; goto done; } if (NULL == (token = HDstrtok(vol_connector_string_copy, " "))) { - HDfprintf(stderr, "Error while parsing VOL connector string\n"); + fprintf(stderr, "Error while parsing VOL connector string\n"); err_occurred = TRUE; goto done; } @@ -188,15 +188,15 @@ main(int argc, char **argv) } } - HDprintf("Running API tests with VOL connector '%s' and info string '%s'\n\n", vol_connector_name, - vol_connector_info ? vol_connector_info : ""); - HDprintf("Test parameters:\n"); - HDprintf(" - Test file name: '%s'\n", H5_api_test_filename); - HDprintf(" - Test seed: %u\n", seed); - HDprintf("\n\n"); + printf("Running API tests with VOL connector '%s' and info string '%s'\n\n", vol_connector_name, + vol_connector_info ? vol_connector_info : ""); + printf("Test parameters:\n"); + printf(" - Test file name: '%s'\n", H5_api_test_filename); + printf(" - Test seed: %u\n", seed); + printf("\n\n"); if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0) { - HDfprintf(stderr, "Unable to create FAPL\n"); + fprintf(stderr, "Unable to create FAPL\n"); err_occurred = TRUE; goto done; } @@ -212,14 +212,14 @@ main(int argc, char **argv) htri_t is_registered; if ((is_registered = H5VLis_connector_registered_by_name(vol_connector_name)) < 0) { - HDfprintf(stderr, "Unable to determine if VOL connector is registered\n"); + fprintf(stderr, "Unable to determine if VOL connector is registered\n"); err_occurred = TRUE; goto done; } if (!is_registered) { - HDfprintf(stderr, "Specified VOL connector '%s' wasn't correctly registered!\n", - vol_connector_name); + fprintf(stderr, "Specified VOL connector '%s' wasn't correctly registered!\n", + vol_connector_name); err_occurred = TRUE; goto done; } @@ -230,19 +230,19 @@ main(int argc, char **argv) * for the registered connector before running the tests. */ if (H5Pget_vol_id(fapl_id, &default_con_id) < 0) { - HDfprintf(stderr, "Couldn't retrieve ID of VOL connector set on default FAPL\n"); + fprintf(stderr, "Couldn't retrieve ID of VOL connector set on default FAPL\n"); err_occurred = TRUE; goto done; } if ((registered_con_id = H5VLget_connector_id_by_name(vol_connector_name)) < 0) { - HDfprintf(stderr, "Couldn't retrieve ID of registered VOL connector\n"); + fprintf(stderr, "Couldn't retrieve ID of registered VOL connector\n"); err_occurred = TRUE; goto done; } if (default_con_id != registered_con_id) { - HDfprintf(stderr, "VOL connector set on default FAPL didn't match specified VOL connector\n"); + fprintf(stderr, "VOL connector set on default FAPL didn't match specified VOL connector\n"); err_occurred = TRUE; goto done; } @@ -254,7 +254,7 @@ main(int argc, char **argv) */ vol_cap_flags_g = H5VL_CAP_FLAG_NONE; if (H5Pget_vol_cap_flags(fapl_id, &vol_cap_flags_g) < 0) { - HDfprintf(stderr, "Unable to retrieve VOL connector capability flags\n"); + fprintf(stderr, "Unable to retrieve VOL connector capability flags\n"); err_occurred = TRUE; goto done; } @@ -264,7 +264,7 @@ main(int argc, char **argv) * except for those which test file creation. */ if (create_test_container(H5_api_test_filename, vol_cap_flags_g) < 0) { - HDfprintf(stderr, "Unable to create testing container file '%s'\n", H5_api_test_filename); + fprintf(stderr, "Unable to create testing container file '%s'\n", H5_api_test_filename); err_occurred = TRUE; goto done; } @@ -272,36 +272,34 @@ main(int argc, char **argv) /* Run all the tests that are enabled */ H5_api_test_run(); - HDprintf("Cleaning up testing files\n"); + printf("Cleaning up testing files\n"); H5Fdelete(H5_api_test_filename, fapl_id); if (n_tests_run_g > 0) { - HDprintf("%zu/%zu (%.2f%%) API tests passed with VOL connector '%s'\n", n_tests_passed_g, - n_tests_run_g, ((double)n_tests_passed_g / (double)n_tests_run_g * 100.0), - vol_connector_name); - HDprintf("%zu/%zu (%.2f%%) API tests did not pass with VOL connector '%s'\n", n_tests_failed_g, - n_tests_run_g, ((double)n_tests_failed_g / (double)n_tests_run_g * 100.0), - vol_connector_name); - HDprintf("%zu/%zu (%.2f%%) API tests were skipped with VOL connector '%s'\n", n_tests_skipped_g, - n_tests_run_g, ((double)n_tests_skipped_g / (double)n_tests_run_g * 100.0), - vol_connector_name); + printf("%zu/%zu (%.2f%%) API tests passed with VOL connector '%s'\n", n_tests_passed_g, n_tests_run_g, + ((double)n_tests_passed_g / (double)n_tests_run_g * 100.0), vol_connector_name); + printf("%zu/%zu (%.2f%%) API tests did not pass with VOL connector '%s'\n", n_tests_failed_g, + n_tests_run_g, ((double)n_tests_failed_g / (double)n_tests_run_g * 100.0), vol_connector_name); + printf("%zu/%zu (%.2f%%) API tests were skipped with VOL connector '%s'\n", n_tests_skipped_g, + n_tests_run_g, ((double)n_tests_skipped_g / (double)n_tests_run_g * 100.0), + vol_connector_name); } done: HDfree(vol_connector_string_copy); if (default_con_id >= 0 && H5VLclose(default_con_id) < 0) { - HDfprintf(stderr, "Unable to close VOL connector ID\n"); + fprintf(stderr, "Unable to close VOL connector ID\n"); err_occurred = TRUE; } if (registered_con_id >= 0 && H5VLclose(registered_con_id) < 0) { - HDfprintf(stderr, "Unable to close VOL connector ID\n"); + fprintf(stderr, "Unable to close VOL connector ID\n"); err_occurred = TRUE; } if (fapl_id >= 0 && H5Pclose(fapl_id) < 0) { - HDfprintf(stderr, "Unable to close FAPL\n"); + fprintf(stderr, "Unable to close FAPL\n"); err_occurred = TRUE; } diff --git a/test/API/H5_api_test_util.c b/test/API/H5_api_test_util.c index c37a9ed..cab1de3 100644 --- a/test/API/H5_api_test_util.c +++ b/test/API/H5_api_test_util.c @@ -167,13 +167,13 @@ roll_datatype: gen_func = generate_random_datatype_array; break; default: - HDprintf(" invalid datatype class\n"); + printf(" invalid datatype class\n"); goto done; break; } if ((datatype = (gen_func)(parent_class, is_compact)) < 0) { - HDprintf(" couldn't generate datatype\n"); + printf(" couldn't generate datatype\n"); goto done; } @@ -185,7 +185,7 @@ roll_datatype: */ if (depth == 1) { if (0 == (type_size = H5Tget_size(datatype))) { - HDprintf(" failed to retrieve datatype's size\n"); + printf(" failed to retrieve datatype's size\n"); H5Tclose(datatype); datatype = H5I_INVALID_HID; goto done; @@ -267,12 +267,12 @@ generate_random_datatype_integer(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_ type_to_copy = H5T_STD_U64LE; break; default: - HDprintf(" invalid value for predefined integer type; should not happen\n"); + printf(" invalid value for predefined integer type; should not happen\n"); goto done; } if ((datatype = H5Tcopy(type_to_copy)) < 0) { - HDprintf(" couldn't copy predefined integer type\n"); + printf(" couldn't copy predefined integer type\n"); goto done; } @@ -281,7 +281,7 @@ generate_random_datatype_integer(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_ done: if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) { if (H5Tclose(datatype) < 0) - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); } return ret_value; @@ -309,12 +309,12 @@ generate_random_datatype_float(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t break; default: - HDprintf(" invalid value for floating point type; should not happen\n"); + printf(" invalid value for floating point type; should not happen\n"); goto done; } if ((datatype = H5Tcopy(type_to_copy)) < 0) { - HDprintf(" couldn't copy predefined floating-point type\n"); + printf(" couldn't copy predefined floating-point type\n"); goto done; } @@ -323,7 +323,7 @@ generate_random_datatype_float(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t done: if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) { if (H5Tclose(datatype) < 0) - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); } return ret_value; @@ -344,12 +344,12 @@ generate_random_datatype_string(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t if (0 == (rand() % 2)) { #endif if ((datatype = H5Tcreate(H5T_STRING, (size_t)(rand() % STRING_TYPE_MAX_SIZE) + 1)) < 0) { - HDprintf(" couldn't create fixed-length string datatype\n"); + printf(" couldn't create fixed-length string datatype\n"); goto done; } if (H5Tset_strpad(datatype, H5T_STR_NULLPAD) < 0) { - HDprintf(" couldn't set H5T_STR_NULLPAD for fixed-length string type\n"); + printf(" couldn't set H5T_STR_NULLPAD for fixed-length string type\n"); goto done; } #if 0 /* Currently, all VL types are disabled */ @@ -358,20 +358,20 @@ generate_random_datatype_string(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t if ((datatype = H5Tcreate(H5T_STRING, H5T_VARIABLE)) < 0) { H5_FAILED(); - HDprintf(" couldn't create variable-length string datatype\n"); + printf(" couldn't create variable-length string datatype\n"); goto done; } if (H5Tset_strpad(datatype, H5T_STR_NULLTERM) < 0) { H5_FAILED(); - HDprintf(" couldn't set H5T_STR_NULLTERM for variable-length string type\n"); + printf(" couldn't set H5T_STR_NULLTERM for variable-length string type\n"); goto done; } } #endif if (H5Tset_cset(datatype, H5T_CSET_ASCII) < 0) { - HDprintf(" couldn't set string datatype character set\n"); + printf(" couldn't set string datatype character set\n"); goto done; } @@ -380,7 +380,7 @@ generate_random_datatype_string(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t done: if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) { if (H5Tclose(datatype) < 0) - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); } return ret_value; @@ -400,7 +400,7 @@ generate_random_datatype_compound(H5T_class_t H5_ATTR_UNUSED parent_class, hbool compound_members[i] = H5I_INVALID_HID; if ((datatype = H5Tcreate(H5T_COMPOUND, 1)) < 0) { - HDprintf(" couldn't create compound datatype\n"); + printf(" couldn't create compound datatype\n"); goto done; } @@ -413,24 +413,24 @@ generate_random_datatype_compound(H5T_class_t H5_ATTR_UNUSED parent_class, hbool HDsnprintf(member_name, 256, "compound_member%zu", i); if ((compound_members[i] = generate_random_datatype(H5T_COMPOUND, is_compact)) < 0) { - HDprintf(" couldn't create compound datatype member %zu\n", i); + printf(" couldn't create compound datatype member %zu\n", i); goto done; } if (!(member_size = H5Tget_size(compound_members[i]))) { - HDprintf(" couldn't get compound member %zu size\n", i); + printf(" couldn't get compound member %zu size\n", i); goto done; } compound_size += member_size; if (H5Tset_size(datatype, compound_size) < 0) { - HDprintf(" couldn't set size for compound datatype\n"); + printf(" couldn't set size for compound datatype\n"); goto done; } if (H5Tinsert(datatype, member_name, next_offset, compound_members[i]) < 0) { - HDprintf(" couldn't insert compound datatype member %zu\n", i); + printf(" couldn't insert compound datatype member %zu\n", i); goto done; } @@ -442,13 +442,13 @@ generate_random_datatype_compound(H5T_class_t H5_ATTR_UNUSED parent_class, hbool done: for (size_t i = 0; i < COMPOUND_TYPE_MAX_MEMBERS; i++) { if (compound_members[i] > 0 && H5Tclose(compound_members[i]) < 0) { - HDprintf(" couldn't close compound member %zu\n", i); + printf(" couldn't close compound member %zu\n", i); } } if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) { if (H5Tclose(datatype) < 0) - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); } return ret_value; @@ -464,7 +464,7 @@ generate_random_datatype_reference(H5T_class_t H5_ATTR_UNUSED parent_class, hboo if (0 == (rand() % 2)) { #endif if ((datatype = H5Tcopy(H5T_STD_REF_OBJ)) < 0) { - HDprintf(" couldn't copy object reference datatype\n"); + printf(" couldn't copy object reference datatype\n"); goto done; } #if 0 /* Region references are currently unsupported */ @@ -472,7 +472,7 @@ generate_random_datatype_reference(H5T_class_t H5_ATTR_UNUSED parent_class, hboo else { if ((datatype = H5Tcopy(H5T_STD_REF_DSETREG)) < 0) { H5_FAILED(); - HDprintf(" couldn't copy region reference datatype\n"); + printf(" couldn't copy region reference datatype\n"); goto done; } } @@ -483,7 +483,7 @@ generate_random_datatype_reference(H5T_class_t H5_ATTR_UNUSED parent_class, hboo done: if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) { if (H5Tclose(datatype) < 0) - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); } return ret_value; @@ -498,14 +498,14 @@ generate_random_datatype_enum(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t H hid_t ret_value = H5I_INVALID_HID; if ((datatype = H5Tenum_create(H5T_NATIVE_INT)) < 0) { - HDprintf(" couldn't create enum datatype\n"); + printf(" couldn't create enum datatype\n"); goto done; } num_members = (size_t)(rand() % ENUM_TYPE_MAX_MEMBERS + 1); if (NULL == (enum_member_vals = HDmalloc(num_members * sizeof(int)))) { - HDprintf(" couldn't allocate space for enum members\n"); + printf(" couldn't allocate space for enum members\n"); goto done; } @@ -529,7 +529,7 @@ generate_random_datatype_enum(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t H enum_member_vals[i] = enum_val; if (H5Tenum_insert(datatype, name, &enum_val) < 0) { - HDprintf(" couldn't insert member into enum datatype\n"); + printf(" couldn't insert member into enum datatype\n"); goto done; } } @@ -541,7 +541,7 @@ done: if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) { if (H5Tclose(datatype) < 0) - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); } return ret_value; @@ -559,7 +559,7 @@ generate_random_datatype_array(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t ndims = (unsigned)(rand() % ARRAY_TYPE_MAX_DIMS + 1); if (NULL == (array_dims = HDmalloc(ndims * sizeof(*array_dims)))) { - HDprintf(" couldn't allocate space for array datatype dims\n"); + printf(" couldn't allocate space for array datatype dims\n"); goto done; } @@ -567,12 +567,12 @@ generate_random_datatype_array(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t array_dims[i] = (hsize_t)(rand() % MAX_DIM_SIZE + 1); if ((base_datatype = generate_random_datatype(H5T_ARRAY, is_compact)) < 0) { - HDprintf(" couldn't create array base datatype\n"); + printf(" couldn't create array base datatype\n"); goto done; } if ((datatype = H5Tarray_create2(base_datatype, ndims, array_dims)) < 0) { - HDprintf(" couldn't create array datatype\n"); + printf(" couldn't create array datatype\n"); goto done; } @@ -583,12 +583,12 @@ done: if (base_datatype >= 0) { if (H5Tclose(base_datatype) < 0) - HDprintf(" couldn't close array base datatype\n"); + printf(" couldn't close array base datatype\n"); } if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) { if (H5Tclose(datatype) < 0) - HDprintf(" couldn't close datatype\n"); + printf(" couldn't close datatype\n"); } return ret_value; @@ -608,8 +608,8 @@ generate_random_dataspace(int rank, const hsize_t *max_dims, hsize_t *dims_out, if (rank < 0) TEST_ERROR; if (is_compact && (rank > COMPACT_SPACE_MAX_DIMS)) { - HDprintf(" current rank of compact dataspace (%lld) exceeds maximum dimensionality (%lld)\n", - (long long)rank, (long long)COMPACT_SPACE_MAX_DIMS); + printf(" current rank of compact dataspace (%lld) exceeds maximum dimensionality (%lld)\n", + (long long)rank, (long long)COMPACT_SPACE_MAX_DIMS); TEST_ERROR; } @@ -643,12 +643,12 @@ create_test_container(char *filename, uint64_t vol_cap_flags) hid_t group_id = H5I_INVALID_HID; if (!(vol_cap_flags & H5VL_CAP_FLAG_FILE_BASIC)) { - HDprintf(" VOL connector doesn't support file creation\n"); + printf(" VOL connector doesn't support file creation\n"); goto error; } if ((file_id = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { - HDprintf(" couldn't create testing container file '%s'\n", filename); + printf(" couldn't create testing container file '%s'\n", filename); goto error; } @@ -658,49 +658,49 @@ create_test_container(char *filename, uint64_t vol_cap_flags) */ if ((group_id = H5Gcreate2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - HDprintf(" created container group for Group tests\n"); + printf(" created container group for Group tests\n"); H5Gclose(group_id); } if ((group_id = H5Gcreate2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - HDprintf(" created container group for Attribute tests\n"); + printf(" created container group for Attribute tests\n"); H5Gclose(group_id); } if ((group_id = H5Gcreate2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - HDprintf(" created container group for Dataset tests\n"); + printf(" created container group for Dataset tests\n"); H5Gclose(group_id); } if ((group_id = H5Gcreate2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - HDprintf(" created container group for Datatype tests\n"); + printf(" created container group for Datatype tests\n"); H5Gclose(group_id); } if ((group_id = H5Gcreate2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - HDprintf(" created container group for Link tests\n"); + printf(" created container group for Link tests\n"); H5Gclose(group_id); } if ((group_id = H5Gcreate2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - HDprintf(" created container group for Object tests\n"); + printf(" created container group for Object tests\n"); H5Gclose(group_id); } if ((group_id = H5Gcreate2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - HDprintf(" created container group for Miscellaneous tests\n"); + printf(" created container group for Miscellaneous tests\n"); H5Gclose(group_id); } } if (H5Fclose(file_id) < 0) { - HDprintf(" failed to close testing container\n"); + printf(" failed to close testing container\n"); goto error; } @@ -729,23 +729,23 @@ prefix_filename(const char *prefix, const char *filename, char **filename_out) herr_t ret_value = SUCCEED; if (!prefix) { - HDprintf(" invalid file prefix\n"); + printf(" invalid file prefix\n"); ret_value = FAIL; goto done; } if (!filename || (*filename == '\0')) { - HDprintf(" invalid filename\n"); + printf(" invalid filename\n"); ret_value = FAIL; goto done; } if (!filename_out) { - HDprintf(" invalid filename_out buffer\n"); + printf(" invalid filename_out buffer\n"); ret_value = FAIL; goto done; } if (NULL == (out_buf = HDmalloc(H5_API_TEST_FILENAME_MAX_LENGTH))) { - HDprintf(" couldn't allocated filename buffer\n"); + printf(" couldn't allocated filename buffer\n"); ret_value = FAIL; goto done; } @@ -772,7 +772,7 @@ remove_test_file(const char *prefix, const char *filename) if (prefix) { if (prefix_filename(prefix, filename, &prefixed_filename) < 0) { - HDprintf(" couldn't prefix filename\n"); + printf(" couldn't prefix filename\n"); ret_value = FAIL; goto done; } @@ -783,7 +783,7 @@ remove_test_file(const char *prefix, const char *filename) test_file = filename; if (H5Fdelete(test_file, H5P_DEFAULT) < 0) { - HDprintf(" couldn't remove file '%s'\n", test_file); + printf(" couldn't remove file '%s'\n", test_file); ret_value = FAIL; goto done; } diff --git a/test/API/tarray.c b/test/API/tarray.c index 214a022..5780c66 100644 --- a/test/API/tarray.c +++ b/test/API/tarray.c @@ -1938,7 +1938,7 @@ test_compat(void) if (h5_driver_is_default_vfd_compatible(H5P_DEFAULT, &driver_is_default_compatible) < 0) TestErrPrintf("can't check if VFD is default VFD compatible\n"); if (!driver_is_default_compatible) { - HDprintf(" -- SKIPPED --\n"); + printf(" -- SKIPPED --\n"); return; } @@ -2194,7 +2194,7 @@ test_compat(void) CHECK_I(ret, "H5Fclose"); } /* end if */ else - HDprintf("***cannot open the pre-created compound datatype test file (%s)\n", testfile); + printf("***cannot open the pre-created compound datatype test file (%s)\n", testfile); } /* end test_compat() */ #endif diff --git a/test/API/tattr.c b/test/API/tattr.c index 476e32b..43d76ab 100644 --- a/test/API/tattr.c +++ b/test/API/tattr.c @@ -576,7 +576,7 @@ test_attr_flush(hid_t fapl) TestErrPrintf("attribute value wrong: rdata=%f, should be %f\n", rdata, 0.0); } else { - HDprintf("** SKIPPED attribute pre-read due to fill values not being supported **\n"); + printf("** SKIPPED attribute pre-read due to fill values not being supported **\n"); } ret = H5Awrite(att, H5T_NATIVE_DOUBLE, &wdata); @@ -936,10 +936,10 @@ test_attr_compound_read(hid_t fapl) for (i = 0; i < ATTR4_DIM1; i++) for (j = 0; j < ATTR4_DIM2; j++) if (HDmemcmp(&attr_data4[i][j], &read_data4[i][j], sizeof(struct attr4_struct)) != 0) { - HDprintf("%d: attribute data different: attr_data4[%d][%d].i=%d, read_data4[%d][%d].i=%d\n", - __LINE__, i, j, attr_data4[i][j].i, i, j, read_data4[i][j].i); - HDprintf("%d: attribute data different: attr_data4[%d][%d].d=%f, read_data4[%d][%d].d=%f\n", - __LINE__, i, j, attr_data4[i][j].d, i, j, read_data4[i][j].d); + printf("%d: attribute data different: attr_data4[%d][%d].i=%d, read_data4[%d][%d].i=%d\n", + __LINE__, i, j, attr_data4[i][j].i, i, j, read_data4[i][j].i); + printf("%d: attribute data different: attr_data4[%d][%d].d=%f, read_data4[%d][%d].d=%f\n", + __LINE__, i, j, attr_data4[i][j].d, i, j, read_data4[i][j].d); TestErrPrintf( "%d: attribute data different: attr_data4[%d][%d].c=%c, read_data4[%d][%d].c=%c\n", __LINE__, i, j, attr_data4[i][j].c, i, j, read_data4[i][j].c); @@ -1082,8 +1082,8 @@ test_attr_scalar_read(hid_t fapl) /* Verify the floating-poing value in this way to avoid compiler warning. */ if (!H5_FLT_ABS_EQUAL(rdata, attr_data5)) - HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Aread", - (double)attr_data5, (double)rdata, (int)__LINE__, __FILE__); + printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Aread", + (double)attr_data5, (double)rdata, (int)__LINE__, __FILE__); /* Get the attribute's dataspace */ sid = H5Aget_space(attr); @@ -7160,8 +7160,8 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for iterate aren't " - "supported with this connector\n"); + printf(" API functions for iterate aren't " + "supported with this connector\n"); return 1; } diff --git a/test/API/testhdf5.c b/test/API/testhdf5.c index 58cbfdf..5e0409c 100644 --- a/test/API/testhdf5.c +++ b/test/API/testhdf5.c @@ -377,13 +377,13 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); if (mpi_rank == 0) - HDprintf("*** Hint ***\n" - "You can use environment variable HDF5_PARAPREFIX to " - "run parallel test files in a\n" - "different directory or to add file type prefix. e.g.,\n" - " HDF5_PARAPREFIX=pfs:/PFS/user/me\n" - " export HDF5_PARAPREFIX\n" - "*** End of Hint ***\n"); + printf("*** Hint ***\n" + "You can use environment variable HDF5_PARAPREFIX to " + "run parallel test files in a\n" + "different directory or to add file type prefix. e.g.,\n" + " HDF5_PARAPREFIX=pfs:/PFS/user/me\n" + " export HDF5_PARAPREFIX\n" + "*** End of Hint ***\n"); explained = TRUE; #ifdef HDF5_PARAPREFIX @@ -560,25 +560,25 @@ main(int argc, char *argv[]) (void)argv; #endif - HDprintf("===================================\n"); - HDprintf("HDF5 TESTS START\n"); - HDprintf("===================================\n"); + printf("===================================\n"); + printf("HDF5 TESTS START\n"); + printf("===================================\n"); /* Initialize testing framework */ /* TestInit(argv[0], NULL, NULL); */ /* Tests are generally arranged from least to most complexity... */ /* AddTest("config", test_configure, cleanup_configure, "Configure definitions", NULL); */ - HDprintf("** CONFIGURE DEFINITIONS **\n"); + printf("** CONFIGURE DEFINITIONS **\n"); test_configure(); - HDprintf("\n"); + printf("\n"); /* AddTest("metadata", test_metadata, cleanup_metadata, "Encoding/decoding metadata", NULL); */ /* AddTest("checksum", test_checksum, cleanup_checksum, "Checksum algorithm", NULL); */ - HDprintf("** CHECKSUM ALGORITHM **\n"); + printf("** CHECKSUM ALGORITHM **\n"); test_checksum(); - HDprintf("\n"); + printf("\n"); /* AddTest("tst", test_tst, NULL, "Ternary Search Trees", NULL); */ @@ -589,89 +589,89 @@ main(int argc, char *argv[]) /* AddTest("refstr", test_refstr, NULL, "Reference Counted Strings", NULL); */ /* AddTest("file", test_file, cleanup_file, "Low-Level File I/O", NULL); */ - HDprintf("** LOW-LEVEL FILE I/O **\n"); + printf("** LOW-LEVEL FILE I/O **\n"); test_file(); - HDprintf("\n"); + printf("\n"); /* AddTest("objects", test_h5o, cleanup_h5o, "Generic Object Functions", NULL); */ - HDprintf("** GENERIC OBJECT FUNCTIONS **\n"); + printf("** GENERIC OBJECT FUNCTIONS **\n"); test_h5o(); - HDprintf("\n"); + printf("\n"); /* AddTest("h5s", test_h5s, cleanup_h5s, "Dataspaces", NULL); */ - HDprintf("** DATASPACES **\n"); + printf("** DATASPACES **\n"); test_h5s(); - HDprintf("\n"); + printf("\n"); /* AddTest("coords", test_coords, cleanup_coords, "Dataspace coordinates", NULL); */ - HDprintf("** DATASPACE COORDINATES **\n"); + printf("** DATASPACE COORDINATES **\n"); test_coords(); - HDprintf("\n"); + printf("\n"); /* AddTest("sohm", test_sohm, cleanup_sohm, "Shared Object Header Messages", NULL); */ /* AddTest("attr", test_attr, cleanup_attr, "Attributes", NULL); */ - HDprintf("** ATTRIBUTES **\n"); + printf("** ATTRIBUTES **\n"); test_attr(); - HDprintf("\n"); + printf("\n"); /* AddTest("select", test_select, cleanup_select, "Selections", NULL); */ - HDprintf("** SELECTIONS **\n"); + printf("** SELECTIONS **\n"); test_select(); - HDprintf("\n"); + printf("\n"); /* AddTest("time", test_time, cleanup_time, "Time Datatypes", NULL); */ - HDprintf("** TIME DATATYPES**\n"); + printf("** TIME DATATYPES**\n"); test_time(); - HDprintf("\n"); + printf("\n"); /* AddTest("ref_deprec", test_reference_deprec, cleanup_reference_deprec, "Deprecated References", NULL); */ /* AddTest("ref", test_reference, cleanup_reference, "References", NULL); */ - HDprintf("** REFERENCES **\n"); + printf("** REFERENCES **\n"); test_reference(); - HDprintf("\n"); + printf("\n"); /* AddTest("vltypes", test_vltypes, cleanup_vltypes, "Variable-Length Datatypes", NULL); */ - HDprintf("** VARIABLE-LENGTH DATATYPES **\n"); + printf("** VARIABLE-LENGTH DATATYPES **\n"); test_vltypes(); - HDprintf("\n"); + printf("\n"); /* AddTest("vlstrings", test_vlstrings, cleanup_vlstrings, "Variable-Length Strings", NULL); */ - HDprintf("** VARIABLE-LENGTH STRINGS **\n"); + printf("** VARIABLE-LENGTH STRINGS **\n"); test_vlstrings(); - HDprintf("\n"); + printf("\n"); /* AddTest("iterate", test_iterate, cleanup_iterate, "Group & Attribute Iteration", NULL); */ - HDprintf("** GROUP & ATTRIBUTE ITERATION **\n"); + printf("** GROUP & ATTRIBUTE ITERATION **\n"); test_iterate(); - HDprintf("\n"); + printf("\n"); /* AddTest("array", test_array, cleanup_array, "Array Datatypes", NULL); */ - HDprintf("** ARRAY DATATYPES **\n"); + printf("** ARRAY DATATYPES **\n"); test_array(); - HDprintf("\n"); + printf("\n"); /* AddTest("genprop", test_genprop, cleanup_genprop, "Generic Properties", NULL); */ - HDprintf("** GENERIC PROPERTIES **\n"); + printf("** GENERIC PROPERTIES **\n"); test_genprop(); - HDprintf("\n"); + printf("\n"); /* AddTest("unicode", test_unicode, cleanup_unicode, "UTF-8 Encoding", NULL); */ - HDprintf("** UTF-8 ENCODING **\n"); + printf("** UTF-8 ENCODING **\n"); test_unicode(); - HDprintf("\n"); + printf("\n"); /* AddTest("id", test_ids, NULL, "User-Created Identifiers", NULL); */ - HDprintf("** USER-CREATED IDENTIFIERS **\n"); + printf("** USER-CREATED IDENTIFIERS **\n"); test_ids(); - HDprintf("\n"); + printf("\n"); /* AddTest("misc", test_misc, cleanup_misc, "Miscellaneous", NULL); */ - HDprintf("** MISCELLANEOUS **\n"); + printf("** MISCELLANEOUS **\n"); test_misc(); - HDprintf("\n"); + printf("\n"); /* Display testing information */ /* TestInfo(argv[0]); */ @@ -690,7 +690,7 @@ main(int argc, char *argv[]) if (/* GetTestCleanup() && */ !getenv("HDF5_NOCLEANUP")) { /* TestCleanup(); */ - HDprintf("TEST CLEANUP\n"); + printf("TEST CLEANUP\n"); H5E_BEGIN_TRY cleanup_configure(); @@ -712,7 +712,7 @@ main(int argc, char *argv[]) cleanup_misc(); H5E_END_TRY; - HDprintf("\n"); + printf("\n"); } /* Release test infrastructure */ @@ -721,11 +721,11 @@ main(int argc, char *argv[]) /* Exit failure if errors encountered; else exit success. */ /* No need to print anything since PerformTests() already does. */ if (nerrors /* GetTestNumErrs() */ > 0) { - HDprintf("** HDF5 tests failed with %d errors **\n", nerrors); + printf("** HDF5 tests failed with %d errors **\n", nerrors); HDexit(EXIT_FAILURE); } else { - HDprintf("** HDF5 tests ran successfully **\n"); + printf("** HDF5 tests ran successfully **\n"); HDexit(EXIT_SUCCESS); } } /* end main() */ diff --git a/test/API/testhdf5.h b/test/API/testhdf5.h index 3d945f8..e4aaacd 100644 --- a/test/API/testhdf5.h +++ b/test/API/testhdf5.h @@ -207,15 +207,15 @@ #define TEST_STR "Test" #define CLEAN_STR "Cleanup" -#define AT() HDprintf(" at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); +#define AT() printf(" at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); #define TESTING(WHAT) \ { \ - HDprintf("Testing %-62s", WHAT); \ + printf("Testing %-62s", WHAT); \ HDfflush(stdout); \ } #define TESTING_2(WHAT) \ { \ - HDprintf(" Testing %-60s", WHAT); \ + printf(" Testing %-60s", WHAT); \ HDfflush(stdout); \ } #define PASSED() \ diff --git a/test/API/tfile.c b/test/API/tfile.c index 12c57e6..5462467 100644 --- a/test/API/tfile.c +++ b/test/API/tfile.c @@ -5742,7 +5742,7 @@ test_libver_bounds_copy(void) CHECK_I(ret, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } diff --git a/test/API/tgenprop.c b/test/API/tgenprop.c index c1ee8af..b22409a 100644 --- a/test/API/tgenprop.c +++ b/test/API/tgenprop.c @@ -703,8 +703,8 @@ test_genprop_basic_list(void) CHECK_I(ret, "H5Pget"); /* Verify the floating-poing value in this way to avoid compiler warning. */ if (!H5_FLT_ABS_EQUAL(prop2_value, *PROP2_DEF_VALUE)) - HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", - (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__); + printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", + (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__); /* Close list */ ret = H5Pclose(lid1); @@ -796,8 +796,8 @@ test_genprop_basic_list_prop(void) CHECK_I(ret, "H5Pget"); /* Verify the floating-poing value in this way to avoid compiler warning. */ if (!H5_FLT_ABS_EQUAL(prop2_value, *PROP2_DEF_VALUE)) - HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", - (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__); + printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", + (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__); /* Check values of temporary properties (set with regular values) */ ret = H5Pget(lid1, PROP3_NAME, &prop3_value); @@ -808,8 +808,8 @@ test_genprop_basic_list_prop(void) CHECK_I(ret, "H5Pget"); /* Verify the floating-poing value in this way to avoid compiler warning. */ if (!H5_DBL_ABS_EQUAL(prop4_value, *PROP4_DEF_VALUE)) - HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", - *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__); + printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", + *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__); /* Delete permanent property */ ret = H5Premove(lid1, PROP2_NAME); @@ -845,8 +845,8 @@ test_genprop_basic_list_prop(void) CHECK_I(ret, "H5Pget"); /* Verify the floating-poing value in this way to avoid compiler warning. */ if (!H5_DBL_ABS_EQUAL(prop4_value, *PROP4_DEF_VALUE)) - HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", - *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__); + printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", + *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__); /* Close list */ ret = H5Pclose(lid1); @@ -1253,8 +1253,8 @@ test_genprop_list_callback(void) CHECK_I(ret, "H5Pget"); /* Verify the floating-poing value in this way to avoid compiler warning. */ if (!H5_FLT_ABS_EQUAL(prop2_value, *PROP2_DEF_VALUE)) - HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", - (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__); + printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", + (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__); /* Check values of temporary properties (set with regular values) */ ret = H5Pget(lid1, PROP3_NAME, &prop3_value); @@ -1268,8 +1268,8 @@ test_genprop_list_callback(void) CHECK_I(ret, "H5Pget"); /* Verify the floating-poing value in this way to avoid compiler warning. */ if (!H5_DBL_ABS_EQUAL(prop4_value, *PROP4_DEF_VALUE)) - HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", - *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__); + printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget", + *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__); /* Verify get callback information for properties tracked */ VERIFY(prop1_cb_info.get_count, 1, "H5Pget"); diff --git a/test/API/th5s.c b/test/API/th5s.c index d27e57c..3e403e7 100644 --- a/test/API/th5s.c +++ b/test/API/th5s.c @@ -213,7 +213,7 @@ test_h5s_basic(void) CHECK_I(ret, "H5Fclose"); } else - HDprintf("***cannot open the pre-created H5S_MAX_RANK test file (%s)\n", testfile); + printf("***cannot open the pre-created H5S_MAX_RANK test file (%s)\n", testfile); } #endif /* Verify that incorrect dimensions don't work */ @@ -723,7 +723,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); } } } @@ -744,7 +744,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata_short[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]); } } } @@ -821,7 +821,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); } } @@ -846,8 +846,8 @@ test_h5s_zero_dim(void) for (k = 0; k < SPACE1_DIM3; k++) { if (rdata_real[i][j][k] != wdata_real[i][j][k]) { H5_FAILED(); - HDprintf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k, - rdata_real[i][j][k], wdata_real[i][j][k]); + printf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k, + rdata_real[i][j][k], wdata_real[i][j][k]); } } } @@ -870,7 +870,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); } } if ((vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) && @@ -919,7 +919,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); } } @@ -962,7 +962,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); } } } @@ -993,7 +993,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); } } } @@ -1014,7 +1014,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata_short[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]); } } } @@ -1074,8 +1074,8 @@ test_h5s_zero_dim(void) for (k = 0; k < SPACE1_DIM3; k++) { if (rdata_real[i][j][k] != wdata_real[i][j][k]) { H5_FAILED(); - HDprintf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k, - rdata_real[i][j][k], wdata_real[i][j][k]); + printf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k, + rdata_real[i][j][k], wdata_real[i][j][k]); } } } @@ -1161,7 +1161,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]); } } } @@ -1198,7 +1198,7 @@ test_h5s_zero_dim(void) for (j = 0; j < SPACE1_DIM3; j++) { if (rdata_short[i][j] != 7) { H5_FAILED(); - HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]); + printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]); } } } @@ -2479,10 +2479,10 @@ test_h5s_compound_scalar_read(void) ret = H5Dread(dataset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata); CHECK(ret, FAIL, "H5Dread"); if (HDmemcmp(&space4_data, &rdata, sizeof(struct space4_struct)) != 0) { - HDprintf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1, rdata.c1); - HDprintf("scalar data different: space4_data.u=%u, read_data4.u=%u\n", space4_data.u, rdata.u); - HDprintf("scalar data different: space4_data.f=%f, read_data4.f=%f\n", (double)space4_data.f, - (double)rdata.f); + printf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1, rdata.c1); + printf("scalar data different: space4_data.u=%u, read_data4.u=%u\n", space4_data.u, rdata.u); + printf("scalar data different: space4_data.f=%f, read_data4.f=%f\n", (double)space4_data.f, + (double)rdata.f); TestErrPrintf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1, rdata.c2); } /* end if */ diff --git a/test/API/titerate.c b/test/API/titerate.c index e528803..343c601 100644 --- a/test/API/titerate.c +++ b/test/API/titerate.c @@ -92,8 +92,8 @@ liter_cb(hid_t H5_ATTR_UNUSED group, const char *name, const H5L_info2_t H5_ATTR if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) { SKIPPED(); - HDprintf(" API functions for iterate aren't " - "supported with this connector\n"); + printf(" API functions for iterate aren't " + "supported with this connector\n"); return 1; } @@ -115,7 +115,7 @@ liter_cb(hid_t H5_ATTR_UNUSED group, const char *name, const H5L_info2_t H5_ATTR return (count2 > 10 ? 1 : 0); default: - HDprintf("invalid iteration command"); + printf("invalid iteration command"); return (-1); } /* end switch */ } /* end liter_cb() */ @@ -415,7 +415,7 @@ aiter_cb(hid_t H5_ATTR_UNUSED group, const char *name, const H5A_info_t H5_ATTR_ return (count2 > 10 ? 1 : 0); default: - HDprintf("invalid iteration command"); + printf("invalid iteration command"); return (-1); } /* end switch */ } /* end aiter_cb() */ @@ -619,8 +619,8 @@ liter_cb2(hid_t loc_id, const char *name, const H5L_info2_t H5_ATTR_UNUSED *link if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC)) { SKIPPED(); - HDprintf(" API functions for iterate and basic links aren't " - "supported with this connector\n"); + printf(" API functions for iterate and basic links aren't " + "supported with this connector\n"); return 1; } @@ -1068,7 +1068,7 @@ test_corrupted_attnamelen(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } diff --git a/test/API/tmisc.c b/test/API/tmisc.c index 6e323e1..4696bda 100644 --- a/test/API/tmisc.c +++ b/test/API/tmisc.c @@ -1044,16 +1044,16 @@ test_misc5(void) /* Verify the correct information was read in */ for (i = 0; i < (buf.len); i++) { - /* HDprintf("[%d]=%d\n",i, ((misc5_struct1 *)(buf.p))[i].st1_el1); */ + /* printf("[%d]=%d\n",i, ((misc5_struct1 *)(buf.p))[i].st1_el1); */ VERIFY(((misc5_struct1 *)(buf.p))[i].st1_el1, MISC5_DBGELVAL1, "H5Dread"); for (j = 0; j < (((misc5_struct1 *)(buf.p))[i].st1_el2.len); j++) { - /* HDprintf(" [%d]=%d\n",j, ((misc5_struct2 *)(((misc5_struct1 *) + /* printf(" [%d]=%d\n",j, ((misc5_struct2 *)(((misc5_struct1 *) * (buf.p))[i].st1_el2.p))[j].st2_el1); */ VERIFY(((misc5_struct2 *)(((misc5_struct1 *)(buf.p))[i].st1_el2.p))[j].st2_el1, MISC5_DBGELVAL2, "H5Dread"); for (k = 0; k < (((misc5_struct2 *)(((misc5_struct1 *)(buf.p))[i].st1_el2.p))[j].st2_el2.len); k++) { - /* HDprintf(" [%d]=%d\n",k, ((misc5_struct3 *)(((misc5_struct2 *) (((misc5_struct1 + /* printf(" [%d]=%d\n",k, ((misc5_struct3 *)(((misc5_struct2 *) (((misc5_struct1 * *)(buf.p))[i]. st1_el2.p))[j].st2_el2.p))[k].st3_el1); */ VERIFY(((misc5_struct3 *)(((misc5_struct2 *)(((misc5_struct1 *)(buf.p))[i].st1_el2.p))[j] .st2_el2.p))[k] @@ -1863,7 +1863,7 @@ test_misc10(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } @@ -3792,7 +3792,7 @@ test_misc20(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } @@ -5099,7 +5099,7 @@ test_misc25b(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } @@ -5362,7 +5362,7 @@ test_misc27(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } @@ -5590,7 +5590,7 @@ test_misc29(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } @@ -5889,7 +5889,7 @@ test_misc33(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } @@ -6192,7 +6192,7 @@ test_misc37(void) CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible"); if (!driver_is_default_compatible) { - HDprintf("-- SKIPPED --\n"); + printf("-- SKIPPED --\n"); return; } diff --git a/test/API/trefer.c b/test/API/trefer.c index c09b586..ea8888c 100644 --- a/test/API/trefer.c +++ b/test/API/trefer.c @@ -3266,7 +3266,7 @@ test_reference_perf(void) CHECK(ret, FAIL, "H5Rdestroy"); } if (VERBOSE_MED) - HDprintf("--- Object reference create time: %lfs\n", t / MAX_ITER_CREATE); + printf("--- Object reference create time: %lfs\n", t / MAX_ITER_CREATE); /* Create reference to dataset */ ret = H5Rcreate_object(fid1, "/Group1/Dataset1", H5P_DEFAULT, &wbuf[0]); @@ -3285,7 +3285,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Object reference write time: %lfs\n", t / MAX_ITER_WRITE); + printf("--- Object reference write time: %lfs\n", t / MAX_ITER_WRITE); /* Close Dataset */ ret = H5Dclose(dataset); @@ -3304,7 +3304,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Deprecated object reference create time: %lfs\n", t / MAX_ITER_CREATE); + printf("--- Deprecated object reference create time: %lfs\n", t / MAX_ITER_CREATE); /* Create reference to dataset */ ret = H5Rcreate(&wbuf_deprec[0], fid1, "/Group1/Dataset1", H5R_OBJECT1, H5I_INVALID_HID); @@ -3320,7 +3320,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Deprecated object reference write time: %lfs\n", t / MAX_ITER_WRITE); + printf("--- Deprecated object reference write time: %lfs\n", t / MAX_ITER_WRITE); /* Close Dataset */ ret = H5Dclose(dataset); @@ -3342,7 +3342,7 @@ test_reference_perf(void) CHECK(ret, FAIL, "H5Rdestroy"); } if (VERBOSE_MED) - HDprintf("--- Region reference create time: %lfs\n", t / MAX_ITER_CREATE); + printf("--- Region reference create time: %lfs\n", t / MAX_ITER_CREATE); /* Store first dataset region */ ret = H5Rcreate_region(fid1, "/Group1/Dataset1", sid1, H5P_DEFAULT, &wbuf_reg[0]); @@ -3358,7 +3358,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Region reference write time: %lfs\n", t / MAX_ITER_WRITE); + printf("--- Region reference write time: %lfs\n", t / MAX_ITER_WRITE); /* Close Dataset */ ret = H5Dclose(dataset); @@ -3378,7 +3378,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Deprecated region reference create time: %lfs\n", t / MAX_ITER_CREATE); + printf("--- Deprecated region reference create time: %lfs\n", t / MAX_ITER_CREATE); t = 0; for (i = 0; i < MAX_ITER_WRITE; i++) { @@ -3390,7 +3390,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Deprecated region reference write time: %lfs\n", t / MAX_ITER_WRITE); + printf("--- Deprecated region reference write time: %lfs\n", t / MAX_ITER_WRITE); /* Close Dataset */ ret = H5Dclose(dataset); @@ -3424,7 +3424,7 @@ test_reference_perf(void) CHECK(ret, FAIL, "H5Rdestroy"); } if (VERBOSE_MED) - HDprintf("--- Object reference read time: %lfs\n", t / MAX_ITER_READ); + printf("--- Object reference read time: %lfs\n", t / MAX_ITER_READ); /* Read selection from disk */ ret = H5Dread(dataset, H5T_STD_REF, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf); @@ -3470,7 +3470,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Deprecated object reference read time: %lfs\n", t / MAX_ITER_READ); + printf("--- Deprecated object reference read time: %lfs\n", t / MAX_ITER_READ); /* Close Dataset */ ret = H5Dclose(dataset); @@ -3492,7 +3492,7 @@ test_reference_perf(void) CHECK(ret, FAIL, "H5Rdestroy"); } if (VERBOSE_MED) - HDprintf("--- Region reference read time: %lfs\n", t / MAX_ITER_READ); + printf("--- Region reference read time: %lfs\n", t / MAX_ITER_READ); /* Read selection from disk */ ret = H5Dread(dataset, H5T_STD_REF, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf_reg); @@ -3516,7 +3516,7 @@ test_reference_perf(void) t += t2 - t1; } if (VERBOSE_MED) - HDprintf("--- Deprecated region reference read time: %lfs\n", t / MAX_ITER_READ); + printf("--- Deprecated region reference read time: %lfs\n", t / MAX_ITER_READ); /* Close Dataset */ ret = H5Dclose(dataset); diff --git a/test/API/tselect.c b/test/API/tselect.c index 619df42..34c90c3 100644 --- a/test/API/tselect.c +++ b/test/API/tselect.c @@ -1390,10 +1390,10 @@ test_select_hyper_stride(hid_t xfer_plist) tbuf = wbuf + loc1[i]; tbuf2 = rbuf + loc2[i]; if (*tbuf != *tbuf2) { - HDprintf("%d: hyperslab values don't match!, loc1[%d]=%d, loc2[%d]=%d\n", __LINE__, i, - (int)loc1[i], i, (int)loc2[i]); - HDprintf("wbuf=%p, tbuf=%p, rbuf=%p, tbuf2=%p\n", (void *)wbuf, (void *)tbuf, (void *)rbuf, - (void *)tbuf2); + printf("%d: hyperslab values don't match!, loc1[%d]=%d, loc2[%d]=%d\n", __LINE__, i, (int)loc1[i], + i, (int)loc2[i]); + printf("wbuf=%p, tbuf=%p, rbuf=%p, tbuf2=%p\n", (void *)wbuf, (void *)tbuf, (void *)rbuf, + (void *)tbuf2); TestErrPrintf("*tbuf=%u, *tbuf2=%u\n", (unsigned)*tbuf, (unsigned)*tbuf2); } /* end if */ } /* end for */ @@ -1835,14 +1835,14 @@ test_select_hyper_contig3(hid_t dset_type, hid_t xfer_plist) (k >= start[2] && k < (start[2] + count[2])) && (l >= start[3] && l < (start[3] + count[3]))) { if (*tbuf != *tbuf2) { - HDprintf("Error: hyperslab values don't match!\n"); + printf("Error: hyperslab values don't match!\n"); TestErrPrintf("Line: %d, i=%u, j=%u, k=%u, l=%u, *tbuf=%u,*tbuf2=%u\n", __LINE__, i, j, k, l, (unsigned)*tbuf, (unsigned)*tbuf2); } /* end if */ } /* end if */ else { if (*tbuf2 != 0) { - HDprintf("Error: invalid data in read buffer!\n"); + printf("Error: invalid data in read buffer!\n"); TestErrPrintf("Line: %d, i=%u, j=%u, k=%u, l=%u, *tbuf=%u,*tbuf2=%u\n", __LINE__, i, j, k, l, (unsigned)*tbuf, (unsigned)*tbuf2); } /* end if */ @@ -5316,10 +5316,10 @@ test_select_hyper_union_stagger(void) /* Verify input data */ for (i = 0; i < 8; i++) { if (data[input_loc[i][0]][input_loc[i][1]] != data_out[output_loc[i][0]][output_loc[i][1]]) { - HDprintf("input data #%d is wrong!\n", i); - HDprintf("input_loc=[%d][%d]\n", input_loc[i][0], input_loc[i][1]); - HDprintf("output_loc=[%d][%d]\n", output_loc[i][0], output_loc[i][1]); - HDprintf("data=%d\n", data[input_loc[i][0]][input_loc[i][1]]); + printf("input data #%d is wrong!\n", i); + printf("input_loc=[%d][%d]\n", input_loc[i][0], input_loc[i][1]); + printf("output_loc=[%d][%d]\n", output_loc[i][0], output_loc[i][1]); + printf("data=%d\n", data[input_loc[i][0]][input_loc[i][1]]); TestErrPrintf("data_out=%d\n", data_out[output_loc[i][0]][output_loc[i][1]]); } /* end if */ } /* end for */ @@ -5795,14 +5795,14 @@ test_select_hyper_and_2d(void) for (j = 0; j < SPACE2_DIM2; j++, tbuf++) { if ((i >= 5 && i <= 9) && (j >= 5 && j <= 9)) { if (*tbuf != *tbuf2) - HDprintf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__, - i, j, (int)*tbuf, (int)*tbuf2); + printf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__, + i, j, (int)*tbuf, (int)*tbuf2); tbuf2++; } /* end if */ else { if (*tbuf != 0) - HDprintf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j, - (int)*tbuf); + printf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j, + (int)*tbuf); } /* end else */ } /* end for */ @@ -5936,14 +5936,14 @@ test_select_hyper_xor_2d(void) ((i >= 5 && i <= 9) && ((j >= 0 && j <= 4) || (j >= 10 && j <= 14))) || ((i >= 10 && i <= 14) && (j >= 5 && j <= 14))) { if (*tbuf != *tbuf2) - HDprintf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__, - i, j, (int)*tbuf, (int)*tbuf2); + printf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__, + i, j, (int)*tbuf, (int)*tbuf2); tbuf2++; } /* end if */ else { if (*tbuf != 0) - HDprintf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j, - (int)*tbuf); + printf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j, + (int)*tbuf); } /* end else */ } /* end for */ @@ -6075,14 +6075,14 @@ test_select_hyper_notb_2d(void) for (j = 0; j < SPACE2_DIM2; j++, tbuf++) { if (((i >= 0 && i <= 4) && (j >= 0 && j <= 9)) || ((i >= 5 && i <= 9) && (j >= 0 && j <= 4))) { if (*tbuf != *tbuf2) - HDprintf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__, - i, j, (int)*tbuf, (int)*tbuf2); + printf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__, + i, j, (int)*tbuf, (int)*tbuf2); tbuf2++; } /* end if */ else { if (*tbuf != 0) - HDprintf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j, - (int)*tbuf); + printf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j, + (int)*tbuf); } /* end else */ } /* end for */ @@ -6262,14 +6262,14 @@ test_select_hyper_iter2(void *_elem, hid_t H5_ATTR_UNUSED type_id, unsigned ndim if (*tbuf != **tbuf2) { TestErrPrintf("Error in hyperslab iteration!\n"); - HDprintf("location: { "); + printf("location: { "); for (u = 0; u < ndim; u++) { - HDprintf("%2d", (int)point[u]); + printf("%2d", (int)point[u]); if (u < (ndim - 1)) - HDprintf(", "); + printf(", "); } /* end for */ - HDprintf("}\n"); - HDprintf("*tbuf=%d, **tbuf2=%d\n", *tbuf, **tbuf2); + printf("}\n"); + printf("*tbuf=%d, **tbuf2=%d\n", *tbuf, **tbuf2); return (-1); } /* end if */ else { @@ -16148,7 +16148,7 @@ test_select(void) test_select_hyper_contig_dr(H5T_STD_U16BE, H5P_DEFAULT); test_select_hyper_contig_dr(H5T_STD_U16BE, plist_id); #else - HDprintf("** SKIPPED a test due to file creation issues\n"); + printf("** SKIPPED a test due to file creation issues\n"); #endif #if 0 test_select_hyper_checker_board_dr(H5T_STD_U16LE, H5P_DEFAULT); @@ -16156,7 +16156,7 @@ test_select(void) test_select_hyper_checker_board_dr(H5T_STD_U16BE, H5P_DEFAULT); test_select_hyper_checker_board_dr(H5T_STD_U16BE, plist_id); #else - HDprintf("** SKIPPED a test due to assertion in HDF5\n"); + printf("** SKIPPED a test due to assertion in HDF5\n"); #endif test_select_hyper_copy(); /* Test hyperslab selection copying code */ test_select_point_copy(); /* Test point selection copying code */ @@ -16261,7 +16261,7 @@ test_select(void) test_select_hyper_chunk_offset(); test_select_hyper_chunk_offset2(); #else - HDprintf("** SKIPPED a test due to assertion in HDF5\n"); + printf("** SKIPPED a test due to assertion in HDF5\n"); #endif /* Test selection bounds with & without offsets */ diff --git a/test/API/ttime.c b/test/API/ttime.c index 74128fd..7735aad 100644 --- a/test/API/ttime.c +++ b/test/API/ttime.c @@ -176,13 +176,13 @@ test_time_io(void) tid = H5Dget_type(dsid); CHECK(tid, FAIL, "H5Dget_type"); if (H5Tget_class(tid) == H5T_TIME) - HDfprintf(stderr, "datatype class is H5T_TIME\n"); + fprintf(stderr, "datatype class is H5T_TIME\n"); status = H5Tclose(tid); CHECK(status, FAIL, "H5Tclose"); status = H5Dread(dsid, H5T_UNIX_D32LE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &timethen); CHECK(status, FAIL, "H5Dread"); - HDfprintf(stderr, "time written was: %s\n", HDctime(&timethen)); + fprintf(stderr, "time written was: %s\n", HDctime(&timethen)); status = H5Dclose(dsid); CHECK(status, FAIL, "H5Dclose"); diff --git a/test/API/tunicode.c b/test/API/tunicode.c index 04d0d8b..326de86 100644 --- a/test/API/tunicode.c +++ b/test/API/tunicode.c @@ -783,15 +783,15 @@ dump_string(const char *string) size_t length; size_t x; - HDprintf("The string was:\n %s", string); - HDprintf("Or in hex:\n"); + printf("The string was:\n %s", string); + printf("Or in hex:\n"); length = HDstrlen(string); for (x = 0; x < length; x++) - HDprintf("%x ", string[x] & (0x000000FF)); + printf("%x ", string[x] & (0x000000FF)); - HDprintf("\n"); + printf("\n"); } /* Main test. |