summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2014-09-29 16:23:57 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2014-09-29 16:23:57 (GMT)
commit9140500b86f1143e9d0684db553d796271bffc14 (patch)
treeebfc0882283c40207f6683024dac3f477a428298 /hl/test
parent17893b24ea87ae013d88ab280e262cbde00e2815 (diff)
downloadhdf5-9140500b86f1143e9d0684db553d796271bffc14.zip
hdf5-9140500b86f1143e9d0684db553d796271bffc14.tar.gz
hdf5-9140500b86f1143e9d0684db553d796271bffc14.tar.bz2
[svn-r25631] Fix fo HDFFV-8912
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_table.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hl/test/test_table.c b/hl/test/test_table.c
index 488cbe2..c312296 100644
--- a/hl/test/test_table.c
+++ b/hl/test/test_table.c
@@ -1186,14 +1186,19 @@ static int test_table(hid_t fid, int do_write)
goto out;
}
- /* read the "Pressure" field */
start = 0;
nrecords = NRECORDS;
+
+ /* read an invalid field, should fail */
+ if ( H5TBread_fields_name(fid,"table10","DoesNotExist",start,nrecords,
+ sizeof(float),0,field_sizes_pre,pressure_out) >=0)
+ goto out;
+
+ /* read the "Pressure" field */
if ( H5TBread_fields_name(fid,"table10","Pressure",start,nrecords,
sizeof(float),0,field_sizes_pre,pressure_out)<0)
goto out;
-
/* Compare the extracted table with the initial values */
for( i = 0; i < NRECORDS; i++ )
{