diff options
author | Jordan Henderson <jhenderson@hdfgroup.org> | 2023-10-03 19:39:01 (GMT) |
---|---|---|
committer | Jordan Henderson <jhenderson@hdfgroup.org> | 2023-10-03 19:39:01 (GMT) |
commit | db8b00865fdb76ce076d2032a0b27c5b012e9afc (patch) | |
tree | 3ffb877096fe9dec084f9d0d6a43e9a416460f35 /test | |
parent | 3f0b8817a166bac02ee6155544b950d9c4cdfbc3 (diff) | |
parent | cb6de06dcc18b31ab3f1d53bd93f0bbfaa0a17e1 (diff) | |
download | hdf5-db8b00865fdb76ce076d2032a0b27c5b012e9afc.zip hdf5-db8b00865fdb76ce076d2032a0b27c5b012e9afc.tar.gz hdf5-db8b00865fdb76ce076d2032a0b27c5b012e9afc.tar.bz2 |
Merge branch 'develop' into feature/vol_tools_tests
Diffstat (limited to 'test')
-rw-r--r-- | test/API/H5_api_test.c | 4 | ||||
-rw-r--r-- | test/API/testhdf5.c | 18 | ||||
-rw-r--r-- | test/API/tfile.c | 4 | ||||
-rw-r--r-- | test/API/trefer.c | 2 | ||||
-rw-r--r-- | test/API/tselect.c | 6 | ||||
-rw-r--r-- | test/CMakePassthroughVOLTests.cmake | 10 | ||||
-rw-r--r-- | test/CMakeTests.cmake | 13 | ||||
-rw-r--r-- | test/CMakeVFDTests.cmake | 10 | ||||
-rw-r--r-- | test/accum.c | 2 | ||||
-rw-r--r-- | test/accum_swmr_reader.c | 2 | ||||
-rw-r--r-- | test/app_ref.c | 2 | ||||
-rw-r--r-- | test/atomic_reader.c | 2 | ||||
-rw-r--r-- | test/atomic_writer.c | 2 | ||||
-rw-r--r-- | test/big.c | 4 | ||||
-rw-r--r-- | test/btree2.c | 2 | ||||
-rw-r--r-- | test/cache_api.c | 4 | ||||
-rw-r--r-- | test/cache_image.c | 2 | ||||
-rw-r--r-- | test/cork.c | 2 | ||||
-rw-r--r-- | test/dangle.c | 2 | ||||
-rw-r--r-- | test/direct_chunk.c | 2 | ||||
-rw-r--r-- | test/dsets.c | 6 | ||||
-rw-r--r-- | test/enc_dec_plist_cross_platform.c | 48 | ||||
-rw-r--r-- | test/error_test.c | 2 | ||||
-rw-r--r-- | test/external.c | 2 | ||||
-rw-r--r-- | test/fheap.c | 2 | ||||
-rw-r--r-- | test/file_image.c | 2 | ||||
-rw-r--r-- | test/filenotclosed.c | 2 | ||||
-rw-r--r-- | test/flush1.c | 2 | ||||
-rw-r--r-- | test/flush2.c | 2 | ||||
-rw-r--r-- | test/flushrefresh.c | 2 | ||||
-rw-r--r-- | test/gen_plist.c | 48 | ||||
-rw-r--r-- | test/h5test.c | 40 | ||||
-rw-r--r-- | test/hdfs.c | 2 | ||||
-rw-r--r-- | test/istore.c | 2 | ||||
-rw-r--r-- | test/links.c | 2 | ||||
-rw-r--r-- | test/links_env.c | 4 | ||||
-rw-r--r-- | test/mf.c | 4 | ||||
-rw-r--r-- | test/objcopy.c | 2 | ||||
-rw-r--r-- | test/ohdr.c | 2 | ||||
-rw-r--r-- | test/onion.c | 4 | ||||
-rw-r--r-- | test/page_buffer.c | 2 | ||||
-rw-r--r-- | test/reserved.c | 2 | ||||
-rw-r--r-- | test/ros3.c | 2 | ||||
-rw-r--r-- | test/s3comms.c | 2 | ||||
-rw-r--r-- | test/select_io_dset.c | 2 | ||||
-rw-r--r-- | test/set_extent.c | 2 | ||||
-rw-r--r-- | test/stab.c | 2 | ||||
-rw-r--r-- | test/swmr.c | 8 | ||||
-rw-r--r-- | test/testfiles/aggr.h5 (renamed from test/aggr.h5) | bin | 2448 -> 2448 bytes | |||
-rw-r--r-- | test/testfiles/bad_compound.h5 (renamed from test/bad_compound.h5) | bin | 2208 -> 2208 bytes | |||
-rw-r--r-- | test/testfiles/bad_offset.h5 (renamed from test/bad_offset.h5) | bin | 3312 -> 3312 bytes | |||
-rw-r--r-- | test/testfiles/be_data.h5 (renamed from test/be_data.h5) | bin | 72368 -> 72368 bytes | |||
-rw-r--r-- | test/testfiles/be_extlink1.h5 (renamed from test/be_extlink1.h5) | bin | 896 -> 896 bytes | |||
-rw-r--r-- | test/testfiles/be_extlink2.h5 (renamed from test/be_extlink2.h5) | bin | 2864 -> 2864 bytes | |||
-rw-r--r-- | test/testfiles/btree_idx_1_6.h5 (renamed from test/btree_idx_1_6.h5) | bin | 6350 -> 6350 bytes | |||
-rw-r--r-- | test/testfiles/btree_idx_1_8.h5 (renamed from test/btree_idx_1_8.h5) | bin | 5065 -> 5065 bytes | |||
-rw-r--r-- | test/testfiles/corrupt_stab_msg.h5 (renamed from test/corrupt_stab_msg.h5) | bin | 2928 -> 2928 bytes | |||
-rw-r--r-- | test/testfiles/cve_2020_10810.h5 (renamed from test/cve_2020_10810.h5) | bin | 1808 -> 1808 bytes | |||
-rwxr-xr-x | test/testfiles/cve_2020_10812.h5 (renamed from test/cve_2020_10812.h5) | bin | 2565 -> 2565 bytes | |||
-rw-r--r-- | test/testfiles/deflate.h5 (renamed from test/deflate.h5) | bin | 6240 -> 6240 bytes | |||
-rw-r--r-- | test/testfiles/family_v16-000000.h5 (renamed from test/family_v16-000000.h5) | bin | 5120 -> 5120 bytes | |||
-rw-r--r-- | test/testfiles/family_v16-000001.h5 (renamed from test/family_v16-000001.h5) | bin | 5120 -> 5120 bytes | |||
-rw-r--r-- | test/testfiles/family_v16-000002.h5 (renamed from test/family_v16-000002.h5) | bin | 5120 -> 5120 bytes | |||
-rw-r--r-- | test/testfiles/family_v16-000003.h5 (renamed from test/family_v16-000003.h5) | bin | 4048 -> 4048 bytes | |||
-rw-r--r-- | test/testfiles/file_image_core_test.h5 (renamed from test/file_image_core_test.h5) | bin | 18528 -> 18528 bytes | |||
-rw-r--r-- | test/testfiles/filespace_1_6.h5 (renamed from test/filespace_1_6.h5) | bin | 2448 -> 2448 bytes | |||
-rw-r--r-- | test/testfiles/filespace_1_8.h5 (renamed from test/filespace_1_8.h5) | bin | 2544 -> 2544 bytes | |||
-rw-r--r-- | test/testfiles/fill18.h5 (renamed from test/fill18.h5) | bin | 3479 -> 3479 bytes | |||
-rw-r--r-- | test/testfiles/fill_old.h5 (renamed from test/fill_old.h5) | bin | 2560 -> 2560 bytes | |||
-rw-r--r-- | test/testfiles/filter_error.h5 (renamed from test/filter_error.h5) | bin | 3576 -> 3576 bytes | |||
-rw-r--r-- | test/testfiles/fsm_aggr_nopersist.h5 (renamed from test/fsm_aggr_nopersist.h5) | bin | 2448 -> 2448 bytes | |||
-rw-r--r-- | test/testfiles/fsm_aggr_persist.h5 (renamed from test/fsm_aggr_persist.h5) | bin | 2565 -> 2565 bytes | |||
-rw-r--r-- | test/testfiles/group_old.h5 (renamed from test/group_old.h5) | bin | 1952 -> 1952 bytes | |||
-rw-r--r-- | test/testfiles/h5fc_ext1_f.h5 (renamed from test/h5fc_ext1_f.h5) | bin | 6760 -> 6760 bytes | |||
-rw-r--r-- | test/testfiles/h5fc_ext1_i.h5 (renamed from test/h5fc_ext1_i.h5) | bin | 6526 -> 6526 bytes | |||
-rw-r--r-- | test/testfiles/h5fc_ext2_if.h5 (renamed from test/h5fc_ext2_if.h5) | bin | 6526 -> 6526 bytes | |||
-rw-r--r-- | test/testfiles/h5fc_ext2_sf.h5 (renamed from test/h5fc_ext2_sf.h5) | bin | 5076 -> 5076 bytes | |||
-rw-r--r-- | test/testfiles/h5fc_ext3_isf.h5 (renamed from test/h5fc_ext3_isf.h5) | bin | 6679 -> 6679 bytes | |||
-rw-r--r-- | test/testfiles/h5fc_ext_none.h5 (renamed from test/h5fc_ext_none.h5) | bin | 6474 -> 6474 bytes | |||
-rw-r--r-- | test/testfiles/le_data.h5 (renamed from test/le_data.h5) | bin | 72368 -> 72368 bytes | |||
-rw-r--r-- | test/testfiles/le_extlink1.h5 (renamed from test/le_extlink1.h5) | bin | 896 -> 896 bytes | |||
-rw-r--r-- | test/testfiles/le_extlink2.h5 (renamed from test/le_extlink2.h5) | bin | 2864 -> 2864 bytes | |||
-rw-r--r-- | test/testfiles/memleak_H5O_dtype_decode_helper_H5Odtype.h5 (renamed from test/memleak_H5O_dtype_decode_helper_H5Odtype.h5) | bin | 82816 -> 82816 bytes | |||
-rw-r--r-- | test/testfiles/mergemsg.h5 (renamed from test/mergemsg.h5) | bin | 3472 -> 3472 bytes | |||
-rw-r--r-- | test/testfiles/multi_file_v16-r.h5 (renamed from test/multi_file_v16-r.h5) | bin | 65536 -> 65536 bytes | |||
-rw-r--r-- | test/testfiles/multi_file_v16-s.h5 (renamed from test/multi_file_v16-s.h5) | bin | 2048 -> 2048 bytes | |||
-rw-r--r-- | test/testfiles/noencoder.h5 (renamed from test/noencoder.h5) | bin | 8088 -> 8088 bytes | |||
-rw-r--r-- | test/testfiles/none.h5 (renamed from test/none.h5) | bin | 1808 -> 1808 bytes | |||
-rw-r--r-- | test/testfiles/paged_nopersist.h5 (renamed from test/paged_nopersist.h5) | bin | 8192 -> 8192 bytes | |||
-rw-r--r-- | test/testfiles/paged_persist.h5 (renamed from test/paged_persist.h5) | bin | 16384 -> 16384 bytes | |||
-rw-r--r-- | test/testfiles/specmetaread.h5 (renamed from test/specmetaread.h5) | bin | 1752 -> 1752 bytes | |||
-rw-r--r-- | test/testfiles/tarrold.h5 (renamed from test/tarrold.h5) | bin | 6032 -> 6032 bytes | |||
-rw-r--r-- | test/testfiles/tbad_msg_count.h5 (renamed from test/tbad_msg_count.h5) | bin | 1984 -> 1984 bytes | |||
-rw-r--r-- | test/testfiles/tbogus.h5 (renamed from test/tbogus.h5) | bin | 5056 -> 5056 bytes | |||
-rw-r--r-- | test/testfiles/test_filters_be.h5 (renamed from test/test_filters_be.h5) | bin | 5720 -> 5720 bytes | |||
-rw-r--r-- | test/testfiles/test_filters_le.h5 (renamed from test/test_filters_le.h5) | bin | 5720 -> 5720 bytes | |||
-rw-r--r-- | test/testfiles/th5s.h5 (renamed from test/th5s.h5) | bin | 2049 -> 2049 bytes | |||
-rw-r--r-- | test/testfiles/tlayouto.h5 (renamed from test/tlayouto.h5) | bin | 1576 -> 1576 bytes | |||
-rw-r--r-- | test/testfiles/tmtimen.h5 (renamed from test/tmtimen.h5) | bin | 1576 -> 1576 bytes | |||
-rw-r--r-- | test/testfiles/tmtimeo.h5 (renamed from test/tmtimeo.h5) | bin | 2052 -> 2052 bytes | |||
-rw-r--r-- | test/testfiles/tnullspace.h5 | bin | 0 -> 3624 bytes | |||
-rw-r--r-- | test/testfiles/tsizeslheap.h5 (renamed from test/tsizeslheap.h5) | bin | 1028 -> 1028 bytes | |||
-rw-r--r-- | test/testframe.c | 8 | ||||
-rw-r--r-- | test/testhdf5.c | 2 | ||||
-rw-r--r-- | test/tfile.c | 4 | ||||
-rw-r--r-- | test/trefer.c | 2 | ||||
-rw-r--r-- | test/tselect.c | 6 | ||||
-rw-r--r-- | test/tsohm.c | 2 | ||||
-rw-r--r-- | test/ttsafe.c | 2 | ||||
-rw-r--r-- | test/vds.c | 2 | ||||
-rw-r--r-- | test/vds_env.c | 2 | ||||
-rw-r--r-- | test/vfd.c | 2 | ||||
-rw-r--r-- | test/vol.c | 10 |
113 files changed, 171 insertions, 168 deletions
diff --git a/test/API/H5_api_test.c b/test/API/H5_api_test.c index 98dd260..654eb40 100644 --- a/test/API/H5_api_test.c +++ b/test/API/H5_api_test.c @@ -155,12 +155,12 @@ main(int argc, char **argv) seed = (unsigned)HDtime(NULL); srand(seed); - if (NULL == (test_path_prefix = HDgetenv(HDF5_API_TEST_PATH_PREFIX))) + if (NULL == (test_path_prefix = getenv(HDF5_API_TEST_PATH_PREFIX))) test_path_prefix = ""; snprintf(H5_api_test_filename, H5_API_TEST_FILENAME_MAX_LENGTH, "%s%s", test_path_prefix, TEST_FILE_NAME); - if (NULL == (vol_connector_string = HDgetenv(HDF5_VOL_CONNECTOR))) { + if (NULL == (vol_connector_string = getenv(HDF5_VOL_CONNECTOR))) { printf("No VOL connector selected; using native VOL connector\n"); vol_connector_name = "native"; vol_connector_info = NULL; diff --git a/test/API/testhdf5.c b/test/API/testhdf5.c index c2b4260..ca5d0e4 100644 --- a/test/API/testhdf5.c +++ b/test/API/testhdf5.c @@ -121,7 +121,7 @@ getenv_all(MPI_Comm comm, int root, const char *name) /* The root task does the getenv call * and sends the result to the other tasks */ if (mpi_rank == root) { - env = HDgetenv(name); + env = getenv(name); if (env) { len = (int)strlen(env); MPI_Bcast(&len, 1, MPI_INT, root, comm); @@ -158,7 +158,7 @@ getenv_all(MPI_Comm comm, int root, const char *name) /* use original getenv */ if (env) free(env); - env = HDgetenv(name); + env = getenv(name); } /* end if */ return env; @@ -218,7 +218,7 @@ h5_get_libver_fapl(hid_t fapl) char buf[1024]; /* buffer for tokenizing HDF5_DRIVER */ /* Get the environment variable, if it exists */ - env = HDgetenv("HDF5_LIBVER_BOUNDS"); + env = getenv("HDF5_LIBVER_BOUNDS"); #ifdef HDF5_LIBVER_BOUNDS /* Use the environment variable, then the compile-time constant */ if (!env) @@ -280,7 +280,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu /* Determine if driver is set by environment variable. If it is, * only generate a suffix if fixing the filename for the superblock * file. */ - driver_env_var = HDgetenv(HDF5_DRIVER); + driver_env_var = getenv(HDF5_DRIVER); if (driver_env_var && (H5P_DEFAULT == fapl) && subst_for_superblock) fapl = H5P_FILE_ACCESS_DEFAULT; @@ -334,7 +334,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu #endif /* H5_HAVE_PARALLEL */ } else { - if (HDgetenv(HDF5_NOCLEANUP)) + if (getenv(HDF5_NOCLEANUP)) SetTestNoCleanup(); } #endif @@ -382,7 +382,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu * For serial: * First use the environment variable, then try the constant */ - prefix = HDgetenv("HDF5_PREFIX"); + prefix = getenv("HDF5_PREFIX"); #ifdef HDF5_PREFIX if (!prefix) @@ -404,8 +404,8 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu */ char *user, *login; - user = HDgetenv("USER"); - login = HDgetenv("LOGIN"); + user = getenv("USER"); + login = getenv("LOGIN"); subdir = (user ? user : login); if (subdir) { @@ -503,7 +503,7 @@ h5_using_default_driver(const char *drv_name) assert(H5_DEFAULT_VFD == H5FD_SEC2); if (!drv_name) - drv_name = HDgetenv(HDF5_DRIVER); + drv_name = getenv(HDF5_DRIVER); if (drv_name) return (!strcmp(drv_name, "sec2") || !strcmp(drv_name, "nomatch")); diff --git a/test/API/tfile.c b/test/API/tfile.c index d404a82..6b316d4 100644 --- a/test/API/tfile.c +++ b/test/API/tfile.c @@ -2657,7 +2657,7 @@ test_file_double_file_dataset_open(bool new_format) hsize_t e_ext_dims[1] = {7}; /* Expanded dimension sizes */ hsize_t s_ext_dims[1] = {3}; /* Shrunk dimension sizes */ hsize_t max_dims0[1] = {8}; /* Maximum dimension sizes */ - hsize_t max_dims1[1] = {H5S_UNLIMITED}; /* Maximum dimesion sizes for extensible array index */ + hsize_t max_dims1[1] = {H5S_UNLIMITED}; /* Maximum dimension sizes for extensible array index */ hsize_t max_dims2[2] = {H5S_UNLIMITED, H5S_UNLIMITED}; /* Maximum dimension sizes for v2 B-tree index */ hsize_t chunks[1] = {2}, chunks2[2] = {4, 5}; /* Chunk dimension sizes */ #if 0 @@ -8260,7 +8260,7 @@ test_file(void) MESSAGE(5, ("Testing Low-Level File I/O\n")); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/API/trefer.c b/test/API/trefer.c index 69b9bbf..e8abe16 100644 --- a/test/API/trefer.c +++ b/test/API/trefer.c @@ -3571,7 +3571,7 @@ test_reference(void) MESSAGE(5, ("Testing References\n")); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/API/tselect.c b/test/API/tselect.c index befa360..9d398be 100644 --- a/test/API/tselect.c +++ b/test/API/tselect.c @@ -11334,7 +11334,7 @@ test_shape_same_dr__checkerboard(int test_num, int small_rank, int large_rank, i /* Now select the checkerboard selection in the (possibly larger) n-cube. * * Since we have already calculated the base start, stride, count, - * and block, re-use the values in setting up start, stride, count, + * and block, reuse the values in setting up start, stride, count, * and block. */ for (i = 0; i < SS_DR_MAX_RANK; i++) { @@ -12790,7 +12790,7 @@ test_space_update_diminfo(void) hid_t space_id; /* Dataspace id */ #if 0 H5S_diminfo_valid_t diminfo_valid; /* Diminfo status */ - H5S_diminfo_valid_t rebuild_status; /* Diminfo status after rebuid */ + H5S_diminfo_valid_t rebuild_status; /* Diminfo status after rebuild */ #endif H5S_sel_type sel_type; /* Selection type */ herr_t ret; /* Return value */ @@ -16093,7 +16093,7 @@ test_select(void) MESSAGE(5, ("Testing Selections\n")); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/CMakePassthroughVOLTests.cmake b/test/CMakePassthroughVOLTests.cmake index 94433de..a5d9b59 100644 --- a/test/CMakePassthroughVOLTests.cmake +++ b/test/CMakePassthroughVOLTests.cmake @@ -37,26 +37,26 @@ endforeach () foreach (voltest ${VOL_LIST}) foreach (h5_tfile ${HDF5_TEST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TOOLS_DIR}/testfiles/${h5_tfile}" "${PROJECT_BINARY_DIR}/${voltest}/${h5_tfile}" "HDF5_VOLTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${h5_tfile}" "${PROJECT_BINARY_DIR}/${voltest}/${h5_tfile}" "HDF5_VOLTEST_LIB_files") endforeach () endforeach () foreach (voltest ${VOL_LIST}) foreach (ref_file ${HDF5_REFERENCE_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/${ref_file}" "${PROJECT_BINARY_DIR}/${voltest}/${ref_file}" "HDF5_VOLTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${ref_file}" "${PROJECT_BINARY_DIR}/${voltest}/${ref_file}" "HDF5_VOLTEST_LIB_files") endforeach () endforeach () foreach (voltest ${VOL_LIST}) foreach (h5_file ${HDF5_REFERENCE_TEST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/${h5_file}" "${HDF5_TEST_BINARY_DIR}/${voltest}/${h5_file}" "HDF5_VOLTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${h5_file}" "${PROJECT_BINARY_DIR}/${voltest}/${h5_file}" "HDF5_VOLTEST_LIB_files") endforeach () endforeach () foreach (voltest ${VOL_LIST}) foreach (plistfile ${HDF5_REFERENCE_PLIST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/${plistfile}" "${PROJECT_BINARY_DIR}/${voltest}/testfiles/plist_files/${plistfile}" "HDF5_VOLTEST_LIB_files") - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/def_${plistfile}" "${PROJECT_BINARY_DIR}/${voltest}/testfiles/plist_files/def_${plistfile}" "HDF5_VOLTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/plist_files/${plistfile}" "${PROJECT_BINARY_DIR}/${voltest}/testfiles/plist_files/${plistfile}" "HDF5_VOLTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/plist_files/def_${plistfile}" "${PROJECT_BINARY_DIR}/${voltest}/testfiles/plist_files/def_${plistfile}" "HDF5_VOLTEST_LIB_files") endforeach () endforeach () diff --git a/test/CMakeTests.cmake b/test/CMakeTests.cmake index fa38a76..cab01f6 100644 --- a/test/CMakeTests.cmake +++ b/test/CMakeTests.cmake @@ -36,12 +36,9 @@ add_custom_command ( ) foreach (h5_tfile ${HDF5_TEST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TOOLS_DIR}/testfiles/${h5_tfile}" "${PROJECT_BINARY_DIR}/H5TEST/${h5_tfile}" "HDF5_TEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${h5_tfile}" "${PROJECT_BINARY_DIR}/H5TEST/testfiles/${h5_tfile}" "HDF5_TEST_LIB_files") endforeach () -# -------------------------------------------------------------------- -# Copy all the HDF5 files from the test directory into the source directory -# -------------------------------------------------------------------- set (HDF5_REFERENCE_FILES err_compat_1 err_compat_2 @@ -51,7 +48,7 @@ set (HDF5_REFERENCE_FILES ) foreach (ref_file ${HDF5_REFERENCE_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/${ref_file}" "${PROJECT_BINARY_DIR}/H5TEST/${ref_file}" "HDF5_TEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${ref_file}" "${PROJECT_BINARY_DIR}/H5TEST/testfiles/${ref_file}" "HDF5_TEST_LIB_files") endforeach () # -------------------------------------------------------------------- @@ -109,8 +106,8 @@ set (HDF5_REFERENCE_PLIST_FILES ) foreach (plistfile ${HDF5_REFERENCE_PLIST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/${plistfile}" "${PROJECT_BINARY_DIR}/H5TEST/testfiles/plist_files/${plistfile}" "HDF5_TEST_LIB_files") - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/def_${plistfile}" "${PROJECT_BINARY_DIR}/H5TEST/testfiles/plist_files/def_${plistfile}" "HDF5_TEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/plist_files/${plistfile}" "${PROJECT_BINARY_DIR}/H5TEST/testfiles/plist_files/${plistfile}" "HDF5_TEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/plist_files/def_${plistfile}" "${PROJECT_BINARY_DIR}/H5TEST/testfiles/plist_files/def_${plistfile}" "HDF5_TEST_LIB_files") endforeach () # -------------------------------------------------------------------- @@ -172,7 +169,7 @@ set (HDF5_REFERENCE_TEST_FILES ) foreach (h5_file ${HDF5_REFERENCE_TEST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/${h5_file}" "${HDF5_TEST_BINARY_DIR}/H5TEST/${h5_file}" "HDF5_TEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${h5_file}" "${HDF5_TEST_BINARY_DIR}/H5TEST/testfiles/${h5_file}" "HDF5_TEST_LIB_files") endforeach () add_custom_target(HDF5_TEST_LIB_files ALL COMMENT "Copying files needed by HDF5_TEST_LIB tests" DEPENDS ${HDF5_TEST_LIB_files_list}) diff --git a/test/CMakeVFDTests.cmake b/test/CMakeVFDTests.cmake index 7648166..ed7bd86 100644 --- a/test/CMakeVFDTests.cmake +++ b/test/CMakeVFDTests.cmake @@ -26,26 +26,26 @@ endforeach () foreach (vfdtest ${VFD_LIST}) foreach (h5_tfile ${HDF5_TEST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TOOLS_DIR}/testfiles/${h5_tfile}" "${PROJECT_BINARY_DIR}/${vfdtest}/${h5_tfile}" "HDF5_VFDTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${h5_tfile}" "${PROJECT_BINARY_DIR}/${vfdtest}/testfiles/${h5_tfile}" "HDF5_VFDTEST_LIB_files") endforeach () endforeach () foreach (vfdtest ${VFD_LIST}) foreach (ref_file ${HDF5_REFERENCE_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/${ref_file}" "${PROJECT_BINARY_DIR}/${vfdtest}/${ref_file}" "HDF5_VFDTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${ref_file}" "${PROJECT_BINARY_DIR}/${vfdtest}/testfiles/${ref_file}" "HDF5_VFDTEST_LIB_files") endforeach () endforeach () foreach (vfdtest ${VFD_LIST}) foreach (h5_file ${HDF5_REFERENCE_TEST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/${h5_file}" "${HDF5_TEST_BINARY_DIR}/${vfdtest}/${h5_file}" "HDF5_VFDTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/${h5_file}" "${HDF5_TEST_BINARY_DIR}/${vfdtest}/testfiles/${h5_file}" "HDF5_VFDTEST_LIB_files") endforeach () endforeach () foreach (vfdtest ${VFD_LIST}) foreach (plistfile ${HDF5_REFERENCE_PLIST_FILES}) - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/${plistfile}" "${PROJECT_BINARY_DIR}/${vfdtest}/testfiles/plist_files/${plistfile}" "HDF5_VFDTEST_LIB_files") - HDFTEST_COPY_FILE("${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/def_${plistfile}" "${PROJECT_BINARY_DIR}/${vfdtest}/testfiles/plist_files/def_${plistfile}" "HDF5_VFDTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/plist_files/${plistfile}" "${PROJECT_BINARY_DIR}/${vfdtest}/testfiles/plist_files/${plistfile}" "HDF5_VFDTEST_LIB_files") + HDFTEST_COPY_FILE("${PROJECT_SOURCE_DIR}/testfiles/plist_files/def_${plistfile}" "${PROJECT_BINARY_DIR}/${vfdtest}/testfiles/plist_files/def_${plistfile}" "HDF5_VFDTEST_LIB_files") endforeach () endforeach () diff --git a/test/accum.c b/test/accum.c index e3e79de..5a19efe 100644 --- a/test/accum.c +++ b/test/accum.c @@ -2077,7 +2077,7 @@ test_swmr_write_big(bool newest_format) /* Skip this test if SWMR I/O is not supported for the VFD specified * by the environment variable. */ - driver = HDgetenv(HDF5_DRIVER); + driver = getenv(HDF5_DRIVER); if (!H5FD__supports_swmr_test(driver)) { SKIPPED(); puts(" Test skipped due to VFD not supporting SWMR I/O."); diff --git a/test/accum_swmr_reader.c b/test/accum_swmr_reader.c index a606506..5b3ecd8 100644 --- a/test/accum_swmr_reader.c +++ b/test/accum_swmr_reader.c @@ -56,7 +56,7 @@ main(void) /* Skip this test if SWMR I/O is not supported for the VFD specified * by the environment variable. */ - driver = HDgetenv(HDF5_DRIVER); + driver = getenv(HDF5_DRIVER); if (!H5FD__supports_swmr_test(driver)) return EXIT_SUCCESS; diff --git a/test/app_ref.c b/test/app_ref.c index 5e52fe7..729862e 100644 --- a/test/app_ref.c +++ b/test/app_ref.c @@ -94,7 +94,7 @@ main(void) TESTING("library shutdown with reference count > 1"); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/atomic_reader.c b/test/atomic_reader.c index c8bbbae..12e2d5c 100644 --- a/test/atomic_reader.c +++ b/test/atomic_reader.c @@ -114,7 +114,7 @@ verify(int fd, unsigned int k) } /* end if */ /* Position the file at the beginning */ - if (lseek(fd, (off_t)0, SEEK_SET) < 0) { + if (lseek(fd, 0, SEEK_SET) < 0) { printf("READER: error from lseek\n"); goto error; } /* end if */ diff --git a/test/atomic_writer.c b/test/atomic_writer.c index 33252f1..89edfe7 100644 --- a/test/atomic_writer.c +++ b/test/atomic_writer.c @@ -190,7 +190,7 @@ main(int argc, char *argv[]) buf[u] = n; /* Position the file to the proper location */ - if (lseek(fd, (off_t)(n * sizeof(unsigned int)), SEEK_SET) < 0) { + if (lseek(fd, (n * sizeof(unsigned int)), SEEK_SET) < 0) { printf("WRITER: error from lseek\n"); goto error; } /* end if */ @@ -143,7 +143,7 @@ is_sparse(void) if ((fd = HDopen("x.h5", O_RDWR | O_TRUNC | O_CREAT, H5_POSIX_CREATE_MODE_RW)) < 0) return 0; - if (HDlseek(fd, (off_t)(1024 * 1024), SEEK_SET) != 1024 * 1024) + if (HDlseek(fd, (HDoff_t)(1024 * 1024), SEEK_SET) != 1024 * 1024) return 0; if (5 != HDwrite(fd, "hello", (size_t)5)) return 0; @@ -267,7 +267,7 @@ enough_room(hid_t fapl) if ((fd[i] = HDopen(name, O_RDWR | O_CREAT | O_TRUNC, H5_POSIX_CREATE_MODE_RW)) < 0) { goto done; } - if ((off_t)size != HDlseek(fd[i], (off_t)size, SEEK_SET)) { + if ((HDoff_t)size != HDlseek(fd[i], (HDoff_t)size, SEEK_SET)) { goto done; } if (1 != HDwrite(fd[i], "X", (size_t)1)) { diff --git a/test/btree2.c b/test/btree2.c index 8970d89..3ad30ac 100644 --- a/test/btree2.c +++ b/test/btree2.c @@ -9918,7 +9918,7 @@ main(void) const char *envval = NULL; bool api_ctx_pushed = false; /* Whether API context pushed */ - envval = HDgetenv(HDF5_DRIVER); + envval = getenv(HDF5_DRIVER); if (envval == NULL) envval = "nomatch"; diff --git a/test/cache_api.c b/test/cache_api.c index 746f2f0..de636cf 100644 --- a/test/cache_api.c +++ b/test/cache_api.c @@ -243,7 +243,7 @@ check_fapl_mdc_api_calls(unsigned paged, hid_t fcpl_id) } } - /* conpare the cache's internal configuration with the expected value */ + /* compare the cache's internal configuration with the expected value */ if (pass) { if (!resize_configs_are_equal(&default_auto_size_ctl, &cache_ptr->resize_ctl, true)) { @@ -386,7 +386,7 @@ check_fapl_mdc_api_calls(unsigned paged, hid_t fcpl_id) } } - /* conpare the cache's internal configuration with the expected value */ + /* compare the cache's internal configuration with the expected value */ if (pass) { if (!resize_configs_are_equal(&mod_auto_size_ctl, &cache_ptr->resize_ctl, true)) { diff --git a/test/cache_image.c b/test/cache_image.c index 4768916..60e2398 100644 --- a/test/cache_image.c +++ b/test/cache_image.c @@ -7758,7 +7758,7 @@ main(void) int express_test; /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/cork.c b/test/cork.c index 98abdec..e0a7196 100644 --- a/test/cork.c +++ b/test/cork.c @@ -2234,7 +2234,7 @@ main(void) /* Skip these tests if SWMR I/O is not supported for the VFD specified * by the environment variable. */ - driver = HDgetenv(HDF5_DRIVER); + driver = getenv(HDF5_DRIVER); if (!H5FD__supports_swmr_test(driver)) { puts("-- SKIPPED SWMR tests for SWMR-incompatible VFD --"); continue; diff --git a/test/dangle.c b/test/dangle.c index 490bb2f..4079fce 100644 --- a/test/dangle.c +++ b/test/dangle.c @@ -627,7 +627,7 @@ main(void) int nerrors = 0; /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/direct_chunk.c b/test/direct_chunk.c index 548bfc3..bde67db 100644 --- a/test/direct_chunk.c +++ b/test/direct_chunk.c @@ -407,7 +407,7 @@ test_direct_chunk_overwrite_data(hid_t fid) if ((sid = H5Screate_simple(OVERWRITE_NDIMS, dset_dims, dset_max_dims)) < 0) FAIL_STACK_ERROR; - /* Set chunk size and filll value */ + /* Set chunk size and fill value */ if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) FAIL_STACK_ERROR; if (H5Pset_fill_value(dcpl_id, tid, &fill_value) < 0) diff --git a/test/dsets.c b/test/dsets.c index ecf6db0..9bebbb8 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -626,7 +626,7 @@ test_simple_io(const char *env_h5_drvr, hid_t fapl) file = -1; f = HDopen(filename, O_RDONLY); - HDlseek(f, (off_t)offset, SEEK_SET); + HDlseek(f, (HDoff_t)offset, SEEK_SET); if (HDread(f, rdata_bytes, sizeof(int) * DSET_DIM1 * DSET_DIM2) < 0) goto error; @@ -763,7 +763,7 @@ test_userblock_offset(const char *env_h5_drvr, hid_t fapl, bool new_format) file = -1; f = HDopen(filename, O_RDONLY); - HDlseek(f, (off_t)offset, SEEK_SET); + HDlseek(f, (HDoff_t)offset, SEEK_SET); if (HDread(f, rdata_bytes, sizeof(int) * DSET_DIM1 * DSET_DIM2) < 0) goto error; @@ -15427,7 +15427,7 @@ main(void) int i; /* Don't run this test using certain file drivers */ - envval = HDgetenv(HDF5_DRIVER); + envval = getenv(HDF5_DRIVER); if (envval == NULL) envval = "nomatch"; diff --git a/test/enc_dec_plist_cross_platform.c b/test/enc_dec_plist_cross_platform.c index b9dc16a..a368214 100644 --- a/test/enc_dec_plist_cross_platform.c +++ b/test/enc_dec_plist_cross_platform.c @@ -31,121 +31,121 @@ main(void) /******* ENCODE/DECODE DCPLS *****/ TESTING("Default DCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_dcpl_") < 0) + if (test_plists("plist_files/def_dcpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("DCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/dcpl_") < 0) + if (test_plists("plist_files/dcpl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE DAPLS *****/ TESTING("Default DAPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_dapl_") < 0) + if (test_plists("plist_files/def_dapl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("DAPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/dapl_") < 0) + if (test_plists("plist_files/dapl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE DXPLS *****/ TESTING("Default DXPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_dxpl_") < 0) + if (test_plists("plist_files/def_dxpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("DXPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/dxpl_") < 0) + if (test_plists("plist_files/dxpl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE GCPLS *****/ TESTING("Default GCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_gcpl_") < 0) + if (test_plists("plist_files/def_gcpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("GCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/gcpl_") < 0) + if (test_plists("plist_files/gcpl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE LCPLS *****/ TESTING("Default LCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_lcpl_") < 0) + if (test_plists("plist_files/def_lcpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("LCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/lcpl_") < 0) + if (test_plists("plist_files/lcpl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE LAPLS *****/ TESTING("Default LAPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_lapl_") < 0) + if (test_plists("plist_files/def_lapl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("LAPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/lapl_") < 0) + if (test_plists("plist_files/lapl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE OCPLS *****/ TESTING("Default OCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_ocpl_") < 0) + if (test_plists("plist_files/def_ocpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("OCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/ocpl_") < 0) + if (test_plists("plist_files/ocpl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE OCPYPLS *****/ TESTING("Default OCPYPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_ocpypl_") < 0) + if (test_plists("plist_files/def_ocpypl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("OCPYPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/ocpypl_") < 0) + if (test_plists("plist_files/ocpypl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE FCPLS *****/ TESTING("Default FCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_fcpl_") < 0) + if (test_plists("plist_files/def_fcpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("FCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/fcpl_") < 0) + if (test_plists("plist_files/fcpl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE FAPLS *****/ TESTING("Default FAPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_fapl_") < 0) + if (test_plists("plist_files/def_fapl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("FAPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/fapl_") < 0) + if (test_plists("plist_files/fapl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE STRCPLS *****/ TESTING("Default STRCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_strcpl_") < 0) + if (test_plists("plist_files/def_strcpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("STRCPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/strcpl_") < 0) + if (test_plists("plist_files/strcpl_") < 0) FAIL_STACK_ERROR; PASSED(); /******* ENCODE/DECODE ACPLS *****/ TESTING("Default ACPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/def_acpl_") < 0) + if (test_plists("plist_files/def_acpl_") < 0) FAIL_STACK_ERROR; PASSED(); TESTING("ACPL Encoding/Decoding"); - if (test_plists("testfiles/plist_files/acpl_") < 0) + if (test_plists("plist_files/acpl_") < 0) FAIL_STACK_ERROR; PASSED(); diff --git a/test/error_test.c b/test/error_test.c index 9fe8117..57b1eb7a 100644 --- a/test/error_test.c +++ b/test/error_test.c @@ -786,7 +786,7 @@ main(void) int i; /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/external.c b/test/external.c index 30abc00..bf3c5bd 100644 --- a/test/external.c +++ b/test/external.c @@ -513,7 +513,7 @@ test_multiple_files(hid_t file) FAIL_STACK_ERROR; if (H5Pclose(dcpl) < 0) FAIL_STACK_ERROR; - /* Re-use space below */ + /* Reuse space below */ /* ---------------------------------------------- * Verify that too-small external files will fail diff --git a/test/fheap.c b/test/fheap.c index 337e387..19a1e6a 100644 --- a/test/fheap.c +++ b/test/fheap.c @@ -15963,7 +15963,7 @@ main(void) bool api_ctx_pushed = false; /* Whether API context pushed */ /* Don't run this test using certain file drivers */ - envval = HDgetenv(HDF5_DRIVER); + envval = getenv(HDF5_DRIVER); if (envval == NULL) envval = "nomatch"; diff --git a/test/file_image.c b/test/file_image.c index b7d3c27..81b49d6 100644 --- a/test/file_image.c +++ b/test/file_image.c @@ -871,7 +871,7 @@ test_get_file_image(const char *test_banner, const int file_name_num, hid_t fapl HDoff_t off; /* Position at userblock */ - off = HDlseek(fd, (off_t)USERBLOCK_SIZE, SEEK_SET); + off = HDlseek(fd, (HDoff_t)USERBLOCK_SIZE, SEEK_SET); VERIFY(off >= 0, "HDlseek() failed."); } diff --git a/test/filenotclosed.c b/test/filenotclosed.c index a838a89..806a7a4 100644 --- a/test/filenotclosed.c +++ b/test/filenotclosed.c @@ -63,7 +63,7 @@ main(void) bool contig_addr_vfd; /* Contiguous address vfd */ /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/flush1.c b/test/flush1.c index 4adddab..566d561 100644 --- a/test/flush1.c +++ b/test/flush1.c @@ -188,7 +188,7 @@ main(void) TEST_ERROR; /* Check if the current VFD supports SWMR */ - driver = HDgetenv(HDF5_DRIVER); + driver = getenv(HDF5_DRIVER); vfd_supports_swmr = H5FD__supports_swmr_test(driver); /*************************************************/ diff --git a/test/flush2.c b/test/flush2.c index c807612..ccec232 100644 --- a/test/flush2.c +++ b/test/flush2.c @@ -236,7 +236,7 @@ main(void) PUTS_ERROR("bad vfd-dependent fapl"); /* Check if the current VFD supports SWMR */ - driver = HDgetenv(HDF5_DRIVER); + driver = getenv(HDF5_DRIVER); vfd_supports_swmr = H5FD__supports_swmr_test(driver); if (h5_driver_is_default_vfd_compatible(fapl_id, &driver_is_default_vfd_compatible) < 0) { diff --git a/test/flushrefresh.c b/test/flushrefresh.c index ce94026..297db60 100644 --- a/test/flushrefresh.c +++ b/test/flushrefresh.c @@ -146,7 +146,7 @@ main(int argc, char *argv[]) * anything. */ /* Determine driver being used */ - envval = HDgetenv(HDF5_DRIVER); + envval = getenv(HDF5_DRIVER); if (envval == NULL || H5FD__supports_swmr_test(envval)) { if (test_flush() != SUCCEED) diff --git a/test/gen_plist.c b/test/gen_plist.c index ba16a4f..6d40ae7 100644 --- a/test/gen_plist.c +++ b/test/gen_plist.c @@ -105,7 +105,7 @@ main(void) if ((dcpl1 = H5Pcreate(H5P_DATASET_CREATE)) < 0) assert(dcpl1 > 0); - if ((ret = encode_plist(dcpl1, little_endian, word_length, "testfiles/plist_files/def_dcpl_")) < 0) + if ((ret = encode_plist(dcpl1, little_endian, word_length, "plist_files/def_dcpl_")) < 0) assert(ret > 0); if ((ret = H5Pset_chunk(dcpl1, 1, &chunk_size)) < 0) @@ -132,7 +132,7 @@ main(void) if ((ret = H5Pset_external(dcpl1, "ext4.data", (off_t)0, (hsize_t)(max_size[0] * sizeof(int) / 4))) < 0) assert(ret > 0); - if ((ret = encode_plist(dcpl1, little_endian, word_length, "testfiles/plist_files/dcpl_")) < 0) + if ((ret = encode_plist(dcpl1, little_endian, word_length, "plist_files/dcpl_")) < 0) assert(ret > 0); /* release resource */ @@ -143,13 +143,13 @@ main(void) if ((dapl1 = H5Pcreate(H5P_DATASET_ACCESS)) < 0) assert(dapl1 > 0); - if ((ret = encode_plist(dapl1, little_endian, word_length, "testfiles/plist_files/def_dapl_")) < 0) + if ((ret = encode_plist(dapl1, little_endian, word_length, "plist_files/def_dapl_")) < 0) assert(ret > 0); if ((ret = H5Pset_chunk_cache(dapl1, nslots, nbytes, w0)) < 0) assert(ret > 0); - if ((ret = encode_plist(dapl1, little_endian, word_length, "testfiles/plist_files/dapl_")) < 0) + if ((ret = encode_plist(dapl1, little_endian, word_length, "plist_files/dapl_")) < 0) assert(ret > 0); /* release resource */ @@ -160,7 +160,7 @@ main(void) if ((dxpl1 = H5Pcreate(H5P_DATASET_XFER)) < 0) assert(dxpl1 > 0); - if ((ret = encode_plist(dxpl1, little_endian, word_length, "testfiles/plist_files/def_dxpl_")) < 0) + if ((ret = encode_plist(dxpl1, little_endian, word_length, "plist_files/def_dxpl_")) < 0) assert(ret > 0); if ((ret = H5Pset_btree_ratios(dxpl1, 0.2, 0.6, 0.2)) < 0) @@ -189,7 +189,7 @@ main(void) if ((ret = H5Pset_modify_write_buf(dxpl1, true)) < 0) assert(ret > 0); - if ((ret = encode_plist(dxpl1, little_endian, word_length, "testfiles/plist_files/dxpl_")) < 0) + if ((ret = encode_plist(dxpl1, little_endian, word_length, "plist_files/dxpl_")) < 0) assert(ret > 0); /* release resource */ @@ -200,7 +200,7 @@ main(void) if ((gcpl1 = H5Pcreate(H5P_GROUP_CREATE)) < 0) assert(gcpl1 > 0); - if ((ret = encode_plist(gcpl1, little_endian, word_length, "testfiles/plist_files/def_gcpl_")) < 0) + if ((ret = encode_plist(gcpl1, little_endian, word_length, "plist_files/def_gcpl_")) < 0) assert(ret > 0); if ((ret = H5Pset_local_heap_size_hint(gcpl1, 256)) < 0) @@ -219,7 +219,7 @@ main(void) if ((ret = H5Pset_link_creation_order(gcpl1, (H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED))) < 0) assert(ret > 0); - if ((ret = encode_plist(gcpl1, little_endian, word_length, "testfiles/plist_files/gcpl_")) < 0) + if ((ret = encode_plist(gcpl1, little_endian, word_length, "plist_files/gcpl_")) < 0) assert(ret > 0); /* release resource */ @@ -230,13 +230,13 @@ main(void) if ((lcpl1 = H5Pcreate(H5P_LINK_CREATE)) < 0) assert(lcpl1 > 0); - if ((ret = encode_plist(lcpl1, little_endian, word_length, "testfiles/plist_files/def_lcpl_")) < 0) + if ((ret = encode_plist(lcpl1, little_endian, word_length, "plist_files/def_lcpl_")) < 0) assert(ret > 0); if ((ret = H5Pset_create_intermediate_group(lcpl1, 1 /*true*/)) < 0) assert(ret > 0); - if ((ret = encode_plist(lcpl1, little_endian, word_length, "testfiles/plist_files/lcpl_")) < 0) + if ((ret = encode_plist(lcpl1, little_endian, word_length, "plist_files/lcpl_")) < 0) assert(ret > 0); /* release resource */ @@ -247,7 +247,7 @@ main(void) if ((ocpypl1 = H5Pcreate(H5P_OBJECT_COPY)) < 0) assert(ocpypl1 > 0); - if ((ret = encode_plist(ocpypl1, little_endian, word_length, "testfiles/plist_files/def_ocpypl_")) < 0) + if ((ret = encode_plist(ocpypl1, little_endian, word_length, "plist_files/def_ocpypl_")) < 0) assert(ret > 0); ret = H5Pset_copy_object(ocpypl1, H5O_COPY_EXPAND_EXT_LINK_FLAG); @@ -259,7 +259,7 @@ main(void) ret = H5Padd_merge_committed_dtype_path(ocpypl1, "bar"); assert(ret >= 0); - if ((ret = encode_plist(ocpypl1, little_endian, word_length, "testfiles/plist_files/ocpypl_")) < 0) + if ((ret = encode_plist(ocpypl1, little_endian, word_length, "plist_files/ocpypl_")) < 0) assert(ret > 0); /* release resource */ @@ -270,7 +270,7 @@ main(void) if ((ocpl1 = H5Pcreate(H5P_OBJECT_CREATE)) < 0) assert(ocpl1 > 0); - if ((ret = encode_plist(ocpl1, little_endian, word_length, "testfiles/plist_files/def_ocpl_")) < 0) + if ((ret = encode_plist(ocpl1, little_endian, word_length, "plist_files/def_ocpl_")) < 0) assert(ret > 0); if ((ret = H5Pset_attr_creation_order(ocpl1, (H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED))) < 0) @@ -282,7 +282,7 @@ main(void) if ((ret = H5Pset_filter(ocpl1, H5Z_FILTER_FLETCHER32, 0, (size_t)0, NULL)) < 0) assert(ret > 0); - if ((ret = encode_plist(ocpl1, little_endian, word_length, "testfiles/plist_files/ocpl_")) < 0) + if ((ret = encode_plist(ocpl1, little_endian, word_length, "plist_files/ocpl_")) < 0) assert(ret > 0); /* release resource */ @@ -293,7 +293,7 @@ main(void) if ((lapl1 = H5Pcreate(H5P_LINK_ACCESS)) < 0) assert(lapl1 > 0); - if ((ret = encode_plist(lapl1, little_endian, word_length, "testfiles/plist_files/def_lapl_")) < 0) + if ((ret = encode_plist(lapl1, little_endian, word_length, "plist_files/def_lapl_")) < 0) assert(ret > 0); if ((ret = H5Pset_nlinks(lapl1, (size_t)134)) < 0) @@ -318,7 +318,7 @@ main(void) if ((ret = H5Pclose(fapl1)) < 0) assert(ret > 0); - if ((ret = encode_plist(lapl1, little_endian, word_length, "testfiles/plist_files/lapl_")) < 0) + if ((ret = encode_plist(lapl1, little_endian, word_length, "plist_files/lapl_")) < 0) assert(ret > 0); /* release resource */ @@ -329,7 +329,7 @@ main(void) if ((fapl1 = H5Pcreate(H5P_FILE_ACCESS)) < 0) assert(fapl1 > 0); - if ((ret = encode_plist(fapl1, little_endian, word_length, "testfiles/plist_files/def_fapl_")) < 0) + if ((ret = encode_plist(fapl1, little_endian, word_length, "plist_files/def_fapl_")) < 0) assert(ret > 0); if ((ret = H5Pset_family_offset(fapl1, 1024)) < 0) @@ -359,7 +359,7 @@ main(void) if ((ret = H5Pset_mdc_image_config(fapl1, &my_cache_image_config)) < 0) assert(ret > 0); - if ((ret = encode_plist(fapl1, little_endian, word_length, "testfiles/plist_files/fapl_")) < 0) + if ((ret = encode_plist(fapl1, little_endian, word_length, "plist_files/fapl_")) < 0) assert(ret > 0); /* release resource */ @@ -370,7 +370,7 @@ main(void) if ((fcpl1 = H5Pcreate(H5P_FILE_CREATE)) < 0) assert(fcpl1 > 0); - if ((ret = encode_plist(fcpl1, little_endian, word_length, "testfiles/plist_files/def_fcpl_")) < 0) + if ((ret = encode_plist(fcpl1, little_endian, word_length, "plist_files/def_fcpl_")) < 0) assert(ret > 0); if ((ret = H5Pset_userblock(fcpl1, 1024) < 0)) @@ -400,7 +400,7 @@ main(void) if ((ret = H5Pset_file_space_page_size(fcpl1, (hsize_t)4096)) < 0) assert(ret > 0); - if ((ret = encode_plist(fcpl1, little_endian, word_length, "testfiles/plist_files/fcpl_")) < 0) + if ((ret = encode_plist(fcpl1, little_endian, word_length, "plist_files/fcpl_")) < 0) assert(ret > 0); /* release resource */ @@ -411,13 +411,13 @@ main(void) strcpl1 = H5Pcreate(H5P_STRING_CREATE); assert(strcpl1 > 0); - ret = encode_plist(strcpl1, little_endian, word_length, "testfiles/plist_files/def_strcpl_"); + ret = encode_plist(strcpl1, little_endian, word_length, "plist_files/def_strcpl_"); assert(ret > 0); ret = H5Pset_char_encoding(strcpl1, H5T_CSET_UTF8); assert(ret >= 0); - ret = encode_plist(strcpl1, little_endian, word_length, "testfiles/plist_files/strcpl_"); + ret = encode_plist(strcpl1, little_endian, word_length, "plist_files/strcpl_"); assert(ret > 0); /* release resource */ @@ -428,13 +428,13 @@ main(void) acpl1 = H5Pcreate(H5P_ATTRIBUTE_CREATE); assert(acpl1 > 0); - ret = encode_plist(acpl1, little_endian, word_length, "testfiles/plist_files/def_acpl_"); + ret = encode_plist(acpl1, little_endian, word_length, "plist_files/def_acpl_"); assert(ret > 0); ret = H5Pset_char_encoding(acpl1, H5T_CSET_UTF8); assert(ret >= 0); - ret = encode_plist(acpl1, little_endian, word_length, "testfiles/plist_files/acpl_"); + ret = encode_plist(acpl1, little_endian, word_length, "plist_files/acpl_"); assert(ret > 0); /* release resource */ diff --git a/test/h5test.c b/test/h5test.c index 21585f7..5348e1b 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -467,7 +467,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu /* Determine if driver is set by environment variable. If it is, * only generate a suffix if fixing the filename for the superblock * file. */ - driver_env_var = HDgetenv(HDF5_DRIVER); + driver_env_var = getenv(HDF5_DRIVER); if (driver_env_var && (H5P_DEFAULT == fapl) && subst_for_superblock) fapl = H5P_FILE_ACCESS_DEFAULT; @@ -480,8 +480,14 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu if (H5FD_FAMILY == driver) { if (subst_for_superblock) suffix = "-000000.h5"; - else - suffix = nest_printf ? "-%%06d.h5" : "-%06d.h5"; + else { + if (nest_printf) { + suffix = "-%%06d.h5"; + } + else { + suffix = "-%06d.h5"; + } + } } else if (H5FD_MULTI == driver) { @@ -526,7 +532,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu #endif /* H5_HAVE_PARALLEL */ } else { - if (HDgetenv(HDF5_NOCLEANUP)) + if (getenv(HDF5_NOCLEANUP)) SetTestNoCleanup(); } @@ -574,7 +580,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu * For serial: * First use the environment variable, then try the constant */ - prefix = HDgetenv("HDF5_PREFIX"); + prefix = getenv("HDF5_PREFIX"); #ifdef HDF5_PREFIX if (!prefix) @@ -596,8 +602,8 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu */ char *user, *login; - user = HDgetenv("USER"); - login = HDgetenv("LOGIN"); + user = getenv("USER"); + login = getenv("LOGIN"); subdir = (user ? user : login); if (subdir) { @@ -787,7 +793,7 @@ h5_get_libver_fapl(hid_t fapl) char buf[1024]; /* buffer for tokenizing HDF5_DRIVER */ /* Get the environment variable, if it exists */ - env = HDgetenv("HDF5_LIBVER_BOUNDS"); + env = getenv("HDF5_LIBVER_BOUNDS"); #ifdef HDF5_LIBVER_BOUNDS /* Use the environment variable, then the compile-time constant */ if (!env) @@ -925,7 +931,7 @@ h5_set_info_object(void) int ret_value = 0; /* handle any MPI INFO hints via $HDF5_MPI_INFO */ - if ((envp = HDgetenv("HDF5_MPI_INFO")) != NULL) { + if ((envp = getenv("HDF5_MPI_INFO")) != NULL) { char *next, *valp; valp = envp = next = strdup(envp); @@ -1088,7 +1094,7 @@ h5_get_file_size(const char *filename, hid_t fapl) h5_stat_size_t tot_size = 0; char *driver_env_var = NULL; - driver_env_var = HDgetenv(HDF5_DRIVER); + driver_env_var = getenv(HDF5_DRIVER); if (driver_env_var && !strcmp(driver_env_var, "split")) { for (mt = H5FD_MEM_DEFAULT; mt < H5FD_MEM_NTYPES; mt++) { if (mt != H5FD_MEM_DRAW && mt != H5FD_MEM_SUPER) @@ -1302,7 +1308,7 @@ getenv_all(MPI_Comm comm, int root, const char *name) /* The root task does the getenv call * and sends the result to the other tasks */ if (mpi_rank == root) { - env = HDgetenv(name); + env = getenv(name); if (env) { len = (int)strlen(env); MPI_Bcast(&len, 1, MPI_INT, root, comm); @@ -1339,7 +1345,7 @@ getenv_all(MPI_Comm comm, int root, const char *name) /* use original getenv */ if (env) free(env); - env = HDgetenv(name); + env = getenv(name); } /* end if */ return env; @@ -1894,9 +1900,9 @@ H5_get_srcdir_filename(const char *filename) /* Build path to test file. We're checking the length so suppress * the gcc format-truncation warning. */ - if ((strlen(srcdir) + strlen(filename) + 1) < sizeof(srcdir_testpath)) { + if ((strlen(srcdir) + strlen("testfiles/") + strlen(filename) + 1) < sizeof(srcdir_testpath)) { H5_GCC_DIAG_OFF("format-truncation") - snprintf(srcdir_testpath, sizeof(srcdir_testpath), "%s%s", srcdir, filename); + snprintf(srcdir_testpath, sizeof(srcdir_testpath), "%stestfiles/%s", srcdir, filename); H5_GCC_DIAG_ON("format-truncation") return srcdir_testpath; } @@ -1917,7 +1923,7 @@ H5_get_srcdir_filename(const char *filename) const char * H5_get_srcdir(void) { - const char *srcdir = HDgetenv("srcdir"); + const char *srcdir = getenv("srcdir"); /* Check for using the srcdir from configure time */ if (NULL == srcdir) @@ -2076,7 +2082,7 @@ h5_using_default_driver(const char *drv_name) assert(H5_DEFAULT_VFD == H5FD_SEC2); if (!drv_name) - drv_name = HDgetenv(HDF5_DRIVER); + drv_name = getenv(HDF5_DRIVER); if (drv_name) return (!strcmp(drv_name, "sec2") || !strcmp(drv_name, "nomatch")); @@ -2197,7 +2203,7 @@ h5_driver_uses_multiple_files(const char *drv_name, unsigned flags) bool ret_val = false; if (!drv_name) - drv_name = HDgetenv(HDF5_DRIVER); + drv_name = getenv(HDF5_DRIVER); if (drv_name) { if ((flags & H5_EXCLUDE_MULTIPART_DRIVERS) == 0) { diff --git a/test/hdfs.c b/test/hdfs.c index fe876fa..857a54c 100644 --- a/test/hdfs.c +++ b/test/hdfs.c @@ -1579,7 +1579,7 @@ main(void) static char hdfs_namenode_name[HDFS_NAMENODE_NAME_MAX_SIZE] = ""; const char *hdfs_namenode_name_env = NULL; - hdfs_namenode_name_env = HDgetenv("HDFS_TEST_NAMENODE_NAME"); + hdfs_namenode_name_env = getenv("HDFS_TEST_NAMENODE_NAME"); if (hdfs_namenode_name_env == NULL || hdfs_namenode_name_env[0] == '\0') { strncpy(hdfs_namenode_name, "localhost", HDFS_NAMENODE_NAME_MAX_SIZE); } diff --git a/test/istore.c b/test/istore.c index 921d200..33032d1 100644 --- a/test/istore.c +++ b/test/istore.c @@ -62,7 +62,7 @@ is_sparse(void) if ((fd = HDopen("x.h5", O_RDWR | O_TRUNC | O_CREAT, H5_POSIX_CREATE_MODE_RW)) < 0) return 0; - if (HDlseek(fd, (off_t)(1024 * 1024), SEEK_SET) != 1024 * 1024) + if (HDlseek(fd, (HDoff_t)(1024 * 1024), SEEK_SET) != 1024 * 1024) return 0; if (5 != HDwrite(fd, "hello", (size_t)5)) return 0; diff --git a/test/links.c b/test/links.c index d707430..6f07d32 100644 --- a/test/links.c +++ b/test/links.c @@ -22656,7 +22656,7 @@ main(void) const char *env_h5_drvr; /* File Driver value from environment */ bool driver_is_default_compatible; - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/links_env.c b/test/links_env.c index 3c67623..1eae52a 100644 --- a/test/links_env.c +++ b/test/links_env.c @@ -61,7 +61,7 @@ external_link_env(hid_t fapl, bool new_format) else TESTING("external links via environment variable"); - if ((envval = HDgetenv("HDF5_EXT_PREFIX")) == NULL) + if ((envval = getenv("HDF5_EXT_PREFIX")) == NULL) envval = "nomatch"; if (strcmp(envval, ".:tmp_links_env") != 0) TEST_ERROR; @@ -149,7 +149,7 @@ main(void) int nerrors = 0; /* Error from tests */ /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; @@ -1979,7 +1979,7 @@ error: *------------------------------------------------------------------------- * To verify that an aggregator is absorbed into a section. * - * Test 1: To aborb the aggregator onto the beginning of the section + * Test 1: To absorb the aggregator onto the beginning of the section * Allocate block A from meta_aggr * Create a free-space section node with an address that adjoins * the end of meta_aggr and a size to make the aggregator @@ -9134,7 +9134,7 @@ main(void) bool api_ctx_pushed = false; /* Whether API context pushed */ /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/objcopy.c b/test/objcopy.c index 2afff4b..d604c54 100644 --- a/test/objcopy.c +++ b/test/objcopy.c @@ -17128,7 +17128,7 @@ main(void) bool same_file; /* Whether to run tests that only use one file */ bool driver_is_default_compatible; - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/ohdr.c b/test/ohdr.c index 7d8eb75..99b979b 100644 --- a/test/ohdr.c +++ b/test/ohdr.c @@ -1839,7 +1839,7 @@ main(void) herr_t ret; /* Generic return value */ /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/onion.c b/test/onion.c index bbbcaf5..5b9bb92 100644 --- a/test/onion.c +++ b/test/onion.c @@ -1678,7 +1678,7 @@ verify_history_as_expected_onion(H5FD_t *raw_file, struct expected_history *filt if (H5FD__onion_history_decode(buf, &history_out) != readsize) TEST_ERROR; - /* Re-use buffer space to sanity-check checksum for record pointer(s). */ + /* Reuse buffer space to sanity-check checksum for record pointer(s). */ assert(readsize >= sizeof(H5FD_onion_record_loc_t)); for (size_t i = 0; i < history_out.n_revisions; i++) { @@ -4918,7 +4918,7 @@ main(void) /* The onion VFD only supports the sec2 VFD under the hood, so skip this * test when the environment variable has been set to something else */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; if ((0 != strcmp(env_h5_drvr, "nomatch")) && (0 != strcmp(env_h5_drvr, "sec2"))) { diff --git a/test/page_buffer.c b/test/page_buffer.c index 65f2038..651e84a 100644 --- a/test/page_buffer.c +++ b/test/page_buffer.c @@ -2072,7 +2072,7 @@ main(void) h5_reset(); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/reserved.c b/test/reserved.c index ff37baf..5540d04 100644 --- a/test/reserved.c +++ b/test/reserved.c @@ -466,7 +466,7 @@ main(void) hid_t fapl; const char *envval = NULL; - envval = HDgetenv(HDF5_DRIVER); + envval = getenv(HDF5_DRIVER); if (envval == NULL) envval = "nomatch"; /* QAK: should be able to use the core driver? */ diff --git a/test/ros3.c b/test/ros3.c index 5ab2dec..cc058fb 100644 --- a/test/ros3.c +++ b/test/ros3.c @@ -1695,7 +1695,7 @@ main(void) * initialize test urls * ************************/ - bucket_url_env = HDgetenv("HDF5_ROS3_TEST_BUCKET_URL"); + bucket_url_env = getenv("HDF5_ROS3_TEST_BUCKET_URL"); if (bucket_url_env == NULL || bucket_url_env[0] == '\0') { printf("WARNING: S3 bucket url is not defined in environment " "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n"); diff --git a/test/s3comms.c b/test/s3comms.c index b9b2802..40f163e 100644 --- a/test/s3comms.c +++ b/test/s3comms.c @@ -2520,7 +2520,7 @@ main(void) s3_test_credentials_loaded = 1; } - bucket_url_env = HDgetenv("HDF5_ROS3_TEST_BUCKET_URL"); + bucket_url_env = getenv("HDF5_ROS3_TEST_BUCKET_URL"); if (bucket_url_env == NULL || bucket_url_env[0] == '\0') { printf("WARNING: S3 bucket url is not defined in environment " "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n"); diff --git a/test/select_io_dset.c b/test/select_io_dset.c index 4c67190..d75b76b 100644 --- a/test/select_io_dset.c +++ b/test/select_io_dset.c @@ -2859,7 +2859,7 @@ test_no_selection_io_cause_mode(const char *filename, hid_t fapl, uint32_t test_ /* The split and multi driver are not compatible with page buffering. No message since the other * cases aren't skipped. */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr && (!strcmp(env_h5_drvr, "split") || !strcmp(env_h5_drvr, "multi"))) return 0; } diff --git a/test/set_extent.c b/test/set_extent.c index 08b96a5..d418f2e 100644 --- a/test/set_extent.c +++ b/test/set_extent.c @@ -113,7 +113,7 @@ main(void) const char *env_h5_drvr; /* File Driver value from environment */ bool contig_addr_vfd; /* Whether VFD used has a contiguous address space */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; /* Current VFD that does not support contiguous address space */ diff --git a/test/stab.c b/test/stab.c index e43e9c0..1b7da01 100644 --- a/test/stab.c +++ b/test/stab.c @@ -1381,7 +1381,7 @@ main(void) int nerrors = 0; /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/swmr.c b/test/swmr.c index e7eec67..aacf498 100644 --- a/test/swmr.c +++ b/test/swmr.c @@ -4054,7 +4054,7 @@ test_append_flush_dataset_chunked(hid_t in_fapl) hsize_t dims[2] = {100, 0}; /* The dataset dimension sizes */ hsize_t maxdims[2] = {100, H5S_UNLIMITED}; /* The dataset maximum dimension sizes */ - hsize_t chunk_dims[2] = {5, 2}; /* The chunk dimesion sizes */ + hsize_t chunk_dims[2] = {5, 2}; /* The chunk dimension sizes */ TESTING("H5Fget/set_append_flush() for a chunked dataset's access property list"); @@ -4498,7 +4498,7 @@ test_append_flush_dataset_multiple(hid_t in_fapl) hsize_t dims[2] = {0, 0}; /* The dataset dimension sizes */ hsize_t maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED}; /* The dataset maximum dimension sizes */ - hsize_t chunk_dims[2] = {5, 2}; /* The chunk dimesion sizes */ + hsize_t chunk_dims[2] = {5, 2}; /* The chunk dimension sizes */ TESTING("H5Fget/set_append_flush() for multiple opens of a chunked dataset"); @@ -7742,7 +7742,7 @@ main(void) /* Skip this test if SWMR I/O is not supported for the VFD specified * by the environment variable. */ - driver = HDgetenv(HDF5_DRIVER); + driver = getenv(HDF5_DRIVER); if (!H5FD__supports_swmr_test(driver)) { printf("This VFD does not support SWMR I/O\n"); return EXIT_SUCCESS; @@ -7752,7 +7752,7 @@ main(void) * about file locking. File locking should be used unless explicitly * disabled. */ - lock_env_var = HDgetenv(HDF5_USE_FILE_LOCKING); + lock_env_var = getenv(HDF5_USE_FILE_LOCKING); if (lock_env_var && !strcmp(lock_env_var, "FALSE")) use_file_locking = false; else diff --git a/test/aggr.h5 b/test/testfiles/aggr.h5 Binary files differindex b24365d..b24365d 100644 --- a/test/aggr.h5 +++ b/test/testfiles/aggr.h5 diff --git a/test/bad_compound.h5 b/test/testfiles/bad_compound.h5 Binary files differindex 1834a2e..1834a2e 100644 --- a/test/bad_compound.h5 +++ b/test/testfiles/bad_compound.h5 diff --git a/test/bad_offset.h5 b/test/testfiles/bad_offset.h5 Binary files differindex 231dca2..231dca2 100644 --- a/test/bad_offset.h5 +++ b/test/testfiles/bad_offset.h5 diff --git a/test/be_data.h5 b/test/testfiles/be_data.h5 Binary files differindex e6629d3..e6629d3 100644 --- a/test/be_data.h5 +++ b/test/testfiles/be_data.h5 diff --git a/test/be_extlink1.h5 b/test/testfiles/be_extlink1.h5 Binary files differindex f800185..f800185 100644 --- a/test/be_extlink1.h5 +++ b/test/testfiles/be_extlink1.h5 diff --git a/test/be_extlink2.h5 b/test/testfiles/be_extlink2.h5 Binary files differindex 92ed32c..92ed32c 100644 --- a/test/be_extlink2.h5 +++ b/test/testfiles/be_extlink2.h5 diff --git a/test/btree_idx_1_6.h5 b/test/testfiles/btree_idx_1_6.h5 Binary files differindex 92f939b..92f939b 100644 --- a/test/btree_idx_1_6.h5 +++ b/test/testfiles/btree_idx_1_6.h5 diff --git a/test/btree_idx_1_8.h5 b/test/testfiles/btree_idx_1_8.h5 Binary files differindex 36662b2..36662b2 100644 --- a/test/btree_idx_1_8.h5 +++ b/test/testfiles/btree_idx_1_8.h5 diff --git a/test/corrupt_stab_msg.h5 b/test/testfiles/corrupt_stab_msg.h5 Binary files differindex 4fa287c..4fa287c 100644 --- a/test/corrupt_stab_msg.h5 +++ b/test/testfiles/corrupt_stab_msg.h5 diff --git a/test/cve_2020_10810.h5 b/test/testfiles/cve_2020_10810.h5 Binary files differindex 5cface3..5cface3 100644 --- a/test/cve_2020_10810.h5 +++ b/test/testfiles/cve_2020_10810.h5 diff --git a/test/cve_2020_10812.h5 b/test/testfiles/cve_2020_10812.h5 Binary files differindex a20369d..a20369d 100755 --- a/test/cve_2020_10812.h5 +++ b/test/testfiles/cve_2020_10812.h5 diff --git a/test/deflate.h5 b/test/testfiles/deflate.h5 Binary files differindex 2f62e25..2f62e25 100644 --- a/test/deflate.h5 +++ b/test/testfiles/deflate.h5 diff --git a/test/family_v16-000000.h5 b/test/testfiles/family_v16-000000.h5 Binary files differindex ac75ea9..ac75ea9 100644 --- a/test/family_v16-000000.h5 +++ b/test/testfiles/family_v16-000000.h5 diff --git a/test/family_v16-000001.h5 b/test/testfiles/family_v16-000001.h5 Binary files differindex bf55b32..bf55b32 100644 --- a/test/family_v16-000001.h5 +++ b/test/testfiles/family_v16-000001.h5 diff --git a/test/family_v16-000002.h5 b/test/testfiles/family_v16-000002.h5 Binary files differindex 9bd0891..9bd0891 100644 --- a/test/family_v16-000002.h5 +++ b/test/testfiles/family_v16-000002.h5 diff --git a/test/family_v16-000003.h5 b/test/testfiles/family_v16-000003.h5 Binary files differindex fedce2a..fedce2a 100644 --- a/test/family_v16-000003.h5 +++ b/test/testfiles/family_v16-000003.h5 diff --git a/test/file_image_core_test.h5 b/test/testfiles/file_image_core_test.h5 Binary files differindex 1cc5130..1cc5130 100644 --- a/test/file_image_core_test.h5 +++ b/test/testfiles/file_image_core_test.h5 diff --git a/test/filespace_1_6.h5 b/test/testfiles/filespace_1_6.h5 Binary files differindex 5afc718..5afc718 100644 --- a/test/filespace_1_6.h5 +++ b/test/testfiles/filespace_1_6.h5 diff --git a/test/filespace_1_8.h5 b/test/testfiles/filespace_1_8.h5 Binary files differindex 3fa2822..3fa2822 100644 --- a/test/filespace_1_8.h5 +++ b/test/testfiles/filespace_1_8.h5 diff --git a/test/fill18.h5 b/test/testfiles/fill18.h5 Binary files differindex c092f59..c092f59 100644 --- a/test/fill18.h5 +++ b/test/testfiles/fill18.h5 diff --git a/test/fill_old.h5 b/test/testfiles/fill_old.h5 Binary files differindex e77f519..e77f519 100644 --- a/test/fill_old.h5 +++ b/test/testfiles/fill_old.h5 diff --git a/test/filter_error.h5 b/test/testfiles/filter_error.h5 Binary files differindex 370cc1c..370cc1c 100644 --- a/test/filter_error.h5 +++ b/test/testfiles/filter_error.h5 diff --git a/test/fsm_aggr_nopersist.h5 b/test/testfiles/fsm_aggr_nopersist.h5 Binary files differindex 159e7f7..159e7f7 100644 --- a/test/fsm_aggr_nopersist.h5 +++ b/test/testfiles/fsm_aggr_nopersist.h5 diff --git a/test/fsm_aggr_persist.h5 b/test/testfiles/fsm_aggr_persist.h5 Binary files differindex 1a837dd..1a837dd 100644 --- a/test/fsm_aggr_persist.h5 +++ b/test/testfiles/fsm_aggr_persist.h5 diff --git a/test/group_old.h5 b/test/testfiles/group_old.h5 Binary files differindex 58f66f8..58f66f8 100644 --- a/test/group_old.h5 +++ b/test/testfiles/group_old.h5 diff --git a/test/h5fc_ext1_f.h5 b/test/testfiles/h5fc_ext1_f.h5 Binary files differindex b5c5867..b5c5867 100644 --- a/test/h5fc_ext1_f.h5 +++ b/test/testfiles/h5fc_ext1_f.h5 diff --git a/test/h5fc_ext1_i.h5 b/test/testfiles/h5fc_ext1_i.h5 Binary files differindex 960a8d5..960a8d5 100644 --- a/test/h5fc_ext1_i.h5 +++ b/test/testfiles/h5fc_ext1_i.h5 diff --git a/test/h5fc_ext2_if.h5 b/test/testfiles/h5fc_ext2_if.h5 Binary files differindex 88e42e7..88e42e7 100644 --- a/test/h5fc_ext2_if.h5 +++ b/test/testfiles/h5fc_ext2_if.h5 diff --git a/test/h5fc_ext2_sf.h5 b/test/testfiles/h5fc_ext2_sf.h5 Binary files differindex c59a3ca..c59a3ca 100644 --- a/test/h5fc_ext2_sf.h5 +++ b/test/testfiles/h5fc_ext2_sf.h5 diff --git a/test/h5fc_ext3_isf.h5 b/test/testfiles/h5fc_ext3_isf.h5 Binary files differindex d00fc55..d00fc55 100644 --- a/test/h5fc_ext3_isf.h5 +++ b/test/testfiles/h5fc_ext3_isf.h5 diff --git a/test/h5fc_ext_none.h5 b/test/testfiles/h5fc_ext_none.h5 Binary files differindex b1b1553..b1b1553 100644 --- a/test/h5fc_ext_none.h5 +++ b/test/testfiles/h5fc_ext_none.h5 diff --git a/test/le_data.h5 b/test/testfiles/le_data.h5 Binary files differindex e79ab47..e79ab47 100644 --- a/test/le_data.h5 +++ b/test/testfiles/le_data.h5 diff --git a/test/le_extlink1.h5 b/test/testfiles/le_extlink1.h5 Binary files differindex 10ed0bc..10ed0bc 100644 --- a/test/le_extlink1.h5 +++ b/test/testfiles/le_extlink1.h5 diff --git a/test/le_extlink2.h5 b/test/testfiles/le_extlink2.h5 Binary files differindex 92ed32c..92ed32c 100644 --- a/test/le_extlink2.h5 +++ b/test/testfiles/le_extlink2.h5 diff --git a/test/memleak_H5O_dtype_decode_helper_H5Odtype.h5 b/test/testfiles/memleak_H5O_dtype_decode_helper_H5Odtype.h5 Binary files differindex b5980b7..b5980b7 100644 --- a/test/memleak_H5O_dtype_decode_helper_H5Odtype.h5 +++ b/test/testfiles/memleak_H5O_dtype_decode_helper_H5Odtype.h5 diff --git a/test/mergemsg.h5 b/test/testfiles/mergemsg.h5 Binary files differindex 3a9e352..3a9e352 100644 --- a/test/mergemsg.h5 +++ b/test/testfiles/mergemsg.h5 diff --git a/test/multi_file_v16-r.h5 b/test/testfiles/multi_file_v16-r.h5 Binary files differindex 36a4c88..36a4c88 100644 --- a/test/multi_file_v16-r.h5 +++ b/test/testfiles/multi_file_v16-r.h5 diff --git a/test/multi_file_v16-s.h5 b/test/testfiles/multi_file_v16-s.h5 Binary files differindex e990e95..e990e95 100644 --- a/test/multi_file_v16-s.h5 +++ b/test/testfiles/multi_file_v16-s.h5 diff --git a/test/noencoder.h5 b/test/testfiles/noencoder.h5 Binary files differindex 84f8752..84f8752 100644 --- a/test/noencoder.h5 +++ b/test/testfiles/noencoder.h5 diff --git a/test/none.h5 b/test/testfiles/none.h5 Binary files differindex bb6ff56..bb6ff56 100644 --- a/test/none.h5 +++ b/test/testfiles/none.h5 diff --git a/test/paged_nopersist.h5 b/test/testfiles/paged_nopersist.h5 Binary files differindex b6c945a..b6c945a 100644 --- a/test/paged_nopersist.h5 +++ b/test/testfiles/paged_nopersist.h5 diff --git a/test/paged_persist.h5 b/test/testfiles/paged_persist.h5 Binary files differindex f0ae836..f0ae836 100644 --- a/test/paged_persist.h5 +++ b/test/testfiles/paged_persist.h5 diff --git a/test/specmetaread.h5 b/test/testfiles/specmetaread.h5 Binary files differindex 50b0e69..50b0e69 100644 --- a/test/specmetaread.h5 +++ b/test/testfiles/specmetaread.h5 diff --git a/test/tarrold.h5 b/test/testfiles/tarrold.h5 Binary files differindex 7747ce4..7747ce4 100644 --- a/test/tarrold.h5 +++ b/test/testfiles/tarrold.h5 diff --git a/test/tbad_msg_count.h5 b/test/testfiles/tbad_msg_count.h5 Binary files differindex ca5eb65..ca5eb65 100644 --- a/test/tbad_msg_count.h5 +++ b/test/testfiles/tbad_msg_count.h5 diff --git a/test/tbogus.h5 b/test/testfiles/tbogus.h5 Binary files differindex efcbd79..efcbd79 100644 --- a/test/tbogus.h5 +++ b/test/testfiles/tbogus.h5 diff --git a/test/test_filters_be.h5 b/test/testfiles/test_filters_be.h5 Binary files differindex c4c127b..c4c127b 100644 --- a/test/test_filters_be.h5 +++ b/test/testfiles/test_filters_be.h5 diff --git a/test/test_filters_le.h5 b/test/testfiles/test_filters_le.h5 Binary files differindex ff8b846..ff8b846 100644 --- a/test/test_filters_le.h5 +++ b/test/testfiles/test_filters_le.h5 diff --git a/test/th5s.h5 b/test/testfiles/th5s.h5 Binary files differindex 7a0bfb3..7a0bfb3 100644 --- a/test/th5s.h5 +++ b/test/testfiles/th5s.h5 diff --git a/test/tlayouto.h5 b/test/testfiles/tlayouto.h5 Binary files differindex a038e68..a038e68 100644 --- a/test/tlayouto.h5 +++ b/test/testfiles/tlayouto.h5 diff --git a/test/tmtimen.h5 b/test/testfiles/tmtimen.h5 Binary files differindex 96e5fb3..96e5fb3 100644 --- a/test/tmtimen.h5 +++ b/test/testfiles/tmtimen.h5 diff --git a/test/tmtimeo.h5 b/test/testfiles/tmtimeo.h5 Binary files differindex 8cacf4a..8cacf4a 100644 --- a/test/tmtimeo.h5 +++ b/test/testfiles/tmtimeo.h5 diff --git a/test/testfiles/tnullspace.h5 b/test/testfiles/tnullspace.h5 Binary files differnew file mode 100644 index 0000000..b5dac5d --- /dev/null +++ b/test/testfiles/tnullspace.h5 diff --git a/test/tsizeslheap.h5 b/test/testfiles/tsizeslheap.h5 Binary files differindex c7f2adb..c7f2adb 100644 --- a/test/tsizeslheap.h5 +++ b/test/testfiles/tsizeslheap.h5 diff --git a/test/testframe.c b/test/testframe.c index 310886f..2b65027 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -167,7 +167,7 @@ TestUsage(void) print_func("verbose controls the amount of information displayed\n"); print_func("exclude to exclude tests by name\n"); print_func("only to name tests which should be run\n"); - print_func("begin start at the name of the test givin\n"); + print_func("begin start at the name of the test given\n"); print_func("summary prints a summary of test results at the end\n"); print_func("cleanoff does not delete *.hdf files after execution of tests\n"); print_func("help print out this information\n"); @@ -445,7 +445,7 @@ GetTestExpress(void) #endif /* Check if HDF5TestExpress is set to override the default level */ - env_val = HDgetenv("HDF5TestExpress"); + env_val = getenv("HDF5TestExpress"); if (env_val) { if (strcmp(env_val, "0") == 0) express_val = 0; @@ -633,8 +633,8 @@ void TestAlarmOn(void) { #ifdef H5_HAVE_ALARM - char *env_val = HDgetenv("HDF5_ALARM_SECONDS"); /* Alarm environment */ - unsigned long alarm_sec = H5_ALARM_SEC; /* Number of seconds before alarm goes off */ + char *env_val = getenv("HDF5_ALARM_SECONDS"); /* Alarm environment */ + unsigned long alarm_sec = H5_ALARM_SEC; /* Number of seconds before alarm goes off */ /* Get the alarm value from the environment variable, if set */ if (env_val != NULL) diff --git a/test/testhdf5.c b/test/testhdf5.c index 82bc2b6..93da1d8 100644 --- a/test/testhdf5.c +++ b/test/testhdf5.c @@ -80,7 +80,7 @@ main(int argc, char *argv[]) TestSummary(); /* Clean up test files, if allowed */ - if (GetTestCleanup() && !HDgetenv(HDF5_NOCLEANUP)) + if (GetTestCleanup() && !getenv(HDF5_NOCLEANUP)) TestCleanup(); /* Release test infrastructure */ diff --git a/test/tfile.c b/test/tfile.c index e5183bb..1c5196a 100644 --- a/test/tfile.c +++ b/test/tfile.c @@ -2602,7 +2602,7 @@ test_file_double_file_dataset_open(bool new_format) hsize_t e_ext_dims[1] = {7}; /* Expanded dimension sizes */ hsize_t s_ext_dims[1] = {3}; /* Shrunk dimension sizes */ hsize_t max_dims0[1] = {8}; /* Maximum dimension sizes */ - hsize_t max_dims1[1] = {H5S_UNLIMITED}; /* Maximum dimesion sizes for extensible array index */ + hsize_t max_dims1[1] = {H5S_UNLIMITED}; /* Maximum dimension sizes for extensible array index */ hsize_t max_dims2[2] = {H5S_UNLIMITED, H5S_UNLIMITED}; /* Maximum dimension sizes for v2 B-tree index */ hsize_t chunks[1] = {2}, chunks2[2] = {4, 5}; /* Chunk dimension sizes */ hsize_t size; /* File size */ @@ -8123,7 +8123,7 @@ test_file(void) MESSAGE(5, ("Testing Low-Level File I/O\n")); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/trefer.c b/test/trefer.c index d69e4b1..f17e114 100644 --- a/test/trefer.c +++ b/test/trefer.c @@ -3564,7 +3564,7 @@ test_reference(void) MESSAGE(5, ("Testing References\n")); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/tselect.c b/test/tselect.c index c8450cc..55599b3 100644 --- a/test/tselect.c +++ b/test/tselect.c @@ -11323,7 +11323,7 @@ test_shape_same_dr__checkerboard(int test_num, int small_rank, int large_rank, i /* Now select the checkerboard selection in the (possibly larger) n-cube. * * Since we have already calculated the base start, stride, count, - * and block, re-use the values in setting up start, stride, count, + * and block, reuse the values in setting up start, stride, count, * and block. */ for (i = 0; i < SS_DR_MAX_RANK; i++) { @@ -12763,7 +12763,7 @@ test_space_update_diminfo(void) { hid_t space_id; /* Dataspace id */ H5S_diminfo_valid_t diminfo_valid; /* Diminfo status */ - H5S_diminfo_valid_t rebuild_status; /* Diminfo status after rebuid */ + H5S_diminfo_valid_t rebuild_status; /* Diminfo status after rebuild */ H5S_sel_type sel_type; /* Selection type */ herr_t ret; /* Return value */ @@ -16057,7 +16057,7 @@ test_select(void) MESSAGE(5, ("Testing Selections\n")); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/tsohm.c b/test/tsohm.c index e507fb9..b3f48d3 100644 --- a/test/tsohm.c +++ b/test/tsohm.c @@ -3716,7 +3716,7 @@ test_sohm(void) MESSAGE(5, ("Testing Shared Object Header Messages\n")); /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/ttsafe.c b/test/ttsafe.c index ce53cce..6fe14fc 100644 --- a/test/ttsafe.c +++ b/test/ttsafe.c @@ -131,7 +131,7 @@ main(int argc, char *argv[]) TestSummary(); /* Clean up test files, if allowed */ - if (GetTestCleanup() && !HDgetenv(HDF5_NOCLEANUP)) + if (GetTestCleanup() && !getenv(HDF5_NOCLEANUP)) TestCleanup(); /* Release test infrastructure */ @@ -12320,7 +12320,7 @@ main(void) bool driver_is_parallel; int nerrors = 0; - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; diff --git a/test/vds_env.c b/test/vds_env.c index bf30697..e964956 100644 --- a/test/vds_env.c +++ b/test/vds_env.c @@ -331,7 +331,7 @@ main(void) bool driver_is_parallel; int nerrors = 0; - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; @@ -5880,7 +5880,7 @@ main(void) * specific VFD to be set and HDF5_DRIVER being set can interfere * with that. */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr) { printf(" -- SKIPPED VFD tests because %s is set -- \n", HDF5_DRIVER); exit(EXIT_SUCCESS); @@ -2093,7 +2093,7 @@ test_async_vol_props(void) FAIL_STACK_ERROR; /* Override possible environment variable & re-initialize default VOL connector */ - conn_env_str = HDgetenv(HDF5_VOL_CONNECTOR); + conn_env_str = getenv(HDF5_VOL_CONNECTOR); if (conn_env_str) { if (NULL == (conn_env_str = strdup(conn_env_str))) TEST_ERROR; @@ -2256,7 +2256,7 @@ test_vol_cap_flags(void) TEST_ERROR; /* If using the native VOL by default, check flags again with H5P_DEFAULT */ - vol_env = HDgetenv(HDF5_VOL_CONNECTOR); + vol_env = getenv(HDF5_VOL_CONNECTOR); if (!vol_env || (0 == strcmp(vol_env, "native"))) { H5VL_class_t *cls; hid_t connector_id; @@ -2338,8 +2338,8 @@ test_get_vol_name(void) TESTING("getting connector name"); - conn_env_str = HDgetenv(HDF5_VOL_CONNECTOR); - if (NULL == (conn_env_str = HDgetenv("HDF5_VOL_CONNECTOR"))) + conn_env_str = getenv(HDF5_VOL_CONNECTOR); + if (NULL == (conn_env_str = getenv("HDF5_VOL_CONNECTOR"))) conn_env_str = "native"; /* Skip the connectors other than the native and pass_through connector */ @@ -2629,7 +2629,7 @@ main(void) int nerrors = 0; /* Get the VFD to use */ - env_h5_drvr = HDgetenv(HDF5_DRIVER); + env_h5_drvr = getenv(HDF5_DRIVER); if (env_h5_drvr == NULL) env_h5_drvr = "nomatch"; |