summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-02-05 22:37:08 (GMT)
committerGitHub <noreply@github.com>2021-02-05 22:37:08 (GMT)
commit3a04f2995bbbd664d7bd27ca21f48634abea6bc4 (patch)
tree02a8a503939ca5e232f152cb360ef7f7ca10c612 /test
parent197751c5af9692f5d18af723251247c97050b93d (diff)
downloadhdf5-3a04f2995bbbd664d7bd27ca21f48634abea6bc4.zip
hdf5-3a04f2995bbbd664d7bd27ca21f48634abea6bc4.tar.gz
hdf5-3a04f2995bbbd664d7bd27ca21f48634abea6bc4.tar.bz2
1 10 changes for sanitize=address (#313)
* HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop
Diffstat (limited to 'test')
-rw-r--r--test/trefer.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/trefer.c b/test/trefer.c
index 198ec78..2fa2473 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -532,7 +532,7 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high)
hssize_t hssize_ret; /* hssize_t return value */
htri_t tri_ret; /* htri_t return value */
herr_t ret; /* Generic return value */
- haddr_t addr = HADDR_UNDEF; /* test for undefined reference */
+ haddr_t addr[2] = {HADDR_UNDEF, 0}; /* test for undefined reference */
hid_t dset_NA; /* Dataset id for undefined reference */
hid_t space_NA; /* Dataspace id for undefined reference */
hsize_t dims_NA[1] = {1}; /* Dims array for undefined reference */
@@ -1297,14 +1297,14 @@ test_reference_region_1D(H5F_libver_t libver_low, H5F_libver_t libver_high)
static void
test_reference_obj_deleted(void)
{
- hid_t fid1; /* HDF5 File IDs */
- hid_t dataset, /* Dataset ID */
- dset2; /* Dereferenced dataset ID */
- hid_t sid1; /* Dataspace ID */
- hobj_ref_t oref; /* Object Reference to test */
- H5O_type_t obj_type; /* Object type */
- haddr_t addr = HADDR_UNDEF; /* test for undefined reference */
- herr_t ret; /* Generic return value */
+ hid_t fid1; /* HDF5 File IDs */
+ hid_t dataset, /* Dataset ID */
+ dset2; /* Dereferenced dataset ID */
+ hid_t sid1; /* Dataspace ID */
+ hobj_ref_t oref; /* Object Reference to test */
+ H5O_type_t obj_type; /* Object type */
+ haddr_t addr[2] = {HADDR_UNDEF, 0}; /* test for undefined reference */
+ herr_t ret; /* Generic return value */
/* Create file */
fid1 = H5Fcreate(FILE3, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);