summaryrefslogtreecommitdiffstats
path: root/test/trefer.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2014-02-04 15:11:20 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2014-02-04 15:11:20 (GMT)
commitee10548723a74680a65ad0f324602e172b246f19 (patch)
tree2e67acad33935c24f775699187c4ac253baef750 /test/trefer.c
parentddf75b10f64026f9e1c55534997c2b3a37af0140 (diff)
downloadhdf5-ee10548723a74680a65ad0f324602e172b246f19.zip
hdf5-ee10548723a74680a65ad0f324602e172b246f19.tar.gz
hdf5-ee10548723a74680a65ad0f324602e172b246f19.tar.bz2
[svn-r24681] Description:
Fix for HDF5/HDFFV-8620 H5Rget_name with NULL name parameter fails. The name parameter now excepts NULL, in which case the length of then name is returned. Tested: jam (intel and gnu)
Diffstat (limited to 'test/trefer.c')
-rw-r--r--test/trefer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/trefer.c b/test/trefer.c
index 698e95a..8f8a28e 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -205,9 +205,9 @@ test_reference_params(void)
name_size = H5Rget_name(-1, H5R_DATASET_REGION, &rbuf[0], NULL, 0);
VERIFY(name_size, FAIL, "H5Rget_name loc_id");
name_size = H5Rget_name(fid1, H5R_DATASET_REGION, NULL, NULL, 0);
- VERIFY(ret, FAIL, "H5Rget_name ref");
+ VERIFY(name_size, FAIL, "H5Rget_name ref");
name_size = H5Rget_name(fid1, H5R_MAXTYPE, &rbuf[0], NULL, 0);
- VERIFY(ret, FAIL, "H5Rget_name type");
+ VERIFY(name_size, FAIL, "H5Rget_name type");
/* Test parameters to H5Rget_region */
ret = H5Rget_region(-1, H5R_OBJECT, &rbuf[0]);