diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-07-27 20:43:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 20:43:30 (GMT) |
commit | 1e91d96fa02466ffe451319bdac1005f84dc7993 (patch) | |
tree | 4de04ef502c313dfd766497b20235188761146c0 /test/evict_on_close.c | |
parent | 95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff) | |
download | hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2 |
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'test/evict_on_close.c')
-rw-r--r-- | test/evict_on_close.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/test/evict_on_close.c b/test/evict_on_close.c index 7efe0e8..89a1ae0 100644 --- a/test/evict_on_close.c +++ b/test/evict_on_close.c @@ -151,7 +151,7 @@ generate_eoc_test_file(hid_t fapl_id) TEST_ERROR; /* Create a data buffer for dataset writes */ - if (NULL == (data = (int *)HDcalloc(NELEMENTS, sizeof(int)))) + if (NULL == (data = (int *)calloc(NELEMENTS, sizeof(int)))) TEST_ERROR; /* Create file */ @@ -183,7 +183,7 @@ generate_eoc_test_file(hid_t fapl_id) char subgroup_name[SUBGROUP_NAME_SIZE]; /* Create the group name */ - HDmemset(subgroup_name, '\0', SUBGROUP_NAME_SIZE); + memset(subgroup_name, '\0', SUBGROUP_NAME_SIZE); if (HDsnprintf(subgroup_name, (size_t)(SUBGROUP_NAME_SIZE - 1), "%d", i) < 0) TEST_ERROR; @@ -278,7 +278,7 @@ generate_eoc_test_file(hid_t fapl_id) char subgroup_name[SUBGROUP_NAME_SIZE]; /* Create the group name */ - HDmemset(subgroup_name, '\0', SUBGROUP_NAME_SIZE); + memset(subgroup_name, '\0', SUBGROUP_NAME_SIZE); if (HDsnprintf(subgroup_name, (size_t)(SUBGROUP_NAME_SIZE - 1), "%d", i) < 0) TEST_ERROR; @@ -546,7 +546,7 @@ generate_eoc_test_file(hid_t fapl_id) if (H5Pclose(fapl_copy_id) < 0) TEST_ERROR; - HDfree(data); + free(data); PASSED(); return fid; @@ -564,7 +564,7 @@ error: } H5E_END_TRY; - HDfree(data); + free(data); H5_FAILED(); return -1; @@ -601,10 +601,10 @@ check_group_layout(hid_t fid, const char *group_name) before = file_ptr->shared->cache->index_len; #ifdef EOC_MANUAL_INSPECTION - HDprintf("\nCACHE BEFORE GROUP OPEN:\n"); + printf("\nCACHE BEFORE GROUP OPEN:\n"); if (H5AC_dump_cache(file_ptr) < 0) TEST_ERROR; - HDprintf("NUMBER OF CACHE ENTRIES: %u\n", before); + printf("NUMBER OF CACHE ENTRIES: %u\n", before); #endif /* Open the main group and get its tag */ @@ -619,7 +619,7 @@ check_group_layout(hid_t fid, const char *group_name) char subgroup_name[SUBGROUP_NAME_SIZE]; /* Create the group name */ - HDmemset(subgroup_name, '\0', SUBGROUP_NAME_SIZE); + memset(subgroup_name, '\0', SUBGROUP_NAME_SIZE); if (HDsnprintf(subgroup_name, (size_t)(SUBGROUP_NAME_SIZE - 1), "%d", i) < 0) TEST_ERROR; @@ -641,11 +641,11 @@ check_group_layout(hid_t fid, const char *group_name) during = file_ptr->shared->cache->index_len; #ifdef EOC_MANUAL_INSPECTION - HDprintf("\nCACHE AFTER OPENING GROUPS (WHILE OPEN):\n"); + printf("\nCACHE AFTER OPENING GROUPS (WHILE OPEN):\n"); if (H5AC_dump_cache(file_ptr) < 0) TEST_ERROR; - HDprintf("MAIN GROUP TAG: %#X\n", tag1); - HDprintf("NUMBER OF CACHE ENTRIES: %u\n", during); + printf("MAIN GROUP TAG: %#X\n", tag1); + printf("NUMBER OF CACHE ENTRIES: %u\n", during); #endif /* Close the main group */ @@ -656,10 +656,10 @@ check_group_layout(hid_t fid, const char *group_name) after = file_ptr->shared->cache->index_len; #ifdef EOC_MANUAL_INSPECTION - HDprintf("\nCACHE AFTER CLOSING GROUPS:\n"); + printf("\nCACHE AFTER CLOSING GROUPS:\n"); if (H5AC_dump_cache(file_ptr) < 0) TEST_ERROR; - HDprintf("NUMBER OF CACHE ENTRIES: %u\n", after); + printf("NUMBER OF CACHE ENTRIES: %u\n", after); #endif /* Ensure that the cache does not contain entries with the tag */ @@ -712,17 +712,17 @@ check_dset_scheme(hid_t fid, const char *dset_name) TEST_ERROR; /* Create the data buffer */ - if (NULL == (data = (int *)HDcalloc(NELEMENTS, sizeof(int)))) + if (NULL == (data = (int *)calloc(NELEMENTS, sizeof(int)))) TEST_ERROR; /* Record the number of cache entries */ before = file_ptr->shared->cache->index_len; #ifdef EOC_MANUAL_INSPECTION - HDprintf("\nCACHE BEFORE DATASET OPEN:\n"); + printf("\nCACHE BEFORE DATASET OPEN:\n"); if (H5AC_dump_cache(file_ptr) < 0) TEST_ERROR; - HDprintf("NUMBER OF CACHE ENTRIES: %u\n", before); + printf("NUMBER OF CACHE ENTRIES: %u\n", before); #endif /* Open dataset and get the metadata tag */ @@ -742,11 +742,11 @@ check_dset_scheme(hid_t fid, const char *dset_name) during = file_ptr->shared->cache->index_len; #ifdef EOC_MANUAL_INSPECTION - HDprintf("\nCACHE AFTER DATA READ (WHILE OPEN):\n"); + printf("\nCACHE AFTER DATA READ (WHILE OPEN):\n"); if (H5AC_dump_cache(file_ptr) < 0) TEST_ERROR; - HDprintf("TAG: %#X\n", tag); - HDprintf("NUMBER OF CACHE ENTRIES: %u\n", during); + printf("TAG: %#X\n", tag); + printf("NUMBER OF CACHE ENTRIES: %u\n", during); #endif /* Close the dataset */ @@ -757,10 +757,10 @@ check_dset_scheme(hid_t fid, const char *dset_name) after = file_ptr->shared->cache->index_len; #ifdef EOC_MANUAL_INSPECTION - HDprintf("\nCACHE AFTER DATASET CLOSE:\n"); + printf("\nCACHE AFTER DATASET CLOSE:\n"); if (H5AC_dump_cache(file_ptr) < 0) TEST_ERROR; - HDprintf("NUMBER OF CACHE ENTRIES: %u\n", after); + printf("NUMBER OF CACHE ENTRIES: %u\n", after); #endif /* Ensure that the cache does not contain entries with the tag */ @@ -771,7 +771,7 @@ check_dset_scheme(hid_t fid, const char *dset_name) if (before != after || before == during) TEST_ERROR; - HDfree(data); + free(data); PASSED(); return SUCCEED; @@ -887,7 +887,7 @@ main(void) hid_t fid = -1; /* file ID */ unsigned nerrors = 0; /* number of test errors */ - HDprintf("Testing evict-on-close cache behavior\n"); + printf("Testing evict-on-close cache behavior\n"); /* Initialize */ h5_reset(); @@ -955,13 +955,13 @@ main(void) if (nerrors) goto error; - HDprintf("All evict-on-close tests passed.\n"); + printf("All evict-on-close tests passed.\n"); - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); error: - HDprintf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : ""); + printf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : ""); h5_delete_all_test_files(FILENAMES, fapl_id); H5E_BEGIN_TRY @@ -971,7 +971,7 @@ error: } H5E_END_TRY; - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } /* end main() */ @@ -1035,7 +1035,7 @@ main(void) { unsigned nerrors = 0; /* number of test errors */ - HDprintf("Testing evict-on-close cache behavior\n"); + printf("Testing evict-on-close cache behavior\n"); /* Initialize */ h5_reset(); @@ -1046,16 +1046,16 @@ main(void) if (nerrors) goto error; - HDprintf("All evict-on-close tests passed.\n"); - HDprintf("Note that EoC is not supported under parallel so most tests are skipped.\n"); + printf("All evict-on-close tests passed.\n"); + printf("Note that EoC is not supported under parallel so most tests are skipped.\n"); - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); error: - HDprintf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : ""); + printf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : ""); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } /* main() - parallel */ |