diff options
Diffstat (limited to 'hl/test/test_ds.c')
-rw-r--r-- | hl/test/test_ds.c | 5 |
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) |