summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2011-08-07 00:16:08 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2011-08-07 00:16:08 (GMT)
commit359ab12d1e7641471f38a8183b049dc6076c37f0 (patch)
treef72c50ed36ee63fc1e24bd048679f87405992d0d /hl/test
parent7d47d81df0989c3e54e652124bb89776ce3926e2 (diff)
downloadhdf5-359ab12d1e7641471f38a8183b049dc6076c37f0.zip
hdf5-359ab12d1e7641471f38a8183b049dc6076c37f0.tar.gz
hdf5-359ab12d1e7641471f38a8183b049dc6076c37f0.tar.bz2
[svn-r21182] Desciption: brought revision 21157 from the trunk to the branch. Fixes hl bug
HDFFV-7673 -- DS library segfaults when retrieveing length of the dimension label that was not set Tested: jam (gnu 4.5 compiler)
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_ds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hl/test/test_ds.c b/hl/test/test_ds.c
index 663b18a..1bf268e 100644
--- a/hl/test/test_ds.c
+++ b/hl/test/test_ds.c
@@ -2918,6 +2918,11 @@ static int test_simple(void)
goto out;
if(H5DSset_label(did,DIM0,DIM0_LABEL) < 0)
goto out;
+
+ /* check getting a label which does not exist */
+ if(H5DSget_label(did,DIM1,dim1_label,sizeof(dim1_label)) != 0)
+ goto out;
+
if(H5DSset_label(did,DIM1,DIM1_LABEL) < 0)
goto out;
if(H5DSget_label(did,DIM0,dim0_label,sizeof(dim0_label)) < 0)